Re: OpenJDK-7 on kFreeBSD (feedback)
Hi,
Just to give some new feedback on this, I was able to build and install
openjdk-7 on kfreebsd-i386 from the openjdk-7_7~u3-2.1.1~pre1-1.dsc.
It took a few attempts though, lots of a disk space and somehow I hit a
kernel panic in my VM at one point. Since I carried on from that point,
I don't really have a clean build log.
I was not using sbuild or a chroot; I built manually with just
"dpkg-buildpackage -nc", because -j4 would cause issues with
parallelism, and yet, using -j1 instead would cause a problem in one of
the makefiles.
The only thing I had to change was a makefile definition in the build
tree, as shown in the attached diff, otherwise it was failing when javac
would look for some CORBA class.
Also I saw Xvfb hang during the test suite, and had to kill it manually,
but then the build finished off without error.
I'll need to work out what differences leads to the problem[s] currently
seen on the buildd's, to someday be able to get openjdk-7 installed in
the archive:
> loads for: /build/buildd-openjdk-7_7~u3-2.1.1~pre1-1-kfreebsd-i386-YjhYRC/openjdk-7-7~u3-2.1.1~pre1/build/openjdk.build-boot/lib/i386/libmanagement.so
> Inconsistency detected by ld.so: dl-minimal.c: 138: realloc: Assertion `ptr == alloc_last_block' failed!
> make
My build system runs the 8.3-1-686 kernel and tends to follow wheezy.
The virtual machine has a total of 1.5GiB RAM, with vm.kmem_size set to
512MiB. The versions of the build deps were:
> ant 1.8.2-4
> ant-optional 1.8.2-4
> autoconf 2.68-1
> automake 1:1.11.3-1
> autotools-dev 20120210.1
> cpio 2.11-7
> dbus-x11 1.5.12-1
> debhelper 9.20120322
> ecj-gcj 3.5.1-3
> fastjar 2:0.98-3
> fonts-ipafont-mincho 00303-6
> g++-4.7 4.7.0-1
> gawk 1:3.1.8+dfsg-0.1
> gcj-jdk 4:4.6.2-4
> libasound2-dev
> libattr1-dev:kfreebsd-i386 1:2.4.46-5
> libcups2-dev 1.5.2-5
> libffi-dev:kfreebsd-i386 3.0.10-3
> libfreetype6-dev 2.4.9-1
> libgif-dev 4.1.6-9
> libgl1-mesa-dri:kfreebsd-i386 7.11.2-1
> libgtk2.0-dev 2.24.10-1
> libjpeg8-dev:kfreebsd-i386 8d-1
> liblcms2-dev 2.2+git20110628-2.1
> libnss3-dev 3.13.3-1
> libpng-dev
> libpulse-dev:kfreebsd-i386 1.1-3
> librhino-java 1.7R3-5
> libtool 2.4.2-1
> libxaw7-dev 2:1.0.9-3
> libxi-dev 2:1.4.5-1
> libxinerama-dev 2:1.1.1-3
> libxrender-dev 1:0.9.6-2
> libxt-dev 1:1.1.1-2
> libxtst-dev 2:1.2.0-4
> lsb-release 4.1+Debian0
> m4 1.4.16-2
> mauve 20120103-1
> pkg-config 0.26-1
> procps 1:3.3.2-3
> sharutils 1:4.11-1
> time 1.7-23.1
> twm 1:1.0.6-1
> unzip 6.0-5
> wdiff 1.1.0-2
> wget 1.13.4-2
> x11-xkb-utils 7.6+4
> xauth 1:1.0.6-1
> xfonts-base 1:1.0.3
> xsltproc 1.1.26-8
> xvfb 2:1.11.4-1
> zip 3.0-4
> zlib1g-dev:kfreebsd-i386 1:1.2.6.dfsg-2
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
--- openjdk-7-7~u3-2.1.1~pre1.orig/build/openjdk-boot/corba/make/common/Rules.gmk 2012-04-14 02:54:57.603769502 +0100
+++ openjdk-7-7~u3-2.1.1~pre1/build/openjdk-boot/corba/make/common/Rules.gmk 2012-04-12 19:58:04.000000000 +0100
@@ -180,14 +180,15 @@
# rather than any bootclasspath classes.
JAVAC_PREFER_SOURCE = -Xprefer:source
+# :XXX:
.compile.classlist : $(JAVA_SOURCE_LIST)
@$(MKDIR) -p $(CLASSDESTDIR)
if [ -s $(JAVA_SOURCE_LIST) ] ; then \
$(CAT) $(JAVA_SOURCE_LIST); \
- $(ECHO) $(JAVAC_CMD) -classpath $(ABS_OUTPUTDIR)/corba/classes \
+ $(ECHO) $(JAVAC_CMD) -classpath $(ABS_OUTPUTDIR)/classes \
-classpath $(LANGTOOLS_DIST)/lib/classes.jar \
-sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
- $(JAVAC_CMD) -classpath $(ABS_OUTPUTDIR)/corba/classes \
+ $(JAVAC_CMD) -classpath $(ABS_OUTPUTDIR)/classes \
-classpath $(LANGTOOLS_DIST)/lib/classes.jar \
-sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
fi
Reply to: