strange error when running jtreg tests
David Holmes
david.holmes at oracle.com
Wed Aug 17 03:38:52 UTC 2016
On 16/08/2016 8:41 AM, Gustavo Romero wrote:
> Hi,
>
> I observed the same issue on Ubuntu 16.04 but not on RHEL 7.2.
>
> RHEL 7.2:
> https://paste.fedoraproject.org/409005/raw/
>
> Ubuntu 16.04:
> https://paste.fedoraproject.org/409004/raw/
>
> I checked on PPC64 LE arch (Ubuntu 16.04 and RHEL 7.2, logs above). It fails also
> on Ubuntu 16.04 x64 (but I could not check if it succeeds on RHEL 7.2 x64).
>
> On Ubuntu 16.04 PPC64 LE replacing -lpthread by -pthread in
> ./hotspot/make/test/JtregNative.gmk:82 solves the issue on pthread_* symbols and
> placing -ljvm (for instance) in front of ".../exeinvoke.o" solves the issue on
> JNI_CreateJavaVM reference, however I'm really not sure what's the root cause.
I checked the link command being used (it is generated into a file when
the test-image is built) and the -ljvm is already in front of the
exeinvoke.o
/var/tmp/jib-daholme/install/jpg/infra/builddeps/devkit-linux_x64/gcc4.9.2-OEL6.4+1.0/devkit-linux_x64-gcc4.9.2-OEL6.4+1.0.tar.gz/bin/gcc
-Wl,-z,defs -Wl,-O1 -Wl,--allow-shlib-undefined
-L/scratch/dh198349/jdk9-hs/build/linux-x64/support/modules_libs/java.base/amd64
-L/scratch/dh198349/jdk9-hs/build/linux-x64/support/modules_libs/java.base/amd64/server
-ljvm -lpthread
--sysroot=/var/tmp/jib-daholme/install/jpg/infra/builddeps/devkit-linux_x64/gcc4.9.2-OEL6.4+1.0/devkit-linux_x64-gcc4.9.2-OEL6.4+1.0.tar.gz/x86_64-unknown-linux-gnu/sysroot
-o
/scratch/dh198349/jdk9-hs/build/linux-x64/support/test/hotspot/jtreg/native/bin/invoke
/scratch/dh198349/jdk9-hs/build/linux-x64/support/test/hotspot/jtreg/native/support/exeinvoke/exeinvoke.o
David
-----
> Maurizio, what distro/arch are you using?
>
> Regards,
> Gustavo
>
More information about the build-dev
mailing list