Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21471 - Sun Java 1.4.1 & GCC 3.3
Summary: Sun Java 1.4.1 & GCC 3.3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Todd Berman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-22 06:56 UTC by Mathy Vanvoorden
Modified: 2004-09-23 18:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild + patches inside (sun-j2sdk.tar.bz2,8.34 KB, patch)
2003-05-22 06:58 UTC, Mathy Vanvoorden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathy Vanvoorden 2003-05-22 06:56:04 UTC
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.
Comment 1 Mathy Vanvoorden 2003-05-22 06:58:12 UTC
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)
Comment 2 David Nielsen 2003-05-22 09:31:51 UTC
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.
Comment 3 David Nielsen 2003-05-22 10:15:54 UTC
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 :)
Comment 4 David Nielsen 2003-05-22 13:50:38 UTC
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.
Comment 5 Dylan Carlson (RETIRED) gentoo-dev 2003-05-22 18:33:43 UTC
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)
~~~
Comment 6 Mathy Vanvoorden 2003-05-23 02:06:31 UTC
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
Comment 7 David Nielsen 2003-05-23 04:41:54 UTC
>>> 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.. 
Comment 8 Mathy Vanvoorden 2003-05-23 07:23:18 UTC
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
Comment 9 Dylan Carlson (RETIRED) gentoo-dev 2003-05-23 17:56:25 UTC
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.
Comment 10 Todd Berman (RETIRED) gentoo-dev 2003-05-23 22:24:23 UTC
built fine, no issues under gcc3.2
Comment 11 Todd Berman (RETIRED) gentoo-dev 2003-05-24 12:00:22 UTC
tested, works fine, committed.
Comment 12 Dylan Carlson (RETIRED) gentoo-dev 2003-05-25 06:12:01 UTC
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
Comment 13 Todd Berman (RETIRED) gentoo-dev 2003-05-25 17:15:00 UTC
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...
Comment 14 Alexander Gabert (RETIRED) gentoo-dev 2004-03-05 02:49:38 UTC
hello there

what is the situation with the java development kit now?

does it compile?

thanks for giving me an update,

Alex
Comment 15 Alexander Gabert (RETIRED) gentoo-dev 2004-07-08 13:19:53 UTC
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
Comment 16 Alexander Gabert (RETIRED) gentoo-dev 2004-09-23 18:48:22 UTC
no answer is an answer that works for me.