-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b150
-
linux
From: hotspot-dev [mailto:hotspot-dev-bounces@openjdk.java.net] On Behalf Of Yang Zhang
Sent: Friday, November 04, 2016 3:08 AM
To: hotspot-dev@openjdk.java.net
Subject: jdk9/hs/hotspot make native libs for test build failure both on x86 and aarch64
Hi,
jdk9/hs/hotspot native libs for jtreg build failed after the push of http://hg.openjdk.java.net/jdk9/hs/hotspot/rev/308a53dd5aee
Build command: make test-image-hotspot-jtreg-native
Could someone please help to fix it?
The reason is that dl library isn't found. I think the following change could fix that:
------
diff --git a/make/test/JtregNative.gmk b/make/test/JtregNative.gmk index 78e78d7..95b5747 100644
--- a/make/test/JtregNative.gmk
+++ b/make/test/JtregNative.gmk
@@ -91,7 +91,7 @@ ifeq ($(OPENJDK_TARGET_OS), linux)
BUILD_HOTSPOT_JTREG_LIBRARIES_LDFLAGS_libtest-rwx := -z execstack
BUILD_HOTSPOT_JTREG_EXECUTABLES_LIBS_exeinvoke := -ljvm -lpthread
BUILD_TEST_invoke_exeinvoke.c_OPTIMIZATION := NONE
- BUILD_HOTSPOT_JTREG_EXECUTABLES_LDFLAGS_exeFPRegs := -ldl
+ BUILD_HOTSPOT_JTREG_EXECUTABLES_LDFLAGS_exeFPRegs :=
-Wl,--no-as-needed -ldl
endif
ifeq ($(OPENJDK_TARGET_OS), windows)
------
Regards
Yang
Sent: Friday, November 04, 2016 3:08 AM
To: hotspot-dev@openjdk.java.net
Subject: jdk9/hs/hotspot make native libs for test build failure both on x86 and aarch64
Hi,
jdk9/hs/hotspot native libs for jtreg build failed after the push of http://hg.openjdk.java.net/jdk9/hs/hotspot/rev/308a53dd5aee
Build command: make test-image-hotspot-jtreg-native
Could someone please help to fix it?
The reason is that dl library isn't found. I think the following change could fix that:
------
diff --git a/make/test/JtregNative.gmk b/make/test/JtregNative.gmk index 78e78d7..95b5747 100644
--- a/make/test/JtregNative.gmk
+++ b/make/test/JtregNative.gmk
@@ -91,7 +91,7 @@ ifeq ($(OPENJDK_TARGET_OS), linux)
BUILD_HOTSPOT_JTREG_LIBRARIES_LDFLAGS_libtest-rwx := -z execstack
BUILD_HOTSPOT_JTREG_EXECUTABLES_LIBS_exeinvoke := -ljvm -lpthread
BUILD_TEST_invoke_exeinvoke.c_OPTIMIZATION := NONE
- BUILD_HOTSPOT_JTREG_EXECUTABLES_LDFLAGS_exeFPRegs := -ldl
+ BUILD_HOTSPOT_JTREG_EXECUTABLES_LDFLAGS_exeFPRegs :=
-Wl,--no-as-needed -ldl
endif
ifeq ($(OPENJDK_TARGET_OS), windows)
------
Regards
Yang
- relates to
-
JDK-8164297 Jtreg test exeinvoke fails to link on Ubuntu
- Resolved
-
JDK-8067744 XMM/SSE float register values corrupted by JNI_CreateVM call in JRE 8 (Windows)
- Closed