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

Use -lobjc instead of -fobjc-link-runtime in libosxsecurity

    Details

    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      x86
    • OS:
      os_x

      Backports

        Description

        I'm seeing the following error when trying to build on macOS:

        Undefined symbols for architecture x86_64:
          "_objc_loadClassref", referenced from:
              __ARCLite__load() in libarclite_macosx.a(arclite.o)
        ld: symbol(s) not found for architecture x86_64
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        make[3]: *** [/Users/dnsimon/jdk-jdk/build/macosx-x86_64-server-release/support/modules_libs/java.base/libosxsecurity.dylib] Error 1
        make[3]: *** Waiting for unfinished jobs....
        make[2]: *** [java.base-libs] Error 2


        This is my configuration:

        Configuration summary:
        * Debug level: release
        * HS debug level: product
        * JVM variants: server
        * JVM features: server: 'aot cds closed-src cmsgc commercial-features compiler1 compiler2 dtrace epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs'
        * OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
        * Version string: 14-internal+0-adhoc.dnsimon.open (14-internal)

        Tools summary:
        * Boot JDK: openjdk version "14-ea" 2020-03-17 OpenJDK Runtime Environment (build 14-ea+11-371) OpenJDK 64-Bit Server VM (build 14-ea+11-371, mixed mode, sharing) (at /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home)
        * Toolchain: clang (clang/LLVM from Xcode 11.0)
        * C Compiler: Version 11.0.0 (at /usr/bin/clang)
        * C++ Compiler: Version 11.0.0 (at /usr/bin/clang++)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ihse Magnus Ihse Bursie
                  Reporter:
                  dnsimon Douglas Simon
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: