Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 25823 invoked from network); 5 Mar 2008 03:00:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 03:00:21 -0000 Received: (qmail 11370 invoked by uid 500); 5 Mar 2008 03:00:16 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 11338 invoked by uid 500); 5 Mar 2008 03:00:16 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 11326 invoked by uid 99); 5 Mar 2008 03:00:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2008 19:00:16 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of firepure@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 02:59:41 +0000 Received: by wr-out-0506.google.com with SMTP id 57so2073967wri.12 for ; Tue, 04 Mar 2008 18:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=sLfCQbVPq398y4P+9Ujh4wVWE8dUCAEpX5CqIITJDOo=; b=WAE9+1nbalOgMVBCMMYYVFNewpEStDE/xrvMpjejz1WvAnb2ZCvA/onCSajX6wSvKvV5yVjTgZgZm+LhbufRH+Pjygo1wxhBPiP6RBKd1U+r2da7KXBKbSR43JmykIdFtTRmhM6bbc/qerRS7pTOcPlYZjyL39XVMeqyGEcKCWo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AC6q7PQ7PZpfT1O0jE3jj3U+ZiP+KyfDrgHpMUeXKGArWgBpIJI1EFq96t4Sp6mASyz08+1Zm3eGM1xbFloD404ZY0WVExbg0hLmAfY2OnLkIeQXnzEsFEjLrITSWhsuG8VrR1DcHUljfiu6HXdT/nPR7ZJBap8smKBdKQ2fms0= Received: by 10.64.242.5 with SMTP id p5mr4708378qbh.31.1204685990853; Tue, 04 Mar 2008 18:59:50 -0800 (PST) Received: by 10.65.248.9 with HTTP; Tue, 4 Mar 2008 18:59:50 -0800 (PST) Message-ID: <5c8e69f0803041859x758d554fm17c1aaab5c89dbcd@mail.gmail.com> Date: Wed, 5 Mar 2008 10:59:50 +0800 From: "Jimmy,Jing Lv" To: dev@harmony.apache.org Subject: Re: [jdktools] Failed to build java6 branch on Linux In-Reply-To: <94d710af0803041834q6917adk5f31614c9d12f7b2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6e47b64f0803040343t44409c1cy99b555f7162c565c@mail.gmail.com> <94d710af0803041834q6917adk5f31614c9d12f7b2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, 2008/3/5, Sean Qiu : > Hi, Stepan > > The build will failed since our DRLVM has not implemented the jvmti > functions for java 6. So the jvmti.h of harmony does not contains the > new declarations. Therefore the build failed. > > The build script will find the jvmti.h from > /working_classlib/deploy/jdk/include/jvmti.h > > There are two approaches for it. > 1. You can get a Java 6 jvmti.h > 2. Or I can upload my patch which will add the new declarations to our > jvmti.h. Do you have any suggestions to a candidate location to place > this jvmti.h for java 6? > We may keep the code in the repository build-able and test-able all the time. As a workaround , option 2 sounds reasonable to me. IMHO, we'd better put the stub jvmti.h in JDWP src folder, etc, src/main/native/jdwp/common/generic > IMHO, my suggestion is to modify the build script of branch of > jdktools, maintain a temporary copy java 6 version of jvmti.h in this > branch individually for the purpose of building. After the drlvm > finish Java 6 jvmti functions, we point it back to the official one. > Or we also create a branch for DRLVM of java6, which offer the java6 JVMTI for building. Don't know if it make sense for DRLVM gurus? > If no one object, i can raise a jira for this. > > 2008/3/4, Stepan Mishura : > > > Hi, > > > > I've updated federated build to take into account java6 branch for > > jdktools and tried to build it. The build failed with log below: > > > > > > [exec] cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT > > -D_REENTRANT -I/export/users/smishura/snapshot/working_classlib/deploy/include > > -I/export/users/smishura/snapshot/working_classlib/deploy/jdk/include > > -I. -I../shared/ -I../../common/agent/commands > > -I../../common/agent/core -I../../common/generic -Icore -fpic > > -march=pentium3 -O1 -DNDEBUG -fpic -c -o > > ../../common/agent/commands/ReferenceType.o > > ../../common/agent/commands/ReferenceType.cpp > > [exec] ../../common/agent/commands/ReferenceType.h:398: error: > > \u2018jvmtiHeapReferenceKind\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.h:399: error: > > expected primary-expression before \u2018const\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:400: error: > > expected primary-expression before \u2018class_tag\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:401: error: > > expected primary-expression before \u2018referrer_class_tag\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:402: error: > > expected primary-expression before \u2018size\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:403: error: > > expected primary-expression before \u2018*\u2019 token > > [exec] ../../common/agent/commands/ReferenceType.h:403: error: > > \u2018tag_ptr\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.h:404: error: > > expected primary-expression before \u2018*\u2019 token > > [exec] ../../common/agent/commands/ReferenceType.h:404: error: > > \u2018referrer_tag_ptr\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.h:405: error: > > expected primary-expression before \u2018length\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:406: error: > > expected primary-expression before \u2018void\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:406: error: > > initializer expression list treated as compound expression > > [exec] ../../common/agent/commands/ReferenceType.h:413: error: > > \u2018jvmtiHeapReferenceKind\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.h:414: error: > > expected primary-expression before \u2018const\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:415: error: > > expected primary-expression before \u2018object_class_tag\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:416: error: > > expected primary-expression before \u2018*\u2019 token > > [exec] ../../common/agent/commands/ReferenceType.h:416: error: > > \u2018object_tag_ptr\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.h:417: error: > > expected primary-expression before \u2018value\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:418: error: > > \u2018jvmtiPrimitiveType\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.h:419: error: > > expected primary-expression before \u2018void\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:419: error: > > initializer expression list treated as compound expression > > [exec] ../../common/agent/commands/ReferenceType.h:429: error: > > \u2018jvmtiPrimitiveType\u2019 has not been declared > > [exec] ../../common/agent/commands/ReferenceType.cpp: In member > > function \u2018virtual void > > jdwp::ReferenceType::InstancesHandler::Execute(JNIEnv*)\u2019: > > [exec] ../../common/agent/commands/ReferenceType.cpp:878: error: > > \u2018jvmtiHeapCallbacks\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:878: error: > > expected `;' before \u2018hcbs\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:879: error: > > \u2018hcbs\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:888: error: > > \u2018struct jvmtiEnv_struct\u2019 has no member named > > \u2018FollowReferences\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp: In member > > function \u2018virtual void > > jdwp::ReferenceType::ClassFileVersionHandler::Execute(JNIEnv*)\u2019: > > [exec] ../../common/agent/commands/ReferenceType.cpp:957: error: > > \u2018struct jvmtiEnv_struct\u2019 has no member named > > \u2018GetClassVersionNumbers\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp: At global scope: > > [exec] ../../common/agent/commands/ReferenceType.cpp:984: error: > > redefinition of \u2018jint > > jdwp::ReferenceType::HeapReferenceCallback\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:398: error: > > \u2018jint jdwp::ReferenceType::HeapReferenceCallback\u2019 previously > > defined here > > [exec] ../../common/agent/commands/ReferenceType.cpp:984: error: > > \u2018jvmtiHeapReferenceKind\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:985: error: > > expected primary-expression before \u2018const\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:986: error: > > expected primary-expression before \u2018class_tag\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:987: error: > > expected primary-expression before \u2018referrer_class_tag\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:988: error: > > expected primary-expression before \u2018size\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:989: error: > > expected primary-expression before \u2018*\u2019 token > > [exec] ../../common/agent/commands/ReferenceType.cpp:989: error: > > \u2018tag_ptr\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:990: error: > > expected primary-expression before \u2018*\u2019 token > > [exec] ../../common/agent/commands/ReferenceType.cpp:990: error: > > \u2018referrer_tag_ptr\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:991: error: > > expected primary-expression before \u2018length\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:992: error: > > expected primary-expression before \u2018void\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:1002: error: > > redefinition of \u2018jint > > jdwp::ReferenceType::PrimitiveFieldCallback\u2019 > > [exec] ../../common/agent/commands/ReferenceType.h:413: error: > > \u2018jint jdwp::ReferenceType::PrimitiveFieldCallback\u2019 > > previously defined here > > [exec] ../../common/agent/commands/ReferenceType.cpp:1002: error: > > \u2018jvmtiHeapReferenceKind\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:1003: error: > > expected primary-expression before \u2018const\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:1004: error: > > expected primary-expression before \u2018object_class_tag\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:1005: error: > > expected primary-expression before \u2018*\u2019 token > > [exec] ../../common/agent/commands/ReferenceType.cpp:1005: error: > > \u2018object_tag_ptr\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:1006: error: > > expected primary-expression before \u2018value\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:1007: error: > > \u2018jvmtiPrimitiveType\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp:1008: error: > > expected primary-expression before \u2018void\u2019 > > [exec] ../../common/agent/commands/ReferenceType.cpp:1021: error: > > \u2018jvmtiPrimitiveType\u2019 has not been declared > > [exec] ../../common/agent/commands/ReferenceType.cpp: In function > > \u2018jint jdwp::ReferenceType::ArrayPrimitiveValueCallback(jlong, > > jlong, jlong*, jint, int, const void*, void*)\u2019: > > [exec] ../../common/agent/commands/ReferenceType.cpp:1025: error: > > \u2018JVMTI_VISIT_OBJECTS\u2019 was not declared in this scope > > [exec] ../../common/agent/commands/ReferenceType.cpp: In function > > \u2018jint jdwp::ReferenceType::StringPrimitiveValueCallback(jlong, > > jlong, jlong*, const jchar*, jint, void*)\u2019: > > [exec] ../../common/agent/commands/ReferenceType.cpp:1039: error: > > \u2018JVMTI_VISIT_OBJECTS\u2019 was not declared in this scope > > [exec] make: *** [../../common/agent/commands/ReferenceType.o] Error 1 > > > > BUILD FAILED > > /export/users/smishura/snapshot/build.xml:444: The following error > > occurred while executing this line: > > /export/users/smishura/snapshot/working_jdktools/build.xml:179: The > > following error occurred while executing this line: > > /export/users/smishura/snapshot/working_jdktools/make/build-native.xml:60: > > The following error occurred while executing this line: > > /export/users/smishura/snapshot/working_jdktools/make/properties.xml:336: > > The following error occurred while executing this line: > > /export/users/smishura/snapshot/working_jdktools/modules/jpda/build.xml:139: > > The following error occurred while executing this line: > > /export/users/smishura/snapshot/working_jdktools/make/properties.xml:354: > > exec returned: 2 > > > > Thanks, > > Stepan. > > > > > > -- > Sean, Xiao Xia Qiu > China Software Development Lab, IBM > -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM