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

[macos] Linking libapplauncher.dylib on Mac OS X fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4
    • 15
    • 14
    • tools
    • x86
    • os_x

    Description

      Originally discovered at AdoptOpenJDK here:
      https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk14/job/jdk14-mac-x64-hotspot/5

      The link command which fails is this:

      /usr/bin/clang++ -mmacosx-version-min=10.9.0 -m64 -L/Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/modules_libs/java.base -L/Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/modules_libs/java.base/server -dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 -Wl,-rpath,@loader_path/. -Wl,-install_name,@rpath/libapplauncher.dylib -iframework /System/Library/Frameworks -F /System/Library/Frameworks/JavaVM.framework/Frameworks -o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/jdk/modules/jdk.incubator.jpackage/jdk/incubator/jpackage/internal/resources/libapplauncher.dylib /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/FileAttributes.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/FilePath.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/Helpers.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/IniFile.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/JavaVirtualMachine.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/Library.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/MacPlatform.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/Macros.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/Messages.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/Package.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/Platform.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/PlatformString.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/PosixPlatform.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/PropertyFile.o /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/support/native/jdk.incubator.jpackage/libapplauncher/main.o -ldl -framework Cocoa

      Fails with:
      * For target support_native_jdk.incubator.jpackage_libapplauncher_BUILD_LIB_APPLAUNCHER_link:
      (/usr/bin/grep -v -e "^Note: including file:" < /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/make-support/failure-logs/support_native_jdk.incubator.jpackage_libapplauncher_BUILD_LIB_APPLAUNCHER_link.log || true) | /usr/bin/head -n 15
      Undefined symbols for architecture x86_64:
        "std::string::find(char const*, unsigned long, unsigned long) const", referenced from:
            Helpers::ReplaceString(std::string, std::string const&, std::string const&) in Helpers.o
            Macros::ExpandMacros(std::string) in Macros.o
            Package::Initialize() in Package.o
            Package::SetCommandLineArguments(int, char**) in Package.o
            PlatformString::Format(std::string, ...) in PlatformString.o
        "std::string::rfind(char, unsigned long) const", referenced from:
            FilePath::ExtractFileExt(std::string) in FilePath.o
            FilePath::ChangeFileExt(std::string, std::string) in FilePath.o
        "std::string::substr(unsigned long, unsigned long) const", referenced from:
            FilePath::ExtractFileExt(std::string) in FilePath.o
            FilePath::ChangeFileExt(std::string, std::string) in FilePath.o
            Helpers::SplitOptionIntoNameValue(std::string, std::string&, std::string&) in Helpers.o
            IniFile::LoadFromFile(std::string) in IniFile.o
      if test `/usr/bin/wc -l < /Users/jenkins/workspace/build-scripts/jobs/jdk14/jdk14-mac-x64-hotspot/workspace/build/src/build/macosx-x86_64-server-release/make-support/failure-logs/support_native_jdk.incubator.jpackage_libapplauncher_BUILD_LIB_APPLAUNCHER_link.log` -gt 15; then /bin/echo " ... (rest of output omitted)" ; fi
         ... (rest of output omitted)

      Attachments

        Activity

          People

            almatvee Alexander Matveev
            sgehwolf Severin Gehwolf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: