Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169261

Fix for JDK-8067744 creates build failures with some versions of gcc and/or linux

XMLWordPrintable

    • 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

            dchuyko Dmitry Chuyko
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: