From owner-freebsd-java@FreeBSD.ORG Mon Oct 31 11:07:07 2011 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E00C106573C for ; Mon, 31 Oct 2011 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 536418FC23 for ; Mon, 31 Oct 2011 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9VB7783056802 for ; Mon, 31 Oct 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9VB76MZ056800 for freebsd-java@FreeBSD.org; Mon, 31 Oct 2011 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 Oct 2011 11:07:06 GMT Message-Id: <201110311107.p9VB76MZ056800@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 11:07:07 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/161985 java [patch] java/openjdk6: correct MASTER_SITES for jtreg, o ports/161945 java java/openjdk6: install jars to generate zoneinfo files o java/160553 java Jaikoz java based audio tagger core dumps o ports/159787 java java/openjdk6 nio muti-thread bug o ports/156674 java [PATCH] java/openjdk6: make x11-fonts/dejavu a build d o ports/156319 java [patch] java/openjdk6 does not compile with previous l o ports/155967 java [bsd.java.mk] [patch] javavm wrapper insists on diablo o ports/155657 java java/openjdk6: missing symlink for include/freebsd/* o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c o ports/151923 java [patch] java/openjdk6: free and native openjdk bootstr o ports/151042 java [patch] java/openjdk6 Respect CC o java/147512 java Crash of RXTX-2.1-7 on AMD64 system o java/138729 java java/jdk16: setting 'export AWT_TOOLKIT=MToolkit' caus o java/138728 java java/jdk16: SIGSEGV in java runtime o java/128948 java java/jdk16 built from source can't bind a socket, but o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones f java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/120372 java java/linux-sun-jdk16: linux-sun-jre1.6.0 plugin doesn' o java/120146 java java/jdk15: netbeans 6.0 causes java core dump on amd6 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o java/118956 java eclipse and netbeans break on diablo-jdk15 o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/114644 java tomcat goes out of PermSpace, jvm crashes o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java f java/112595 java Java appletviewer frequently hangs (kse_release loop) 29 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Oct 31 22:15:02 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A93B106566C for ; Mon, 31 Oct 2011 22:15:02 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out0.tiscali.nl (smtp-out0.tiscali.nl [195.241.79.175]) by mx1.freebsd.org (Postfix) with ESMTP id DD2898FC0A for ; Mon, 31 Oct 2011 22:15:01 +0000 (UTC) Received: from [212.182.167.131] (helo=sjakie.klop.ws) by smtp-out0.tiscali.nl with esmtp (Exim) (envelope-from ) id 1RL08C-0004qW-Py for freebsd-java@freebsd.org; Mon, 31 Oct 2011 23:15:00 +0100 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id E81EB922B for ; Mon, 31 Oct 2011 23:14:57 +0100 (CET) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org References: <20111025145744.GA31136@misty.eyesbeyond.com> <20111026041559.GA38377@misty.eyesbeyond.com> Date: Mon, 31 Oct 2011 23:14:57 +0100 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: <20111026041559.GA38377@misty.eyesbeyond.com> User-Agent: Opera Mail/11.52 (FreeBSD) Content-Transfer-Encoding: quoted-printable Subject: Re: Java on ARM processor? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 22:15:02 -0000 On Wed, 26 Oct 2011 06:15:59 +0200, Greg Lewis =20 wrote: > On Tue, Oct 25, 2011 at 11:02:51PM +0200, Ronald Klop wrote: >> On Tue, 25 Oct 2011 16:57:44 +0200, Greg Lewis >> wrote: >> >> > On Tue, Oct 25, 2011 at 12:00:21AM +0200, Ronald Klop wrote: >> >> Hi, >> >> >> >> My Sheevaplug is now running FreeBSD 9.0-RC1. >> >> # uname -a >> >> FreeBSD sheeva1.klop.ws 9.0-RC1 FreeBSD 9.0-RC1 #7: Tue Oct 18 =20 >> 00:57:30 >> >> CEST 2011 >> >> root@sjakie.klop.ws:/usr/obj/arm.arm/usr/src/sys/SHEEVAPLUG >> >> arm >> >> >> >> Is there any chance of running Java on this machine? The openjdk6 =20 >> and 7 >> >> ports say they are only for i386/amd64. >> >> Does freebsd have a Zero/Shark port of the hotspot? >> > >> > It does, but it is likely in need of a little love as I don't think >> > anyone >> > has tried it out for a while. I'd suggest pulling directly from the >> > bsd-port repo for OpenJDK7 and trying that. >> > >> > As always, the biggest problem is going to be bootstrapping. Since = =20 >> there >> > isn't an existing FreeBSD/arm binary of openjdk7 you'll need to work >> > around >> > that. There are a variety of ways you could tackle that. The most >> > common >> > is to set up an NFS mount with an i386 or amd64 machine and remotely >> > execute >> > all of the java bootstrap steps while the C/C++ compilation occurs >> > locally. >> > I can provide further information if you're interested. >> > >> >> Yes, please. >> I currently have: >> - a mercurial checkout of bsd-port in /data/openjdk7/bsd-port >> - cups-client from ports in /usr/local >> - freetype2 from ports in /usr/local >> - manually extracted apache-ant in /data/openjdk7/apache-ant-1.8.2 >> >> I have the same on amd64 as on arm. On amd64 I can build with >> ALT_BOOTDIR=3D/usr/local/openjdk6. > > See this email for details: > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D89377+0+archive/2008/fre= ebsd-java/20080203.freebsd-java > > It will need to be updated somewhat for openjdk7. I likely have an =20 > update > on my sparc64 machine, but it's currently down :(. > > Note that you'll also need libffi from ports for Zero. > > Another option is cross-compiling on an x86, but I've never tried that. > There are indications in the source that there is some support for this > (look at CROSS_COMPILE_ARCH IIRC). > Well. I have the NFS/SSH stuff sort of running now. I had to tune the =20 boot-java scripts. And /data/openjdk7 is my NFS exported dir. If I build with this: export JAVA_BOOTHOST=3D192.168.1.33 export JAVA_BOOTDIR=3D/usr/local/openjdk6 export ALT_BOOTDIR=3D/data/boot-java export ANT_HOME=3D/data/openjdk7/apache-ant-1.8.2 export ALT_FREETYPE_HEADERS_PATH=3D/usr/local/include export ALT_FREETYPE_LIB_PATH=3D/usr/local/lib export ALT_CUPS_HEADERS_PATH=3D/usr/local/include export NO_DOCS=3Dtrue export ZERO_BUILD=3Dtrue export BUILD_CORBA=3Dfalse export BUILD_JAXP=3Dfalse export BUILD_JAXWS=3Dfalse gmake It enters building the hotspot for zero, but then gives me the task to go= =20 back to my C courses. :-) ######################################################################## ######################################################################## ##### Entering hotspot for target(s) all_productzero ##### ######################################################################## cd ./hotspot/make && \ gmake JDK_TOPDIR=3D/data/openjdk7/bsd-port/jdk =20 JDK_MAKE_SHARED_DIR=3D/data/openjdk7/bsd-port/jdk/make/common/shared =20 EXTERNALSANITYCONTROL=3Dtrue SOURCE_LANGUAGE_VERSION=3D7 =20 TARGET_CLASS_VERSION=3D7 MILESTONE=3Dinternal BUILD_NUMBER=3Db00 =20 JDK_BUILD_NUMBER=3Db00 FULL_VERSION=3D1.7.0-internal-root_2011_10_31_22_5= 7-b00 =20 PREVIOUS_JDK_VERSION=3D1.6.0 JDK_VERSION=3D1.7.0 JDK_MKTG_VERSION=3D7 =20 JDK_MAJOR_VERSION=3D1 JDK_MINOR_VERSION=3D7 JDK_MICRO_VERSION=3D0 =20 PREVIOUS_MAJOR_VERSION=3D1 PREVIOUS_MINOR_VERSION=3D6 PREVIOUS_MICRO_VERS= ION=3D0 =20 ARCH_DATA_MODEL=3D64 COOKED_BUILD_NUMBER=3D0 =20 ANT_HOME=3D"/data/openjdk7/apache-ant-1.8.2" =20 ALT_OUTPUTDIR=3D/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir =20 ALT_EXPORT_PATH=3D/data/openjdk7/bsd-port/build/bsd-arm/hotspot/import =20 ALT_SLASH_JAVA=3D/NOT-SET ALT_BOOTDIR=3D/data/boot-java =20 ALT_LANGTOOLS_DIST=3D/data/openjdk7/bsd-port/build/bsd-arm/langtools/dist= =20 all_productzero gmake[2]: Entering directory `/data/openjdk7/bsd-port/hotspot/make' Makefile:378: target `/Xusage.txt' given more than once in the same rule. cd /data/openjdk7/bsd-port/hotspot/make; \ gmake VM_TARGET=3Dproductzero generic_buildzero =20 ALT_OUTPUTDIR=3D/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir gmake[3]: Entering directory `/data/openjdk7/bsd-port/hotspot/make' Makefile:378: target `/Xusage.txt' given more than once in the same rule. mkdir -p /data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir cd /data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir; \ gmake -f /data/openjdk7/bsd-port/hotspot/make/bsd/Makefile \ LP64=3D1 JAVA_HOME=3D/data/boot-java =20 OUTPUTDIR=3D/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir =20 GAMMADIR=3D/data/openjdk7/bsd-port/hotspot MAKE_VERBOSE=3Dy =20 HOTSPOT_RELEASE_VERSION=3D21.0-b17 =20 JRE_RELEASE_VERSION=3D1.7.0-internal-root_2011_10_31_22_57-b00 =20 HOTSPOT_BUILD_VERSION=3D productzero gmake[4]: Entering directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir' cd bsd__zero/product && gmake -w " LP64=3D1 " gmake[5]: Entering directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' gmake[6]: Entering directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' gmake[6]: Nothing to be done for `all'. gmake[6]: Leaving directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' gmake[6]: Entering directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' if [ -d /data/openjdk7/bsd-port/hotspot/agent -a "zero" !=3D "ia64" \ -a "zero" !=3D "arm" \ -a "zero" !=3D "ppc" \ -a "zero" !=3D "zero" ] ; then \ gmake -f sa.make =20 /data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product= /../generated/sa-jdi.jar; =20 \ fi gmake[6]: Leaving directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' gmake[6]: Entering directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' echo Generating precompiled header precompiled.hpp.gch Generating precompiled header precompiled.hpp.gch mkdir -p . g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DCC_INTERP -DZERO -D =20 -DZERO_LIBARCH=3D\"\" -DPRODUCT -I. =20 -I/data/openjdk7/bsd-port/hotspot/src/share/vm/prims =20 -I/data/openjdk7/bsd-port/hotspot/src/share/vm =20 -I/data/openjdk7/bsd-port/hotspot/src/cpu/zero/vm =20 -I/data/openjdk7/bsd-port/hotspot/src/os_cpu/bsd_zero/vm =20 -I/data/openjdk7/bsd-port/hotspot/src/os/bsd/vm =20 -I/data/openjdk7/bsd-port/hotspot/src/os/posix/vm -I../generated =20 -DHOTSPOT_RELEASE_VERSION=3D"\"21.0-b17\"" =20 -DHOTSPOT_BUILD_TARGET=3D"\"product\"" -DHOTSPOT_BUILD_USER=3D"\"root\"" = =20 -DHOTSPOT_LIB_ARCH=3D\"\" =20 -DJRE_RELEASE_VERSION=3D"\"1.7.0-internal-root_2011_10_31_22_31-b00\"" =20 -DHOTSPOT_VM_DISTRO=3D"\"OpenJDK\"" -DTARGET_OS_FAMILY_bsd =20 -DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero -DTARGET_OS_ARCH_bsd_zero =20 -DTARGET_OS_ARCH_MODEL_bsd_zero -DTARGET_COMPILER_gcc -fPIC -fno-rtti =20 -fno-exceptions -pthread -fcheck-new -pipe -O3 -fno-strict-aliasing =20 -D_LP64=3D1 -I/usr/local/include -Werror -Wpointer-arith -Wconversion =20 -Wsign-compare -c -MMD -MP -MF =20 ../generated/dependencies/precompiled.hpp.gch.d -x c++-header =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp -o =20 precompiled.hpp.gch : error: macro names must be identifiers cc1plus: warnings being treated as errors In file included from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:33, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/debug.hpp:29, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/globals.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/allocation.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/iterator.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/genOopClosures.hpp:28= , from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/klass.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/handles.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/code/oopRecorder.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/asm/assembler.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp:29: /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions_= gcc.hpp:195: =20 warning: overflow in implicit constant conversion /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions_= gcc.hpp:196: =20 warning: overflow in implicit constant conversion In file included from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/debug.hpp:29, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/globals.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/allocation.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/iterator.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/genOopClosures.hpp:28= , from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/klass.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/handles.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/code/oopRecorder.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/asm/assembler.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp:29: /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp: =20 In function 'jint high(jlong)': /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:433: =20 warning: right shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp: =20 In function 'void set_low(jlong*, jint)': /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:437: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp: =20 In function 'void set_high(jlong*, jint)': /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:441: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp: =20 In function 'jlong build_long_from(u1, u1, u1, u1, u1, u1, u1, u1)': /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1122: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1122: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1123: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1123: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1124: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1124: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1125: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.= hpp:1125: =20 warning: left shift count >=3D width of type In file included from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/basicLock.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/frame.hpp:30, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/prims/jvmtiExport.hpp:33, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/thread.hpp:32, from =20 /data/openjdk7/bsd-port/hotspot/src/os/bsd/vm/thread_bsd.inline.hpp:30, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/resourceArea.hpp:39, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/classfile/classFileParser.hp= p:29, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/classfile/classLoader.hpp:28= , from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/classfile/systemDictionary.h= pp:29, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciEnv.hpp:30, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciUtilities.hpp:28, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciNullObject.hpp:30, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciConstant.hpp:29, from =20 /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp:36: /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp: At global = =20 scope: /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:142: =20 warning: overflow in implicit constant conversion /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:381: =20 warning: left shift count >=3D width of type /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:381: =20 warning: negative integer implicitly converted to unsigned type /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp: In member = =20 function 'markOopDesc* markOopDesc::copy_set_hash(intptr_t) const': /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:303: =20 warning: overflow in implicit constant conversion gmake[6]: *** [precompiled.hpp.gch] Error 1 gmake[6]: Leaving directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' gmake[5]: *** [the_vm] Error 2 gmake[5]: Leaving directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/produc= t' gmake[4]: *** [productzero] Error 2 gmake[4]: Leaving directory =20 `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir' gmake[3]: *** [generic_buildzero] Error 2 gmake[3]: Leaving directory `/data/openjdk7/bsd-port/hotspot/make' gmake[2]: *** [productzero] Error 2 gmake[2]: Leaving directory `/data/openjdk7/bsd-port/hotspot/make' gmake[1]: *** [hotspot-build] Error 2 gmake[1]: Leaving directory `/data/openjdk7/bsd-port' gmake: *** [build_product_image] Error 2 [root@sheeva1 /data/openjdk7/bsd-port]# There is this error about the command-line. It is about the empty -D =20 option, but I don't know where is comes from. And is it ok to ignore the = =20 warning? Of should they always be seen as errors while compiling java. I = =20 don't know how strict the java project is about this. Any thoughts or helpful hints? Ronald. From owner-freebsd-java@FreeBSD.ORG Mon Oct 31 22:53:38 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 923EE106566B for ; Mon, 31 Oct 2011 22:53:38 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out0.tiscali.nl (smtp-out0.tiscali.nl [195.241.79.175]) by mx1.freebsd.org (Postfix) with ESMTP id 5523E8FC14 for ; Mon, 31 Oct 2011 22:53:38 +0000 (UTC) Received: from [212.182.167.131] (helo=sjakie.klop.ws) by smtp-out0.tiscali.nl with esmtp (Exim) (envelope-from ) id 1RL0jZ-0008RZ-45 for freebsd-java@freebsd.org; Mon, 31 Oct 2011 23:53:37 +0100 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 2229B9235 for ; Mon, 31 Oct 2011 23:53:36 +0100 (CET) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org References: <20111025145744.GA31136@misty.eyesbeyond.com> <4EA761D1.6040307@samersoff.net> Date: Mon, 31 Oct 2011 23:53:35 +0100 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: <4EA761D1.6040307@samersoff.net> User-Agent: Opera Mail/11.52 (FreeBSD) Content-Transfer-Encoding: quoted-printable Subject: Re: Java on ARM processor? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 22:53:38 -0000 On Wed, 26 Oct 2011 03:26:41 +0200, Dmitry Samersoff = =20 wrote: > On 2011-10-25 18:57, Greg Lewis wrote: >> As always, the biggest problem is going to be bootstrapping. Since =20 >> there >> isn't an existing FreeBSD/arm binary of openjdk7 you'll need to work =20 >> around >> that. There are a variety of ways you could tackle that. The most =20 >> common >> is to set up an NFS mount with an i386 or amd64 machine and remotely =20 >> execute >> all of the java bootstrap steps while the C/C++ compilation occurs =20 >> locally. > > I guess setup gcc cross-compilation on x86 box is much easier. > > -Dmitry > Hi, I am looking into this and I am afraid I am not seeing it right. How do I= =20 get a compiler running on amd64, but compiling for ARM? The stock FreeBSD= =20 gcc doesn't do this and I don't see a port which would do this except =20 gnatdroid-armv5 which is specifically for android. Where is a 'regular' armv5-gcc version? Ronald. From owner-freebsd-java@FreeBSD.ORG Tue Nov 1 04:05:22 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A62711065672 for ; Tue, 1 Nov 2011 04:05:22 +0000 (UTC) (envelope-from dms@mircat.net) Received: from mircat.net (mircat.net [81.9.105.50]) by mx1.freebsd.org (Postfix) with ESMTP id 616B58FC18 for ; Tue, 1 Nov 2011 04:05:21 +0000 (UTC) Received: from [81.9.105.53] (port=49608 helo=[192.168.0.187]) by mircat.net with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.74) (envelope-from ) id 1RL5bC-0003uT-QW; Tue, 01 Nov 2011 08:05:18 +0400 Message-ID: <4EAF6FFF.7090007@samersoff.net> Date: Tue, 01 Nov 2011 08:05:19 +0400 From: Dmitry Samersoff User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Ronald Klop References: <20111025145744.GA31136@misty.eyesbeyond.com> <4EA761D1.6040307@samersoff.net> In-Reply-To: X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: dms@samersoff.net Cc: freebsd-java@freebsd.org Subject: Re: Java on ARM processor? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 04:05:22 -0000 On 2011-11-01 02:53, Ronald Klop wrote: > On Wed, 26 Oct 2011 03:26:41 +0200, Dmitry Samersoff > wrote: > >> On 2011-10-25 18:57, Greg Lewis wrote: >>> As always, the biggest problem is going to be bootstrapping. Since >>> there >>> isn't an existing FreeBSD/arm binary of openjdk7 you'll need to work >>> around >>> that. There are a variety of ways you could tackle that. The most >>> common >>> is to set up an NFS mount with an i386 or amd64 machine and remotely >>> execute >>> all of the java bootstrap steps while the C/C++ compilation occurs >>> locally. >> >> I guess setup gcc cross-compilation on x86 box is much easier. >> >> -Dmitry >> > > Hi, > > I am looking into this and I am afraid I am not seeing it right. How do > I get a compiler running on amd64, but compiling for ARM? The stock > FreeBSD gcc doesn't do this and I don't see a port which would do this > except gnatdroid-armv5 which is specifically for android. > Where is a 'regular' armv5-gcc version? You have to download gcc and binutils sources and compile it manually. e.g. step-by-step guide, change target from ppc to appropriate arm one. http://cygwin.com/ml/crossgcc/2001-06/msg00039/cross-compiler-HOWTO.pdf -Dmitry -- Dmitry Samersoff dms@samersoff.net, http://devnull.samersoff.net * There will come soft rains ... From owner-freebsd-java@FreeBSD.ORG Tue Nov 1 20:40:11 2011 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DB3D106567F for ; Tue, 1 Nov 2011 20:40:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 24A688FC1C for ; Tue, 1 Nov 2011 20:40:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pA1KeAlo066938 for ; Tue, 1 Nov 2011 20:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pA1KeA62066937; Tue, 1 Nov 2011 20:40:10 GMT (envelope-from gnats) Date: Tue, 1 Nov 2011 20:40:10 GMT Message-Id: <201111012040.pA1KeA62066937@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Michael-O <1983-01-06@gmx.net> Cc: Subject: Re: ports/155657: java/openjdk6: missing symlink for include/freebsd/* X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael-O <1983-01-06@gmx.net> List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 20:40:11 -0000 The following reply was made to PR ports/155657; it has been noted by GNATS. From: Michael-O <1983-01-06@gmx.net> To: bug-followup@FreeBSD.org, geekounet@poildetroll.net Cc: Subject: Re: ports/155657: java/openjdk6: missing symlink for include/freebsd/* Date: Tue, 01 Nov 2011 21:10:39 +0100 The link is not missing. It is correct as it is. All other Unix-like OSes do the same. You should fix your configure.in script to find the correct OS include path. Check this file for a correct search approach: http://svn.apache.org/viewvc/tomcat/native/tags/TOMCAT_NATIVE_1_1_22/native/build/tcnative.m4?view=markup#l198 From owner-freebsd-java@FreeBSD.ORG Thu Nov 3 03:39:12 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4A7D1065676 for ; Thu, 3 Nov 2011 03:39:12 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 5A38E8FC0C for ; Thu, 3 Nov 2011 03:39:12 +0000 (UTC) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.4/8.14.4) with ESMTP id pA33dB5l096244; Wed, 2 Nov 2011 20:39:11 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.4/8.14.4/Submit) id pA33dAGb096243; Wed, 2 Nov 2011 20:39:10 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 2 Nov 2011 20:39:10 -0700 From: Greg Lewis To: Ronald Klop Message-ID: <20111103033910.GA96008@misty.eyesbeyond.com> References: <20111025145744.GA31136@misty.eyesbeyond.com> <20111026041559.GA38377@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-java@freebsd.org Subject: Re: Java on ARM processor? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 03:39:12 -0000 On Mon, Oct 31, 2011 at 11:14:57PM +0100, Ronald Klop wrote: > On Wed, 26 Oct 2011 06:15:59 +0200, Greg Lewis > wrote: > > > On Tue, Oct 25, 2011 at 11:02:51PM +0200, Ronald Klop wrote: > >> On Tue, 25 Oct 2011 16:57:44 +0200, Greg Lewis > >> wrote: > >> > >> > On Tue, Oct 25, 2011 at 12:00:21AM +0200, Ronald Klop wrote: > >> >> Hi, > >> >> > >> >> My Sheevaplug is now running FreeBSD 9.0-RC1. > >> >> # uname -a > >> >> FreeBSD sheeva1.klop.ws 9.0-RC1 FreeBSD 9.0-RC1 #7: Tue Oct 18 > >> 00:57:30 > >> >> CEST 2011 > >> >> root@sjakie.klop.ws:/usr/obj/arm.arm/usr/src/sys/SHEEVAPLUG > >> >> arm > >> >> > >> >> Is there any chance of running Java on this machine? The openjdk6 > >> and 7 > >> >> ports say they are only for i386/amd64. > >> >> Does freebsd have a Zero/Shark port of the hotspot? > >> > > >> > It does, but it is likely in need of a little love as I don't think > >> > anyone > >> > has tried it out for a while. I'd suggest pulling directly from the > >> > bsd-port repo for OpenJDK7 and trying that. > >> > > >> > As always, the biggest problem is going to be bootstrapping. Since > >> there > >> > isn't an existing FreeBSD/arm binary of openjdk7 you'll need to work > >> > around > >> > that. There are a variety of ways you could tackle that. The most > >> > common > >> > is to set up an NFS mount with an i386 or amd64 machine and remotely > >> > execute > >> > all of the java bootstrap steps while the C/C++ compilation occurs > >> > locally. > >> > I can provide further information if you're interested. > >> > > >> > >> Yes, please. > >> I currently have: > >> - a mercurial checkout of bsd-port in /data/openjdk7/bsd-port > >> - cups-client from ports in /usr/local > >> - freetype2 from ports in /usr/local > >> - manually extracted apache-ant in /data/openjdk7/apache-ant-1.8.2 > >> > >> I have the same on amd64 as on arm. On amd64 I can build with > >> ALT_BOOTDIR=/usr/local/openjdk6. > > > > See this email for details: > > > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=89377+0+archive/2008/freebsd-java/20080203.freebsd-java > > > > It will need to be updated somewhat for openjdk7. I likely have an > > update > > on my sparc64 machine, but it's currently down :(. > > > > Note that you'll also need libffi from ports for Zero. > > > > Another option is cross-compiling on an x86, but I've never tried that. > > There are indications in the source that there is some support for this > > (look at CROSS_COMPILE_ARCH IIRC). > > > > Well. I have the NFS/SSH stuff sort of running now. I had to tune the > boot-java scripts. And /data/openjdk7 is my NFS exported dir. > If I build with this: > export JAVA_BOOTHOST=192.168.1.33 > export JAVA_BOOTDIR=/usr/local/openjdk6 > export ALT_BOOTDIR=/data/boot-java > > export ANT_HOME=/data/openjdk7/apache-ant-1.8.2 > export ALT_FREETYPE_HEADERS_PATH=/usr/local/include > export ALT_FREETYPE_LIB_PATH=/usr/local/lib > export ALT_CUPS_HEADERS_PATH=/usr/local/include > export NO_DOCS=true > export ZERO_BUILD=true > export BUILD_CORBA=false > export BUILD_JAXP=false > export BUILD_JAXWS=false > > gmake > > It enters building the hotspot for zero, but then gives me the task to go > back to my C courses. :-) > > ######################################################################## > ######################################################################## > ##### Entering hotspot for target(s) all_productzero ##### > ######################################################################## > > cd ./hotspot/make && \ > gmake JDK_TOPDIR=/data/openjdk7/bsd-port/jdk > JDK_MAKE_SHARED_DIR=/data/openjdk7/bsd-port/jdk/make/common/shared > EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 > TARGET_CLASS_VERSION=7 MILESTONE=internal BUILD_NUMBER=b00 > JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-root_2011_10_31_22_57-b00 > PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 > JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 > PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 > ARCH_DATA_MODEL=64 COOKED_BUILD_NUMBER=0 > ANT_HOME="/data/openjdk7/apache-ant-1.8.2" > ALT_OUTPUTDIR=/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir > ALT_EXPORT_PATH=/data/openjdk7/bsd-port/build/bsd-arm/hotspot/import > ALT_SLASH_JAVA=/NOT-SET ALT_BOOTDIR=/data/boot-java > ALT_LANGTOOLS_DIST=/data/openjdk7/bsd-port/build/bsd-arm/langtools/dist > all_productzero > gmake[2]: Entering directory `/data/openjdk7/bsd-port/hotspot/make' > Makefile:378: target `/Xusage.txt' given more than once in the same rule. > cd /data/openjdk7/bsd-port/hotspot/make; \ > gmake VM_TARGET=productzero generic_buildzero > ALT_OUTPUTDIR=/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir > gmake[3]: Entering directory `/data/openjdk7/bsd-port/hotspot/make' > Makefile:378: target `/Xusage.txt' given more than once in the same rule. > mkdir -p /data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir > cd /data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir; \ > gmake -f /data/openjdk7/bsd-port/hotspot/make/bsd/Makefile \ > LP64=1 JAVA_HOME=/data/boot-java > OUTPUTDIR=/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir > GAMMADIR=/data/openjdk7/bsd-port/hotspot MAKE_VERBOSE=y > HOTSPOT_RELEASE_VERSION=21.0-b17 > JRE_RELEASE_VERSION=1.7.0-internal-root_2011_10_31_22_57-b00 > HOTSPOT_BUILD_VERSION= productzero > gmake[4]: Entering directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir' > cd bsd__zero/product && gmake -w " LP64=1 " > gmake[5]: Entering directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > gmake[6]: Entering directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > gmake[6]: Nothing to be done for `all'. > gmake[6]: Leaving directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > gmake[6]: Entering directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > if [ -d /data/openjdk7/bsd-port/hotspot/agent -a "zero" != "ia64" \ > -a "zero" != "arm" \ > -a "zero" != "ppc" \ > -a "zero" != "zero" ] ; then \ > gmake -f sa.make > /data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product/../generated/sa-jdi.jar; > \ > fi > gmake[6]: Leaving directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > gmake[6]: Entering directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > echo Generating precompiled header precompiled.hpp.gch > Generating precompiled header precompiled.hpp.gch > mkdir -p . > g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DCC_INTERP -DZERO -D > -DZERO_LIBARCH=\"\" -DPRODUCT -I. > -I/data/openjdk7/bsd-port/hotspot/src/share/vm/prims > -I/data/openjdk7/bsd-port/hotspot/src/share/vm > -I/data/openjdk7/bsd-port/hotspot/src/cpu/zero/vm > -I/data/openjdk7/bsd-port/hotspot/src/os_cpu/bsd_zero/vm > -I/data/openjdk7/bsd-port/hotspot/src/os/bsd/vm > -I/data/openjdk7/bsd-port/hotspot/src/os/posix/vm -I../generated > -DHOTSPOT_RELEASE_VERSION="\"21.0-b17\"" > -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"root\"" > -DHOTSPOT_LIB_ARCH=\"\" > -DJRE_RELEASE_VERSION="\"1.7.0-internal-root_2011_10_31_22_31-b00\"" > -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_bsd > -DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero -DTARGET_OS_ARCH_bsd_zero > -DTARGET_OS_ARCH_MODEL_bsd_zero -DTARGET_COMPILER_gcc -fPIC -fno-rtti > -fno-exceptions -pthread -fcheck-new -pipe -O3 -fno-strict-aliasing > -D_LP64=1 -I/usr/local/include -Werror -Wpointer-arith -Wconversion > -Wsign-compare -c -MMD -MP -MF > ../generated/dependencies/precompiled.hpp.gch.d -x c++-header > /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp -o > precompiled.hpp.gch > : error: macro names must be identifiers > cc1plus: warnings being treated as errors > In file included from > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:33, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/debug.hpp:29, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/globals.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/allocation.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/iterator.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/genOopClosures.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/klass.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/handles.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/code/oopRecorder.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/asm/assembler.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp:29: > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:195: > warning: overflow in implicit constant conversion > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:196: > warning: overflow in implicit constant conversion > In file included from > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/debug.hpp:29, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/globals.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/allocation.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/iterator.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/genOopClosures.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/klass.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/handles.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/code/oopRecorder.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/asm/assembler.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp:29: > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp: > In function 'jint high(jlong)': > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:433: > warning: right shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp: > In function 'void set_low(jlong*, jint)': > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:437: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp: > In function 'void set_high(jlong*, jint)': > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:441: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp: > In function 'jlong build_long_from(u1, u1, u1, u1, u1, u1, u1, u1)': > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1122: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1122: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1123: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1123: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1124: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1124: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1125: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1125: > warning: left shift count >= width of type > In file included from > /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/basicLock.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/frame.hpp:30, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/prims/jvmtiExport.hpp:33, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/runtime/thread.hpp:32, > from > /data/openjdk7/bsd-port/hotspot/src/os/bsd/vm/thread_bsd.inline.hpp:30, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/memory/resourceArea.hpp:39, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/classfile/classFileParser.hpp:29, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/classfile/classLoader.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/classfile/systemDictionary.hpp:29, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciEnv.hpp:30, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciUtilities.hpp:28, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciNullObject.hpp:30, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/ci/ciConstant.hpp:29, > from > /data/openjdk7/bsd-port/hotspot/src/share/vm/precompiled.hpp:36: > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp: At global > scope: > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:142: > warning: overflow in implicit constant conversion > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:381: > warning: left shift count >= width of type > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:381: > warning: negative integer implicitly converted to unsigned type > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp: In member > function 'markOopDesc* markOopDesc::copy_set_hash(intptr_t) const': > /data/openjdk7/bsd-port/hotspot/src/share/vm/oops/markOop.hpp:303: > warning: overflow in implicit constant conversion > gmake[6]: *** [precompiled.hpp.gch] Error 1 > gmake[6]: Leaving directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > gmake[5]: *** [the_vm] Error 2 > gmake[5]: Leaving directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir/bsd__zero/product' > gmake[4]: *** [productzero] Error 2 > gmake[4]: Leaving directory > `/data/openjdk7/bsd-port/build/bsd-arm/hotspot/outputdir' > gmake[3]: *** [generic_buildzero] Error 2 > gmake[3]: Leaving directory `/data/openjdk7/bsd-port/hotspot/make' > gmake[2]: *** [productzero] Error 2 > gmake[2]: Leaving directory `/data/openjdk7/bsd-port/hotspot/make' > gmake[1]: *** [hotspot-build] Error 2 > gmake[1]: Leaving directory `/data/openjdk7/bsd-port' > gmake: *** [build_product_image] Error 2 > [root@sheeva1 /data/openjdk7/bsd-port]# > > There is this error about the command-line. It is about the empty -D > option, but I don't know where is comes from. And is it ok to ignore the > warning? Of should they always be seen as errors while compiling java. I > don't know how strict the java project is about this. > > Any thoughts or helpful hints? Look at hotspot/make/bsd/platform_zero.in. You've got an empty -D because @ZERO_ARCHDEF@ isn't being set up correctly. You'll see there is a substitution done in hotspot/make/bsd/Makefile that expands this into whatever ZERO_ARCHDEF is set to. The only place that it looks like getting set is in jdk/make/jdk_generic_profile.sh. I see ZERO_LIBARCH is set there for arm. It would seem to never set ZERO_ARCHDEF with the current logic though. Try setting ZERO_ENDIANNESS and ZERO_ARCHDEF in the environment and see how you go. I would guess the correct settings are "little"(?) and "ARM". The other errors _may_ be because the arch wasn't understood so the typedef for jlong, etc. isn't being set up right. You might have to dig deeper on that one. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org