[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: IcedTea - a first step towards OpenJDK



IcedTea is a temporary fork of OpenJDK which allows building with a free
toolchain and adding/replacing code which is not yet available under a free
license. First deb Packages for amd64 and i386 are available at

 deb http://people.ubuntu.com/~doko/ubuntu/ <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/
 deb-src http://people.ubuntu.com/~doko/ubuntu/ <http://people.ubuntu.com/%7Edoko/ubuntu/> gutsy/


Although the packages are built on gutsy, they are installable on sid as well.
Unfortunately while the binary may be installable on sid the source doesn't seem to be buildable on it.

firstly I needed to do some tweaks to build-deps were needed to provide alternatives to ubuntu only packages. I added xbase-clients as an alternative for xprop and libxul-dev as an alternative for firefox-dev. wget was also missing from the build-deps.

However even with those things fixed it still doesn't build for me, in a 64 bit chroot on a 64 bit box and a 32 bit chroot on a 32 bit box I get the following errors

find rt -name '*.java' | sort > rt-source-files.txt
nowarn -g -d lib/rt -bootclasspath '' -source 1.6 \
         -sourcepath rt:openjdk/j2se/src/share/classes:openjdk/j2se/src/solaris
/classes:generated:jce \
         @rt-source-files.txt
make[1]: nowarn: Command not found
make[1]: [rt-class-files.stamp] Error 127 (ignored)
touch rt-class-files.stamp
mkdir -p bootstrap/jdk1.7.0/jre/lib
/usr/bin/gjar-4.2 cf bootstrap/jdk1.7.0/jre/lib/rt.jar -C lib/rt com -C lib/rt g
nu -C lib/rt java \
         -C lib/rt javax -C lib/rt sun
jar: internal error:
java.io.FileNotFoundException: lib/rt/com (No such file or directory)
  at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.81)
  at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.81)
  at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.81)
  at java.io.FileInputStream.<init>(libgcj.so.81)
  at gnu.classpath.tools.jar.Creator.writeFile(libgcj-tools.so.81)
  at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.81
)
  at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.81
)
  at gnu.classpath.tools.jar.Creator.run(libgcj-tools.so.81)
  at gnu.classpath.tools.jar.Main.run(libgcj-tools.so.81)
  at gnu.classpath.tools.jar.Main.main(libgcj-tools.so.81)
make[1]: *** [bootstrap/jdk1.7.0/jre/lib/rt.jar] Error 1
make[1]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822'
make: *** [stamps/build] Error 2
debian:/icedtea-java7-7~b18-1.2+20070822#

and in a 32 bit chroot on a 64 bit host I got the following error

Making adlc
g++-4.1 -m64 -Xlinker -O1 -m64 -export-dynamic -o ../generated/adfiles/adlc ../g
enerated/adfiles/adlparse.o ../generated/adfiles/archDesc.o ../generated/adfiles
/arena.o ../generated/adfiles/dfa.o ../generated/adfiles/dict2.o ../generated/ad
files/filebuff.o ../generated/adfiles/forms.o ../generated/adfiles/formsopt.o ..
/generated/adfiles/formssel.o ../generated/adfiles/main.o ../generated/adfiles/a
dlc-opcodes.o ../generated/adfiles/output_c.o ../generated/adfiles/output_h.o
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.s
o when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a
when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.s
o when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a
when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[7]: *** [../generated/adfiles/adlc] Error 1
make[7]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/build/linux-amd64/hotspot/outputdir/linux_amd64_compiler2/product'
make[6]: *** [ad_stuff] Error 2
make[6]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/build/linux-amd64/hotspot/outputdir/linux_amd64_compiler2/product'
make[5]: *** [product] Error 2
make[5]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/build/linux-amd64/hotspot/outputdir'
make[4]: *** [generic_build2] Error 2
make[4]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/hotspo
t/make'
make[3]: *** [product] Error 2
make[3]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/hotspo
t/make'
make[2]: *** [hotspot-build] Error 2
make[2]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822/openjdk-ecj/contro
l/make'
make[1]: *** [icedtea-ecj.stamp] Error 2
make[1]: Leaving directory `/icedtea-java7-7~b18-1.2+20070822'
make: *** [stamps/build] Error 2
debian:/icedtea-java7-7~b18-1.2+20070822#
any ideas how to solve theese issues?



Reply to: