From doko at ubuntu.com Wed Dec 11 10:02:16 2013 From: doko at ubuntu.com (Matthias Klose) Date: Wed, 11 Dec 2013 19:02:16 +0100 Subject: status of the zero port in openjdk7? Message-ID: <52A8A8A8.1040201@ubuntu.com> Trying to build zero from the icedtea 2.4.3 release, I only see a successful build on powerpc and ppc64. The builds on i686, x86_64, arm (both hard- and soft-float), aarch64, mips, mipsel do fail. Was anybody successful to build on one of these architectures? - the i686 and x86_64 builds do hang in the test_gamma check, done during the stage1 build. - the mips and mipsel builds fail with a vm crash when running the TestCryptoLevel check in stage1. Although the build did fail in 2.3.x before too. - the arm and aarch64 builds seem to hang in the TestCryptoLevel check in stage1. When skipping this check the build fails in the java -version check when starting stage2. My s390 and s390x builds did fail for other reasons. So the only successful builds are on ppc 32bit and 64bit. Wondering what made these successful ... Matthias From aph at redhat.com Wed Dec 11 10:41:55 2013 From: aph at redhat.com (Andrew Haley) Date: Wed, 11 Dec 2013 18:41:55 +0000 Subject: status of the zero port in openjdk7? In-Reply-To: <52A8A8A8.1040201@ubuntu.com> References: <52A8A8A8.1040201@ubuntu.com> Message-ID: <52A8B1F3.2090502@redhat.com> On 12/11/2013 06:02 PM, Matthias Klose wrote: > Trying to build zero from the icedtea 2.4.3 release, I only see a successful > build on powerpc and ppc64. The builds on i686, x86_64, arm (both hard- and > soft-float), aarch64, mips, mipsel do fail. Was anybody successful to build on > one of these architectures? Please tell me exactly how you are trying to build it. Andrew. From doko at ubuntu.com Wed Dec 11 11:15:07 2013 From: doko at ubuntu.com (Matthias Klose) Date: Wed, 11 Dec 2013 20:15:07 +0100 Subject: status of the zero port in openjdk7? In-Reply-To: <52A8B1F3.2090502@redhat.com> References: <52A8A8A8.1040201@ubuntu.com> <52A8B1F3.2090502@redhat.com> Message-ID: <52A8B9BB.5070009@ubuntu.com> Am 11.12.2013 19:41, schrieb Andrew Haley: > On 12/11/2013 06:02 PM, Matthias Klose wrote: >> Trying to build zero from the icedtea 2.4.3 release, I only see a successful >> build on powerpc and ppc64. The builds on i686, x86_64, arm (both hard- and >> soft-float), aarch64, mips, mipsel do fail. Was anybody successful to build on >> one of these architectures? > > Please tell me exactly how you are trying to build it. trying to do a package, which is (on x86_64) configured as: configure --with-jdk-home=/usr/lib/jvm/java-gcj --with-ecj-j ar=/usr/lib/jvm/java-gcj/lib/ecj.jar --with-javac=/usr/lib/jvm/java-gcj/bin/javac --with-java=/us r/lib/jvm/java-gcj/bin/java --with-javah=/usr/lib/jvm/java-gcj/bin/javah --with-rmic=/usr/lib/jvm /java-gcj/bin/rmic --with-jar=/usr/bin/fastjar --with-pkgversion="7u45-2.4.3-1ubuntu0.3" --with-r hino=/usr/share/java/js.jar --disable-downloading --with-openjdk-src-zip=/scratch/packages/openjd k/7u15/openjdk-7-7u45-2.4.3/openjdk.tar.gz --with-hotspot-src-zip=/scratch/packages/openjdk/7u15/ openjdk-7-7u45-2.4.3/hotspot.tar.gz --with-corba-src-zip=/scratch/packages/openjdk/7u15/openjdk-7 -7u45-2.4.3/corba.tar.gz --with-jaxp-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/ jaxp.tar.gz --with-jaxws-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jaxws.tar.gz --with-jdk-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jdk-dfsg.tar.gz --with-la ngtools-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/langtools-dfsg.tar.gz --with- jamvm-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jamvm-ac22c9948434e528ece451642 b4ebde40953ee7e.tar.gz --with-parallel-jobs=8 --enable-pulse-java --enable-system-lcms --enable-n ss --with-additional-vms=zero,jamvm --host=x86_64-linux-gnu --build=x86_64-linux-gnu I think you can remove all the --with-*-src-zip options. Most of the other architectures are configured to build zero only. If needed, I can give access to Debian sid and Ubuntu trusty chroots on i386 and x86_64. Trying to figure out something for other architectures. Matthias PS: the ia64 build shows the same symptoms as the armhf and armel builds. From aph at redhat.com Thu Dec 12 04:43:02 2013 From: aph at redhat.com (Andrew Haley) Date: Thu, 12 Dec 2013 12:43:02 +0000 Subject: status of the zero port in openjdk7? In-Reply-To: <52A8B9BB.5070009@ubuntu.com> References: <52A8A8A8.1040201@ubuntu.com> <52A8B1F3.2090502@redhat.com> <52A8B9BB.5070009@ubuntu.com> Message-ID: <52A9AF56.1060700@redhat.com> On 12/11/2013 07:15 PM, Matthias Klose wrote: > Am 11.12.2013 19:41, schrieb Andrew Haley: >> On 12/11/2013 06:02 PM, Matthias Klose wrote: >>> Trying to build zero from the icedtea 2.4.3 release, I only see a successful >>> build on powerpc and ppc64. The builds on i686, x86_64, arm (both hard- and >>> soft-float), aarch64, mips, mipsel do fail. Was anybody successful to build on >>> one of these architectures? >> >> Please tell me exactly how you are trying to build it. > > trying to do a package, which is (on x86_64) configured as: > > --with-openjdk-src-zip=/scratch/packages/openjd > k/7u15/openjdk-7-7u45-2.4.3/openjdk.tar.gz > --with-hotspot-src-zip=/scratch/packages/openjdk/7u15/ > openjdk-7-7u45-2.4.3/hotspot.tar.gz > --with-corba-src-zip=/scratch/packages/openjdk/7u15/openjdk-7 > -7u45-2.4.3/corba.tar.gz > --with-jaxp-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/ > jaxp.tar.gz > --with-jaxws-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jaxws.tar.gz > --with-jdk-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jdk-dfsg.tar.gz --with-la > ngtools-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/langtools-dfsg.tar.gz > --with- > jamvm-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jamvm-ac22c9948434e528ece451642 > b4ebde40953ee7e.tar.gz Your mailer seems to be broken. Anyway, where exactly are these files? I suppose they were downloaded from some site somewhere. Are they exactly what was downloaded from icedtea.classpath.org? If so, what are their URLs? Andrew. From doko at ubuntu.com Thu Dec 12 05:01:09 2013 From: doko at ubuntu.com (Matthias Klose) Date: Thu, 12 Dec 2013 14:01:09 +0100 Subject: status of the zero port in openjdk7? In-Reply-To: <52A9AF56.1060700@redhat.com> References: <52A8A8A8.1040201@ubuntu.com> <52A8B1F3.2090502@redhat.com> <52A8B9BB.5070009@ubuntu.com> <52A9AF56.1060700@redhat.com> Message-ID: <52A9B395.3030905@ubuntu.com> Am 12.12.2013 13:43, schrieb Andrew Haley: > On 12/11/2013 07:15 PM, Matthias Klose wrote: >> Am 11.12.2013 19:41, schrieb Andrew Haley: >>> On 12/11/2013 06:02 PM, Matthias Klose wrote: >>>> Trying to build zero from the icedtea 2.4.3 release, I only see a successful >>>> build on powerpc and ppc64. The builds on i686, x86_64, arm (both hard- and >>>> soft-float), aarch64, mips, mipsel do fail. Was anybody successful to build on >>>> one of these architectures? >>> >>> Please tell me exactly how you are trying to build it. >> >> trying to do a package, which is (on x86_64) configured as: >> > >> --with-openjdk-src-zip=/scratch/packages/openjd >> k/7u15/openjdk-7-7u45-2.4.3/openjdk.tar.gz >> --with-hotspot-src-zip=/scratch/packages/openjdk/7u15/ >> openjdk-7-7u45-2.4.3/hotspot.tar.gz >> --with-corba-src-zip=/scratch/packages/openjdk/7u15/openjdk-7 >> -7u45-2.4.3/corba.tar.gz >> --with-jaxp-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/ >> jaxp.tar.gz >> --with-jaxws-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jaxws.tar.gz >> --with-jdk-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jdk-dfsg.tar.gz --with-la >> ngtools-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/langtools-dfsg.tar.gz >> --with- >> jamvm-src-zip=/scratch/packages/openjdk/7u15/openjdk-7-7u45-2.4.3/jamvm-ac22c9948434e528ece451642 >> b4ebde40953ee7e.tar.gz > > Your mailer seems to be broken. > > Anyway, where exactly are these files? I suppose they were downloaded > from some site somewhere. Are they exactly what was downloaded from > icedtea.classpath.org? If so, what are their URLs? The files can be found in the tarball at [1]. Without these options, these are downloaded from icedtea.classpath.org when make download is run. The URLs are found in the IcedTea Makefile. the tarballs used are the same as on icedtea.classpath.org for the 2.4.3 release, except for jdk-dfsg.tar.gz and langtools-dfsg.tar.gz, which have non-distributable (by Debian) binaries for other operating systems removed. Matthias [1] http://ftp.de.debian.org/debian/pool/main/o/openjdk-7/openjdk-7_7u45-2.4.3.orig.tar.gz From rjdkolb at gmail.com Tue Dec 17 09:56:21 2013 From: rjdkolb at gmail.com (Richard Kolb) Date: Tue, 17 Dec 2013 19:56:21 +0200 Subject: Zero and OpenJDK 8 Message-ID: Hello I am trying to compile OpenJDK 8 for my Raspberry pi. Can someone tell me which version of LLVM I should ideally use ? I tried 2.9 and 3.0 and I gave a compile error. 3.1 gave me some errors JVM exited. (Sorry I am naughty, I don't have the errors, but I can recreate them) regards Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/zero-dev/attachments/20131217/d359086a/attachment.html From aph at redhat.com Wed Dec 18 01:41:17 2013 From: aph at redhat.com (Andrew Haley) Date: Wed, 18 Dec 2013 09:41:17 +0000 Subject: Zero and OpenJDK 8 In-Reply-To: References: Message-ID: <52B16DBD.9050303@redhat.com> On 12/17/2013 05:56 PM, Richard Kolb wrote: > I am trying to compile OpenJDK 8 for my Raspberry pi. > Can someone tell me which version of LLVM I should ideally use ? I don't think this will work out of the box. There are significant issues with LLVM and Shark, and it will be necessary to do some work to get it going. Zero, however, should just work. Andrew. From doko at ubuntu.com Thu Dec 19 06:09:08 2013 From: doko at ubuntu.com (Matthias Klose) Date: Thu, 19 Dec 2013 15:09:08 +0100 Subject: [patch] build zero on powerpc64le-linux-gnu Message-ID: <52B2FE04.1000307@ubuntu.com> The following changes, made against icedtea-2.4.3 allow zero to build on powerpc64le-linux-gnu. jtreg test results don't look worse than for other zero architectures. --------------- jtreg console summary for hotspot --------------- Error: compiler/5091921/Test6850611.java Error: compiler/5091921/Test6905845.java FAILED: compiler/6865265/StackOverflowBug.java Error: compiler/6901572/Test.java Error: compiler/7100757/Test7100757.java FAILED: compiler/7141637/SpreadNullArg.java FAILED: compiler/7158807/Test7158807.java FAILED: runtime/6929067/Test6929067.sh Test results: passed: 155; failed: 4; error: 4 --------------- jtreg console summary for langtools --------------- FAILED: com/sun/javadoc/testJavascript/TestJavascript.java FAILED: com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java FAILED: tools/javac/processing/6499119/ClassProcessor.java FAILED: tools/javac/T5090006/T5090006.java Test results: passed: 1,940; failed: 4 Matthias -------------- next part -------------- --- openjdk/hotspot/src/os_cpu/linux_zero/vm/globals_linux_zero.hpp.orig 2013-12-19 13:53:15.987056600 +0000 +++ openjdk/hotspot/src/os_cpu/linux_zero/vm/globals_linux_zero.hpp 2013-12-19 13:58:01.041010426 +0000 @@ -34,7 +34,7 @@ define_pd_global(bool, DontYieldALot, false); define_pd_global(intx, ThreadStackSize, 1664); #ifdef _LP64 -define_pd_global(intx, VMThreadStackSize, 1024); +define_pd_global(intx, VMThreadStackSize, 1664); #else define_pd_global(intx, VMThreadStackSize, 512); #endif // _LP64 --- openjdk/corba/make/common/shared/Platform.gmk.orig 2013-12-19 13:51:15.766234650 +0000 +++ openjdk/corba/make/common/shared/Platform.gmk 2013-12-19 13:53:15.987056600 +0000 @@ -154,7 +154,7 @@ # Arch and OS name/version mach := $(shell uname -m) ifneq (,$(wildcard /usr/bin/dpkg-architecture)) - mach := $(shell (dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/arm64/aarch64/;s/powerpc$$/ppc/;s/hppa/parisc/') + mach := $(shell (dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/arm64/aarch64/;s/powerpc$$/ppc/;s/hppa/parisc/;s/ppc64el/ppc64le/') endif archExpr = case "$(mach)" in \ i[3-9]86) \ --- openjdk/jdk/make/jdk_generic_profile.sh.orig 2013-10-16 14:17:14.000000000 +0000 +++ openjdk/jdk/make/jdk_generic_profile.sh 2013-12-19 13:56:16.628292867 +0000 @@ -260,6 +260,7 @@ sparc64) ZERO_LIBARCH=sparcv9 ;; arm*) ZERO_LIBARCH=arm ;; sh*) ZERO_LIBARCH=sh ;; + ppc64le) ZERO_LIBARCH=ppc64le ;; *) ZERO_LIBARCH="$(arch)" esac export ZERO_LIBARCH @@ -269,7 +270,7 @@ arm|i386|ppc|s390|sh|sparc) ARCH_DATA_MODEL=32 ;; - aarch64|alpha|amd64|ia64|ppc64|s390x|sparcv9) + aarch64|alpha|amd64|ia64|ppc64*|s390x|sparcv9) ARCH_DATA_MODEL=64 ;; *) @@ -280,7 +281,7 @@ # ZERO_ENDIANNESS is the endianness of the processor case "${ZERO_LIBARCH}" in - arm|aarch64|amd64|i386|ia64|mipsel) + arm|aarch64|amd64|i386|ia64|mipsel|ppc64le) ZERO_ENDIANNESS=little ;; ppc*|s390*|sparc*|alpha) @@ -307,7 +308,7 @@ s390) ZERO_ARCHFLAG="-m31" ;; - arm|aarch64) + arm|aarch64|ppc64le) ZERO_ARCHFLAG="-D_LITTLE_ENDIAN" ;; *) --- openjdk/jdk/make/common/shared/Platform.gmk.orig 2013-12-19 13:51:15.754234564 +0000 +++ openjdk/jdk/make/common/shared/Platform.gmk 2013-12-19 13:53:15.987056600 +0000 @@ -161,7 +161,7 @@ mach := $(shell uname -m) endif ifneq (,$(wildcard /usr/bin/dpkg-architecture)) - mach := $(shell (dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/arm64/aarch64/;s/powerpc$$/ppc/;s/hppa/parisc/') + mach := $(shell (dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/arm64/aarch64/;s/powerpc$$/ppc/;s/hppa/parisc/;s/ppc64el/ppc64le/') endif archExpr = case "$(mach)" in \ i[3-9]86) \ @@ -205,10 +205,10 @@ # Most archs are 32-bit ifndef ARCH_DATA_MODEL ARCH_DATA_MODEL=32 - ifeq ($(ARCH), amd64) + ifneq (,$(findstring 64,$(ARCH))) ARCH_DATA_MODEL=64 endif - ifeq ($(ARCH), ia64) + ifeq ($(ARCH), s390x) ARCH_DATA_MODEL=64 endif ifeq ($(ARCH), sh)