Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85029 - emerge j2sdk for java 1.5.0 did not compile
Summary: emerge j2sdk for java 1.5.0 did not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-12 18:18 UTC by ronny abraham
Modified: 2005-04-24 23:46 UTC (History)
1 user (show)

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


Attachments
Compleate log of "ebuild sun-j2sdk-1.5.0.ebuild install" (sun-j2sdk-1.5.0.txt.bz2,9.27 KB, application/octet-stream)
2005-04-20 08:07 UTC, Thomas Schweikle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ronny abraham 2005-03-12 18:18:59 UTC
When I tried:  ACCEPT_KEYWORDS="~x86" emerge j2sdk  -- I got the following error

mic_linux_i486.inline.hpp: In function `jboolean JVM_CX8Field(JNIEnv*, _jobject*, _jfieldID*, jlong, jlong)':
/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp:114: error: PIC register `%ebx' clobbered in `asm'
make[4]: *** [jvm.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Done with ../generated/jvmtifiles/jvmdiEnter.cpp
make[4]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[3]: *** [the_vm] Error 2
make[3]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[2]: *** [product] Error 2
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp'
make[1]: *** [product] Error 2
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/make'
make: *** [scsl-build] Error 2

!!! ERROR: dev-java/sun-j2sdk-1.5.0 failed.
!!! Function src_compile, Line 113, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message. 

Reproducible: Always
Steps to Reproduce:
1. my-machine# ACCEPT_KEYWORDS="~x86" emerge j2sdk
Actual Results:  
got the following error message:

mic_linux_i486.inline.hpp: In function `jboolean JVM_CX8Field(JNIEnv*,
_jobject*, _jfieldID*, jlong, jlong)':
/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp:114:
error: PIC register `%ebx' clobbered in `asm'
make[4]: *** [jvm.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Done with ../generated/jvmtifiles/jvmdiEnter.cpp
make[4]: Leaving directory
`/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[3]: *** [the_vm] Error 2
make[3]: Leaving directory
`/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[2]: *** [product] Error 2
make[2]: Leaving directory
`/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp'
make[1]: *** [product] Error 2
make[1]: Leaving directory
`/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/make'
make: *** [scsl-build] Error 2

!!! ERROR: dev-java/sun-j2sdk-1.5.0 failed.
!!! Function src_compile, Line 113, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message

Expected Results:  
compiled my jdk!!!
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-13 06:03:08 UTC
as you wanted to maintain it, you also have to fix it's bugs =)
Comment 2 Thomas Schweikle 2005-04-20 06:53:24 UTC
I have the same problem, but a different error:
yew sun-j2sdk # ebuild sun-j2sdk-1.5.0.ebuild install
[...]
gcc -DLINUX -D_GNU_SOURCE -DIA32 -DPRODUCT -I../generated/adfiles -I../generated/jvmtifiles -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/asm -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/ci -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/code -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/compiler -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/gc_implementation -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/gc_implementation/parallelScavenge -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/gc_implementation/shared -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/gc_interface -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/interpreter -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/libadt -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/memory -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/oops -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/opto -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/prims -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/runtime -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/services -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/utilities -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/cpu/i486/vm -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/os/linux/vm -I/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/os_cpu/linux_i486/vm -I../generated -DHOTSPOT_BUILD_VERSION="1.5.0-gentoo-1113997397" -DCOMPILER2 -O3 -fno-strict-aliasing -DOPTO -DHOTSPOT_BUILD_USER=root -fPIC -Winline -fno-rtti -fno-exceptions -D_REENTRANT -pipe -fcheck-new -DVM_LITTLE_ENDIAN -march=i586 -w -c /var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/share/vm/prims/jvm.cpp
/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp: In function `jboolean JVM_CX8Field(JNIEnv*, _jobject*, _jfieldID*, jlong, jlong)':
/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp:114: error: PIC register `%ebx' clobbered in `asm'
make[4]: *** [jvm.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[3]: *** [the_vm] Error 2
make[3]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[2]: *** [product] Error 2
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp'
make[1]: *** [product] Error 2
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.5.0/work/j2sdk/control/make'
make: *** [scsl-build] Error 2

!!! ERROR: dev-java/sun-j2sdk-1.5.0 failed.
!!! Function src_compile, Line 113, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Could it be there are problems with the compiler or make used?
yew sun-j2sdk # gcc --version
gcc (GCC) 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)

yew root # make --version
GNU Make 3.80
Comment 3 Thomas Schweikle 2005-04-20 08:07:37 UTC
Created attachment 56758 [details]
Compleate log of "ebuild sun-j2sdk-1.5.0.ebuild install"
Comment 4 Stefan Jones (RETIRED) gentoo-dev 2005-04-20 08:44:22 UTC
Ok, these should not bee too difficult to fix.

I assume it works with gcc-3.3 (which is what I used when I made the ebuild)
Just now need to try gcc-3.4 ......
Comment 5 Stefan Jones (RETIRED) gentoo-dev 2005-04-21 16:18:45 UTC
Updated the java patches in portage so that it also compiles with gcc-3.4
Have tested it locally.

Will close bug, please reopen if it is not fixed (should be fixed .... )
Comment 6 Thomas Schweikle 2005-04-24 23:46:26 UTC
Yes -- fixed. Compiles now. Applications I've tested:
- tvbrowser (http://tvbrowser.sourceforge.net)
- ldapbrowser (http://www-unix.mcs.anl.gov/~gawor/ldap/)

Both running without errors. sun-j2sdk-1.5.0 is significantly faster than sun-j2sdk-1.4.2.