jdk9/hs/hotspot make native libs for test build failure both on	x86	and aarch64
    White, Derek 
    Derek.White at cavium.com
       
    Fri Nov  4 17:07:37 UTC 2016
    
    
  
I saw this on some of my machines also - I thought it was a configuration issue, but now I think it’s due to the fix for JDK-8067744 being incompatible with some versions of gcc (which have differences with "as-needed").
Created bug: https://bugs.openjdk.java.net/browse/JDK-8169261
-----Original Message-----
From: hotspot-dev [mailto:hotspot-dev-bounces at openjdk.java.net] On Behalf Of Yang Zhang
Sent: Friday, November 04, 2016 3:08 AM
To: hotspot-dev at 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
    
    
More information about the hotspot-dev
mailing list