java clobbering of %ebx

Gregory Davis gregdavis at ieee.org
Thu Oct 21 20:25:54 PDT 2004


Okay.  WTF?  I had lots of problems compiling stuff with gcc-3.4.0, and
thought upgrading to 3.4.2 would solve this, but it didn't.  When compiling
java, I get the error below.  I think it's just another instance of new gcc
being more strict on standard adherence, but how is this resolved?  Note,
this is just 3 lines after the inline_asm patch, but not the exact same
affected line.  Has anyone succeeded in compiling java with a gcc 3.4?  I
just want to hear someone say they have, so that I will be convinced that I
should shut up.

Greg

/home/greg/src/java/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp:
In function `jboolean JVM_CX8Field(JNIEnv*, _jobject*, _jfieldID*, jlong,
jlong)':
/home/greg/src/java/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp:53:
error: PIC register `%ebx' clobbered in `asm'
make[3]: *** [jvm.o] Error 1
make[3]: Leaving directory
`/home/greg/src/java/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[2]: *** [the_vm] Error 2
make[2]: Leaving directory
`/home/greg/src/java/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product'
make[1]: *** [product] Error 2
make[1]: Leaving directory
`/home/greg/src/java/control/build/linux-i586/hotspot-i586/tmp'
make: *** [product] Error 2




More information about the blfs-support mailing list