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

Duplicate global variable 'jvm' in libjavajpeg and libawt

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b17
    • OS:
      linux

      Backports

        Description

        This is mostly an issue with using experimental AWT support with Graal VM's native-image via the static OpenJDK libraries.

        In libjavajpeg.so and libawt.so global variable of type JavaVM* 'jvm' is being used. When static libs are being produced for both on a GCC 10+ system (without -fcommon), libjavajpeg.a and libawt.a and subsequently used in a native image the link will fail due to duplicate variable 'jvm'. This can be reproduced by creating a native image from test/jdk/java/awt/font/Rotate/RotatedFontTest.java in the OpenJDK tree.

        Example failure:
        [...]
        [font-rotate-test:500707] (features): 870.20 ms, 3.26 GB
        [font-rotate-test:500707] analysis: 31,579.63 ms, 3.26 GB
        [font-rotate-test:500707] universe: 942.02 ms, 3.26 GB
        [font-rotate-test:500707] (parse): 5,563.07 ms, 3.26 GB
        [font-rotate-test:500707] (inline): 7,946.27 ms, 3.96 GB
        [font-rotate-test:500707] (compile): 27,494.46 ms, 5.17 GB
        [font-rotate-test:500707] compile: 42,411.52 ms, 5.17 GB
        [font-rotate-test:500707] dbginfo: 7,406.19 ms, 5.51 GB
        [font-rotate-test:500707] image: 10,666.92 ms, 5.51 GB
        >> /usr/bin/gcc -z noexecstack -Wl,--gc-sections -Wl,--dynamic-list -Wl,/tmp/SVM-14433696000961709042/exported_symbols.list -Wl,--exclude-libs,ALL -Wl,-x -o /home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test font-rotate-test.o /disk/graal/upstream-sources/graal/mandrel-build/lib/libnet.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libnio.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjava.a /disk/graal/upstream-sources/graal/mandrel-build/lib/liblcms.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfontmanager.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt_headless.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libharfbuzz.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfdlibm.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libzip.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/libjvm.a -v -L/tmp/SVM-14433696000961709042 -L/disk/graal/upstream-sources/graal/mandrel-build/lib -L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64 -lstdc++ -lm -lfreetype -lpthread -ldl -lz -lrt
        ># Using built-in specs.
        ># COLLECT_GCC=/usr/bin/gcc
        ># COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
        ># OFFLOAD_TARGET_NAMES=nvptx-none
        ># OFFLOAD_TARGET_DEFAULT=1
        ># Target: x86_64-redhat-linux
        ># Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
        ># Thread model: posix
        ># Supported LTO compression algorithms: zlib zstd
        ># gcc version 10.2.1 20201125 (Red Hat 10.2.1-9) (GCC)
        ># COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/10/:/usr/libexec/gcc/x86_64-redhat-linux/10/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/10/:/usr/lib/gcc/x86_64-redhat-linux/
        ># LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/10/:/usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/10/../../../:/lib/:/usr/lib/
        ># COLLECT_GCC_OPTIONS='-z' 'noexecstack' '-o' '/home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test' '-v' '-L/tmp/SVM-14433696000961709042' '-L/disk/graal/upstream-sources/graal/mandrel-build/lib' '-L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64' '-mtune=generic' '-march=x86-64'
        ># /usr/libexec/gcc/x86_64-redhat-linux/10/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper -plugin-opt=-fresolution=/tmp/ccnjZgKJ.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test -z noexecstack /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/10/crtbegin.o -L/tmp/SVM-14433696000961709042 -L/disk/graal/upstream-sources/graal/mandrel-build/lib -L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64 -L/usr/lib/gcc/x86_64-redhat-linux/10 -L/usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/10/../../.. --gc-sections --dynamic-list /tmp/SVM-14433696000961709042/exported_symbols.list --exclude-libs ALL -x font-rotate-test.o /disk/graal/upstream-sources/graal/mandrel-build/lib/libnet.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libnio.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjava.a /disk/graal/upstream-sources/graal/mandrel-build/lib/liblcms.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfontmanager.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt_headless.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libharfbuzz.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfdlibm.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libzip.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/libjvm.a -lstdc++ -lm -lfreetype -lpthread -ldl -lz -lrt -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-redhat-linux/10/crtend.o /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crtn.o
        ># /usr/bin/ld: /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a(awt_LoadLibrary.o):/disk/openjdk/upstream-sources/openjdk-11-dev/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c:52: multiple definition of `jvm'; /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a(jpegdecoder.o):/disk/openjdk/upstream-sources/openjdk-11-dev/src/java.desktop/share/native/libjavajpeg/jpegdecoder.c:67: first defined here
        ># collect2: error: ld returned 1 exit status
        [font-rotate-test:500707] write: 1,876.08 ms, 5.51 GB
        Fatal error:java.lang.RuntimeException: java.lang.RuntimeException: There was an error linking the native image: Linker command exited with 1

        Linker command executed:
        /usr/bin/gcc -z noexecstack -Wl,--gc-sections -Wl,--dynamic-list -Wl,/tmp/SVM-14433696000961709042/exported_symbols.list -Wl,--exclude-libs,ALL -Wl,-x -o /home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test font-rotate-test.o /disk/graal/upstream-sources/graal/mandrel-build/lib/libnet.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libnio.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjava.a /disk/graal/upstream-sources/graal/mandrel-build/lib/liblcms.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfontmanager.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt_headless.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libharfbuzz.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfdlibm.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libzip.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/libjvm.a -v -L/tmp/SVM-14433696000961709042 -L/disk/graal/upstream-sources/graal/mandrel-build/lib -L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64 -lstdc++ -lm -lfreetype -lpthread -ldl -lz -lrt

        Linker command output:
        Using built-in specs.
        COLLECT_GCC=/usr/bin/gcc
        COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
        OFFLOAD_TARGET_NAMES=nvptx-none
        OFFLOAD_TARGET_DEFAULT=1
        Target: x86_64-redhat-linux
        Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
        Thread model: posix
        Supported LTO compression algorithms: zlib zstd
        gcc version 10.2.1 20201125 (Red Hat 10.2.1-9) (GCC)
        COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/10/:/usr/libexec/gcc/x86_64-redhat-linux/10/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/10/:/usr/lib/gcc/x86_64-redhat-linux/
        LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/10/:/usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/10/../../../:/lib/:/usr/lib/
        COLLECT_GCC_OPTIONS='-z' 'noexecstack' '-o' '/home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test' '-v' '-L/tmp/SVM-14433696000961709042' '-L/disk/graal/upstream-sources/graal/mandrel-build/lib' '-L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64' '-mtune=generic' '-march=x86-64'
         /usr/libexec/gcc/x86_64-redhat-linux/10/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper -plugin-opt=-fresolution=/tmp/ccnjZgKJ.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test -z noexecstack /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/10/crtbegin.o -L/tmp/SVM-14433696000961709042 -L/disk/graal/upstream-sources/graal/mandrel-build/lib -L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64 -L/usr/lib/gcc/x86_64-redhat-linux/10 -L/usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/10/../../.. --gc-sections --dynamic-list /tmp/SVM-14433696000961709042/exported_symbols.list --exclude-libs ALL -x font-rotate-test.o /disk/graal/upstream-sources/graal/mandrel-build/lib/libnet.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libnio.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjava.a /disk/graal/upstream-sources/graal/mandrel-build/lib/liblcms.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfontmanager.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt_headless.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libharfbuzz.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfdlibm.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libzip.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/libjvm.a -lstdc++ -lm -lfreetype -lpthread -ldl -lz -lrt -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-redhat-linux/10/crtend.o /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crtn.o
        /usr/bin/ld: /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a(awt_LoadLibrary.o):/disk/openjdk/upstream-sources/openjdk-11-dev/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c:52: multiple definition of `jvm'; /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a(jpegdecoder.o):/disk/openjdk/upstream-sources/openjdk-11-dev/src/java.desktop/share/native/libjavajpeg/jpegdecoder.c:67: first defined here
        collect2: error: ld returned 1 exit status
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:600)
        at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
        at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:497)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:370)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:531)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:119)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:568)
        Caused by: java.lang.RuntimeException: There was an error linking the native image: Linker command exited with 1

        Linker command executed:
        /usr/bin/gcc -z noexecstack -Wl,--gc-sections -Wl,--dynamic-list -Wl,/tmp/SVM-14433696000961709042/exported_symbols.list -Wl,--exclude-libs,ALL -Wl,-x -o /home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test font-rotate-test.o /disk/graal/upstream-sources/graal/mandrel-build/lib/libnet.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libnio.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjava.a /disk/graal/upstream-sources/graal/mandrel-build/lib/liblcms.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfontmanager.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt_headless.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libharfbuzz.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfdlibm.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libzip.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/libjvm.a -v -L/tmp/SVM-14433696000961709042 -L/disk/graal/upstream-sources/graal/mandrel-build/lib -L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64 -lstdc++ -lm -lfreetype -lpthread -ldl -lz -lrt

        Linker command output:
        Using built-in specs.
        COLLECT_GCC=/usr/bin/gcc
        COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
        OFFLOAD_TARGET_NAMES=nvptx-none
        OFFLOAD_TARGET_DEFAULT=1
        Target: x86_64-redhat-linux
        Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
        Thread model: posix
        Supported LTO compression algorithms: zlib zstd
        gcc version 10.2.1 20201125 (Red Hat 10.2.1-9) (GCC)
        COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/10/:/usr/libexec/gcc/x86_64-redhat-linux/10/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/10/:/usr/lib/gcc/x86_64-redhat-linux/
        LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/10/:/usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/10/../../../:/lib/:/usr/lib/
        COLLECT_GCC_OPTIONS='-z' 'noexecstack' '-o' '/home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test' '-v' '-L/tmp/SVM-14433696000961709042' '-L/disk/graal/upstream-sources/graal/mandrel-build/lib' '-L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64' '-mtune=generic' '-march=x86-64'
         /usr/libexec/gcc/x86_64-redhat-linux/10/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper -plugin-opt=-fresolution=/tmp/ccnjZgKJ.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /home/sgehwolf/Documents/mandrel/bugs/MANDREL-37/harfbuzz_repro/font-rotate-test -z noexecstack /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/10/crtbegin.o -L/tmp/SVM-14433696000961709042 -L/disk/graal/upstream-sources/graal/mandrel-build/lib -L/disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64 -L/usr/lib/gcc/x86_64-redhat-linux/10 -L/usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/10/../../.. --gc-sections --dynamic-list /tmp/SVM-14433696000961709042/exported_symbols.list --exclude-libs ALL -x font-rotate-test.o /disk/graal/upstream-sources/graal/mandrel-build/lib/libnet.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libnio.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libjava.a /disk/graal/upstream-sources/graal/mandrel-build/lib/liblcms.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfontmanager.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt_headless.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libharfbuzz.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libfdlibm.a /disk/graal/upstream-sources/graal/mandrel-build/lib/libzip.a /disk/graal/upstream-sources/graal/mandrel-build/lib/svm/clibraries/linux-amd64/libjvm.a -lstdc++ -lm -lfreetype -lpthread -ldl -lz -lrt -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-redhat-linux/10/crtend.o /usr/lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crtn.o
        /usr/bin/ld: /disk/graal/upstream-sources/graal/mandrel-build/lib/libawt.a(awt_LoadLibrary.o):/disk/openjdk/upstream-sources/openjdk-11-dev/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c:52: multiple definition of `jvm'; /disk/graal/upstream-sources/graal/mandrel-build/lib/libjavajpeg.a(jpegdecoder.o):/disk/openjdk/upstream-sources/openjdk-11-dev/src/java.desktop/share/native/libjavajpeg/jpegdecoder.c:67: first defined here
        collect2: error: ld returned 1 exit status
        at com.oracle.svm.hosted.image.NativeImageViaCC.handleLinkerFailure(NativeImageViaCC.java:513)
        at com.oracle.svm.hosted.image.NativeImageViaCC.write(NativeImageViaCC.java:460)
        at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:708)
        at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$2(NativeImageGenerator.java:493)
        at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
        Error: Image build request failed with exit status 1

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sgehwolf Severin Gehwolf
                Reporter:
                sgehwolf Severin Gehwolf
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: