I've made a patch to enable the compilation of sun-j2sdk-1.4.1 with GCC 3.3. It are just some small fixes and I have yet to test the VM extensively :-) I also included an ebuild in the tarball that applys the patch. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 12290 [details, diff] Ebuild + patches inside The other java patches are inside the files folder too, so it can be extracted to overlay-folder easily (didn't know if that works transparently)
this is a tar.bz2 file btw, bugzilla dislikes those, so uploading a tar.gz file (which AFAIK it does like much better) would be easier.
is there any way to make this ebuild use my CFLAGS? remember the strip-flag on such a big package might be a good idea, but I would really like it to use my -match=athlon-xp :)
OUCH, just a notice, I uncommented the unsetting of CFLAGS in the ebuild, just to see if it would build... I didn't think it would, and it didn't. So ignore the previous request.
I have tried building this and mine bails out with the following errors (many of them): ~~~~ /data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/bin/java -classpath "/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/classes:" com.sun.tools.corba.se.idl.toJavaPortable.Compile -td "/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/gensrc" -i "../../../../src/share/classes/org/omg/CORBA" -corba 3.0 -fall -pkgPrefix DynamicAny org.omg ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl com.sun.tools.corba.se.idl.InvalidArgument: Invalid argument: -td ~~~~ Then finally: ~~~make[5]: *** No rule to make target `/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/classes/org/omg/PortableServer/AdapterActivator.class', needed by `classes'. Stop. make[5]: Leaving directory `/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/j2se/make/org/omg/PortableServer' make[4]: *** [optimized] Error 2 make[4]: Leaving directory `/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/j2se/make/org/omg/PortableServer' make[3]: *** [all] Error 1 make[3]: Leaving directory `/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/j2se/make/org/omg' make[2]: *** [all] Error 1 make[2]: Leaving directory `/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/j2se/make/org' make[1]: *** [all] Error 1 make[1]: Leaving directory `/data/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/j2se/make' make: *** [j2se-build] Error 2 !!! ERROR: dev-java/sun-j2sdk-1.4.1-r1 failed. !!! Function src_compile, Line 140, Exitcode 2 !!! (no error message) ~~~
Did you compile it with USE="nptl" ? Because I didn't. It seems the compiled VM doesn't understand the -td switch, then again, neither does my installed VM... I got school now, will have a look later
>>> Install sun-j2sdk-1.4.1-r1 into /var/tmp/portage/sun-j2sdk-1.4.1-r1/image/ category dev-java cp: failed to preserve ownership for /var/tmp/portage/sun-j2sdk-1.4.1-r1/image//opt/sun-j2sdk-1.4.1/jre/lib/i386/client/libjsig.so: No such file or directory cp: failed to preserve ownership for /var/tmp/portage/sun-j2sdk-1.4.1-r1/image//opt/sun-j2sdk-1.4.1/jre/lib/i386/server/libjsig.so: No such file or directory dosym /opt/sun-j2sdk-1.4.1/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/nsbrowser/plugins * Symlinked the java plugin into the mozilla/phoenix/galeon plugin directory. /usr/sbin/ebuild.sh: line 67: /usr/overlay/dev-java/sun-j2sdk/files/sun-j2sdk-1.4.1: No such file or directory !!! ERROR: dev-java/sun-j2sdk-1.4.1-r1 failed. !!! Function set_java_env, Line 73, Exitcode 1 !!! (no error message) OUCH, this is a very sad time for an error to happen. after hours and hours of compiling the install part fails..
I had this problem too. I thought it was related to me screwing around :-) Just delete the symlink in /opt/sun-j2sdk-1.4.1/jre/lib/i386/ and then do ebuild /usr/portage-overlay/dev-java/sun-j2sdk/sun-j2sdk-1.4.1-r1.ebuild install It'll work that way normally
Assigning to tberman to test under gcc3.2, and then see what his results are under gcc3.3. Please bounce back to me once that's done and if progress stops.
built fine, no issues under gcc3.2
tested, works fine, committed.
This is not working. I have tried bootstrapping against blackdown-1.4.1 and sun-jdk-1.4.1.02, and I still get the same errors as indicated before. It might be a glibc issue, or who knows what... Vitals: * Not running nptl. * Running gcc-3.3 * Running glibc-2.3.2-r2 * Running portage-2.0.48
I am gonna leave this bug open, but we have got to figure out whats different between our boxes, i just compiled it no issue w/ gcc3.3, glibc2.3.2-r2 and portage 2.0.48 w/ the sun-jdk-1.4.1 as my vm...
hello there what is the situation with the java development kit now? does it compile? thanks for giving me an update, Alex
Todd, mind closing this bug for archiving purposes? Or will it get lost in bugzilla after a time when we close it now with WORKSFORME status? TIA, Alex
no answer is an answer that works for me.