Test is broken.. Does not run because on newer class machines where pthread does not exist in
default /usr/lib Instead on mixed OS. it could be in multiple places based on the TRIPLET version
you are building against.
/export/users/mypath/ws/hotspot/somehotspot-dir/test/runtime/6929067
sc11e2403 66 =>sh Test6929067.sh
cp: `./invoke.c' and `./invoke.c' are the same file
cp: cannot stat `/T.class': No such file or directory
java full version "1.8.0-ea-b82"
Architecture: i386
Compilation flag: -m32
VM type: server
/tmp/cckFK5IE.o: In function `main':
invoke.c:(.text+0x35e): undefined reference to `JNI_CreateJavaVM'
invoke.c:(.text+0x3ca): undefined reference to `pthread_create'
invoke.c:(.text+0x3de): undefined reference to `pthread_join'
collect2: ld returned 1 exit status
Test6929067.sh: line 129: ./invoke: No such file or directory
gcc -DLINUX ${COMP_FLAG} -o invoke \
-I${TESTJAVA}/include -I${TESTJAVA}/include/linux \
-L${TESTJAVA}/jre/lib/${ARCH}/${VMTYPE} \
-ljvm -lpthread invoke.c
./invoke
On my machine /usr/lib/libpthread.so DOES NOT EXIST. Its in /usr/lib/x86_64-linux-gnu/libpthread.so instead.
Need a way to define pthread path based on compiler you are building with and -m32 or -m64 are compliant as well based on compiler
default /usr/lib Instead on mixed OS. it could be in multiple places based on the TRIPLET version
you are building against.
/export/users/mypath/ws/hotspot/somehotspot-dir/test/runtime/6929067
sc11e2403 66 =>sh Test6929067.sh
cp: `./invoke.c' and `./invoke.c' are the same file
cp: cannot stat `/T.class': No such file or directory
java full version "1.8.0-ea-b82"
Architecture: i386
Compilation flag: -m32
VM type: server
/tmp/cckFK5IE.o: In function `main':
invoke.c:(.text+0x35e): undefined reference to `JNI_CreateJavaVM'
invoke.c:(.text+0x3ca): undefined reference to `pthread_create'
invoke.c:(.text+0x3de): undefined reference to `pthread_join'
collect2: ld returned 1 exit status
Test6929067.sh: line 129: ./invoke: No such file or directory
gcc -DLINUX ${COMP_FLAG} -o invoke \
-I${TESTJAVA}/include -I${TESTJAVA}/include/linux \
-L${TESTJAVA}/jre/lib/${ARCH}/${VMTYPE} \
-ljvm -lpthread invoke.c
./invoke
On my machine /usr/lib/libpthread.so DOES NOT EXIST. Its in /usr/lib/x86_64-linux-gnu/libpthread.so instead.
Need a way to define pthread path based on compiler you are building with and -m32 or -m64 are compliant as well based on compiler
- relates to
-
JDK-6945460 [TESTBUG] runtime/6929067/Test6929067.sh
- Closed