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

[AOT] TEST_OPTS_AOT_MODULES doesn't work on mac

    XMLWordPrintable

Details

    • b06
    • os_x

    Backports

      Description

        make run-test TEST_OPTS_AOT_MODULES=java.base ... failed for me on mac:

        Running with AOTd libraries for java.base
        Generating test-support/aot/jtreg_open_test_hotspot_jtreg_compiler_intrinsics_bigInteger_TestMulAdd_java/libjava.base.dylib
        Compiling /Users/iignatye/ws/jdk/jdk12/build/macosx-x64/test-support/aot/jtreg_open_test_hotspot_jtreg_compiler_intrinsics_bigInteger_TestMulAdd_java/libjava.base.dylib...
        6204 classes found (550 ms)
        56381 methods total, 52563 methods to compile (1947 ms)
        Compiling with 4 threads
        ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
        52563 methods compiled, 0 methods failed (277417 ms)
        Parsing compiled code (1568 ms)
        Processing metadata (17276 ms)
        Preparing stubs binary (0 ms)
        Preparing compiled binary (211 ms)
        Creating binary: /Users/iignatye/ws/jdk/jdk12/build/macosx-x64/test-support/aot/jtreg_open_test_hotspot_jtreg_compiler_intrinsics_bigInteger_TestMulAdd_java/libjava.base.o (12469 ms)
        Creating shared library: /Users/iignatye/ws/jdk/jdk12/build/macosx-x64/test-support/aot/jtreg_open_test_hotspot_jtreg_compiler_intrinsics_bigInteger_TestMulAdd_java/libjava.base.dylib (8691 ms)
        Exception in thread "main" java.lang.InternalError: ld: warning: URGENT: building for OSX, but linking against dylib (/usr/lib/libSystem.dylib) built for (unknown). Note: This will be an error in the future.Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executableld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)
        at jdk.aot@12-internal/jdk.tools.jaotc.Linker.link(Linker.java:133)
        at jdk.aot@12-internal/jdk.tools.jaotc.Main.run(Main.java:252)
        at jdk.aot@12-internal/jdk.tools.jaotc.Main.run(Main.java:132)
        at jdk.aot@12-internal/jdk.tools.jaotc.Main.main(Main.java:88)

        Attachments

          Issue Links

            Activity

              People

                erikj Erik Joelsson
                iignatyev Igor Ignatyev (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: