As promised: I need help building building Hotspot ...

(1) The first build failure is because of SELinux:

make[5]: Leaving directory `/home/bothner/Java/jdk7/build/linux-i586/hotspot/outputdir/linux_i486_compiler2/product'
cd linux_i486_compiler2/product && ./test_gamma
java full version "1.6.0-rc-b104"
./gamma: error while loading shared libraries: libjvm.so: cannot enable executable stack as shared object requires: Permission denied

The fix is:
$ execstack -c build/linux-i586/hotspot/outputdir/linux_i486_compiler2/product/libjvm.so

I don't know if it makes sense for the build to try this automatically.

(2) Next I get:

cd linux_i486_compiler2/product && ./test_gamma
java full version "1.6.0-rc-b104"
There was an error trying to initialize the HPI library.
Could not create the Java virtual machine.
make[4]: *** [product] Error 1
make[4]: Leaving directory `/home/bothner/Java/jdk7/build/linux-i586/hotspot/outputdir'

I Googled for the error message - it might some problem with linker
flags or LD_LIBRARY_PATH not set correctly.  I'll dig into it,
but if anyone has any hints where to look it would be appreciated!
--
        --Per Bothner
per.both...@oracle.com   p...@bothner.com   http://per.bothner.com/

Reply via email to