Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 19074 invoked from network); 5 Mar 2008 02:34:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 02:34:41 -0000 Received: (qmail 97071 invoked by uid 500); 5 Mar 2008 02:34:36 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 97035 invoked by uid 500); 5 Mar 2008 02:34:36 -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 97026 invoked by uid 99); 5 Mar 2008 02:34:36 -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 18:34:36 -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 sean.xx.qiu@gmail.com designates 216.239.58.185 as permitted sender) Received: from [216.239.58.185] (HELO gv-out-0910.google.com) (216.239.58.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 02:34:01 +0000 Received: by gv-out-0910.google.com with SMTP id r4so1041269gve.22 for ; Tue, 04 Mar 2008 18:34:10 -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=R3EoGaCKCuH0kr4FUgowuqPHJgWvo/bfk5FjQRmMZ+0=; b=oqBxnWspanaPX61IL0umWBQsh0Vo+XYtdD7GxQYW/g49Ocuf0XnTxQS5eBOm2uxH4WxjIrXlksHeT/ltqFTLB3PlPTWHeWW6leEO8+WTeMdEftvWJA5euSgin23FfI6HeP2z3sxne3rGAJLU6DJeEfhtc0FZD21BOs22VY6BnjE= 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=tusgVQTO7BlKHU5fLFAU1gaaRVAuxM8YQ0dfyf4fnkAfWepBu86k6avgNQLVWZMHFy52+paStqgb/3HrzH736JqA/wMplztZOGFTx/haOEih15m50ouiBCIlosNSRjLqiZCIF3r5pm56kVeupNeAtp/fiqE3kORhB8LylhurV7U= Received: by 10.114.146.1 with SMTP id t1mr3453226wad.20.1204684448759; Tue, 04 Mar 2008 18:34:08 -0800 (PST) Received: by 10.115.48.15 with HTTP; Tue, 4 Mar 2008 18:34:08 -0800 (PST) Message-ID: <94d710af0803041834q6917adk5f31614c9d12f7b2@mail.gmail.com> Date: Wed, 5 Mar 2008 10:34:08 +0800 From: "Sean Qiu" To: dev@harmony.apache.org Subject: Re: [jdktools] Failed to build java6 branch on Linux In-Reply-To: <6e47b64f0803040343t44409c1cy99b555f7162c565c@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> X-Virus-Checked: Checked by ClamAV on apache.org 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? 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. 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