Skip to content

Instantly share code, notes, and snippets.

@Karm
Created May 17, 2021 15:52
Show Gist options
  • Save Karm/60345d21c8ff742120d6aa0a7c9f163a to your computer and use it in GitHub Desktop.
Save Karm/60345d21c8ff742120d6aa0a7c9f163a to your computer and use it in GitHub Desktop.
Graal master 40b64488622
Apply file:///home/karm/tmp/rep/META-INF/native-image/jni-config.json
Apply file:///home/karm/tmp/rep/META-INF/native-image/reflect-config.json
Apply file:///home/karm/tmp/rep/META-INF/native-image/resource-config.json
Apply file:///home/karm/tmp/rep/META-INF/native-image/proxy-config.json
Apply file:///home/karm/tmp/rep/META-INF/native-image/serialization-config.json
Executing [
/home/karm/tmp/graal-labsjava11-build/bin/java \
-XX:+UseParallelGC \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-Dtruffle.TrustAllTruffleRuntimeProviders=true \
-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=true \
-Dgraalvm.locatorDisabled=true \
-Dsubstratevm.IgnoreGraalVersionCheck=true \
--add-exports=java.base/com.sun.crypto.provider=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.logger=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.module=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.perf=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED \
--add-exports=java.base/sun.invoke.util=ALL-UNNAMED \
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.repository=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.tree=ALL-UNNAMED \
--add-exports=java.base/sun.security.jca=ALL-UNNAMED \
--add-exports=java.base/sun.security.provider=ALL-UNNAMED \
--add-exports=java.base/sun.security.util=ALL-UNNAMED \
--add-exports=java.base/sun.text.spi=ALL-UNNAMED \
--add-exports=java.base/sun.util.calendar=ALL-UNNAMED \
--add-exports=java.base/sun.util.locale.provider=ALL-UNNAMED \
--add-exports=java.base/sun.util.resources=ALL-UNNAMED \
--add-exports=java.xml.crypto/org.jcp.xml.dsig.internal.dom=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.aarch64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.amd64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.site=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.stack=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.common=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.sparc=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.services=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.sparc=ALL-UNNAMED \
-XX:-UseJVMCICompiler \
-Xss10m \
-Xms1g \
-Xmx14g \
-Duser.country=US \
-Duser.language=en \
-Djava.awt.headless=true \
-Dorg.graalvm.version=dev \
-Dorg.graalvm.config=CE \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Dawt.toolkit=sun.awt.X11.XToolkit \
-Djava.awt.graphicsenv=sun.awt.X11GraphicsEnvironment \
-Djava.awt.printerjob=sun.print.PSPrinterJob \
-Xshare:off \
--module-path \
/home/karm/tmp/graal-labsjava11-build/lib/truffle/truffle-api.jar \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
-javaagent:/home/karm/tmp/graal-labsjava11-build/lib/svm/builder/svm.jar \
-cp \
/home/karm/tmp/graal-labsjava11-build/lib/svm/builder/svm.jar:/home/karm/tmp/graal-labsjava11-build/lib/svm/builder/objectfile.jar:/home/karm/tmp/graal-labsjava11-build/lib/svm/builder/pointsto.jar \
'com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus' \
-imagecp \
/home/karm/tmp/rep:/home/karm/tmp/graal-labsjava11-build/lib/svm/library-support.jar \
-H:Path=/home/karm/tmp/rep \
-H:FallbackThreshold=0 \
-H:ClassInitialization=:build_time \
-H:DeadlockWatchdogInterval=2 \
-H:+DumpTargetInfo \
-H:CLibraryPath=/home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64 \
-H:JNIConfigurationResources@file:///home/karm/tmp/rep/META-INF/native-image/jni-config.json=META-INF/native-image/jni-config.json \
-H:ReflectionConfigurationResources@file:///home/karm/tmp/rep/META-INF/native-image/reflect-config.json=META-INF/native-image/reflect-config.json \
-H:ResourceConfigurationResources@file:///home/karm/tmp/rep/META-INF/native-image/resource-config.json=META-INF/native-image/resource-config.json \
-H:DynamicProxyConfigurationResources@file:///home/karm/tmp/rep/META-INF/native-image/proxy-config.json=META-INF/native-image/proxy-config.json \
-H:SerializationConfigurationResources@file:///home/karm/tmp/rep/META-INF/native-image/serialization-config.json=META-INF/native-image/serialization-config.json \
'-H:Class@explicit main-class=Main' \
'-H:Name@main-class lower case as image name=main'
]
[main:619893] classlist: 5,533.59 ms, 0.96 GB
[main:619893] (cap): 677.87 ms, 0.96 GB
[main:619893] setup: 5,040.74 ms, 0.96 GB
# Building image for target platform: org.graalvm.nativeimage.Platform$LINUX_AMD64
# Using native toolchain:
# Name: GNU project C and C++ compiler (gcc)
# Vendor: redhat
# Version: 8.3.1
# Target architecture: x86_64
# Path: /bin/gcc
# Using CLibrary: com.oracle.svm.core.posix.linux.libc.GLibC
[main:619893] (clinit): 558.90 ms, 2.30 GB
# Static libraries:
# ../graal-labsjava11-build/lib/svm/clibraries/linux-amd64/liblibchelper.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/liblcms.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt_headless.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/libnet.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/libnio.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/libjava.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/libfdlibm.a
# ../graal-labsjava11-build/lib/static/linux-amd64/glibc/libzip.a
# ../graal-labsjava11-build/lib/svm/clibraries/linux-amd64/libjvm.a
# Other libraries: stdc++,m,pthread,dl,z,rt
[main:619893] (typeflow): 32,189.84 ms, 2.30 GB
[main:619893] (objects): 16,781.44 ms, 2.30 GB
[main:619893] (features): 4,079.06 ms, 2.30 GB
[main:619893] analysis: 54,403.08 ms, 2.30 GB
[main:619893] universe: 1,442.59 ms, 2.30 GB
[main:619893] (parse): 6,124.55 ms, 2.30 GB
[main:619893] (inline): 3,349.97 ms, 2.30 GB
[main:619893] (compile): 22,501.67 ms, 4.69 GB
[main:619893] compile: 33,836.77 ms, 4.69 GB
[main:619893] image: 5,551.10 ms, 4.69 GB
[main:619893] write: 680.45 ms, 4.69 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:
/bin/gcc -z noexecstack -Wl,--gc-sections -Wl,--dynamic-list -Wl,/tmp/SVM-14094836462943354260/exported_symbols.list -Wl,--exclude-libs,ALL -Wl,-x -o /home/karm/tmp/rep/main main.o /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/liblcms.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt_headless.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnet.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnio.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libjava.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libfdlibm.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libzip.a /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/libjvm.a -v -L/tmp/SVM-14094836462943354260 -L/home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc -L/home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64 -lstdc++ -lm -lpthread -ldl -lz -lrt
Linker command output:
Using built-in specs.
COLLECT_GCC=/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/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,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 --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/8/:/usr/libexec/gcc/x86_64-redhat-linux/8/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/8/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/8/:/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/8/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-z' 'noexecstack' '-o' '/home/karm/tmp/rep/main' '-v' '-L/tmp/SVM-14094836462943354260' '-L/home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc' '-L/home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/8/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/8/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper -plugin-opt=-fresolution=/tmp/cczxgZJw.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/karm/tmp/rep/main -z noexecstack /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/8/crtbegin.o -L/tmp/SVM-14094836462943354260 -L/home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc -L/home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64 -L/usr/lib/gcc/x86_64-redhat-linux/8 -L/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/8/../../.. --gc-sections --dynamic-list /tmp/SVM-14094836462943354260/exported_symbols.list --exclude-libs ALL -x main.o /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/liblcms.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt_headless.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnet.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnio.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libjava.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libfdlibm.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libzip.a /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/libjvm.a -lstdc++ -lm -lpthread -ldl -lz -lrt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/8/crtend.o /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crtn.o
main.o:(.data+0x40): undefined reference to `Java_sun_font_FreetypeFontScaler_initNativeScaler'
main.o:(.data+0x610): undefined reference to `Java_sun_font_FreetypeFontScaler_getMissingGlyphCodeNative'
main.o:(.data+0x738): undefined reference to `Java_sun_font_FreetypeFontScaler_disposeNativeScaler'
main.o:(.data+0xad8): undefined reference to `Java_sun_font_NativeFont_countGlyphs'
main.o:(.data+0xbb0): undefined reference to `Java_sun_font_FreetypeFontScaler_getGlyphCodeNative'
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:498)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:379)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:540)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:120)
at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:578)
Caused by: java.lang.RuntimeException: There was an error linking the native image: Linker command exited with 1
Linker command executed:
/bin/gcc -z noexecstack -Wl,--gc-sections -Wl,--dynamic-list -Wl,/tmp/SVM-14094836462943354260/exported_symbols.list -Wl,--exclude-libs,ALL -Wl,-x -o /home/karm/tmp/rep/main main.o /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/liblcms.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt_headless.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnet.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnio.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libjava.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libfdlibm.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libzip.a /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/libjvm.a -v -L/tmp/SVM-14094836462943354260 -L/home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc -L/home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64 -lstdc++ -lm -lpthread -ldl -lz -lrt
Linker command output:
Using built-in specs.
COLLECT_GCC=/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/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,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 --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/8/:/usr/libexec/gcc/x86_64-redhat-linux/8/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/8/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/8/:/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/8/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-z' 'noexecstack' '-o' '/home/karm/tmp/rep/main' '-v' '-L/tmp/SVM-14094836462943354260' '-L/home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc' '-L/home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/8/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/8/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper -plugin-opt=-fresolution=/tmp/cczxgZJw.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/karm/tmp/rep/main -z noexecstack /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/8/crtbegin.o -L/tmp/SVM-14094836462943354260 -L/home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc -L/home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64 -L/usr/lib/gcc/x86_64-redhat-linux/8 -L/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/8/../../.. --gc-sections --dynamic-list /tmp/SVM-14094836462943354260/exported_symbols.list --exclude-libs ALL -x main.o /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/liblibchelper.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/liblcms.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt_headless.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libawt.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnet.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libnio.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libjava.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libfdlibm.a /home/karm/tmp/graal-labsjava11-build/lib/static/linux-amd64/glibc/libzip.a /home/karm/tmp/graal-labsjava11-build/lib/svm/clibraries/linux-amd64/libjvm.a -lstdc++ -lm -lpthread -ldl -lz -lrt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/8/crtend.o /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crtn.o
main.o:(.data+0x40): undefined reference to `Java_sun_font_FreetypeFontScaler_initNativeScaler'
main.o:(.data+0x610): undefined reference to `Java_sun_font_FreetypeFontScaler_getMissingGlyphCodeNative'
main.o:(.data+0x738): undefined reference to `Java_sun_font_FreetypeFontScaler_disposeNativeScaler'
main.o:(.data+0xad8): undefined reference to `Java_sun_font_NativeFont_countGlyphs'
main.o:(.data+0xbb0): undefined reference to `Java_sun_font_FreetypeFontScaler_getGlyphCodeNative'
collect2: error: ld returned 1 exit status
at com.oracle.svm.hosted.image.NativeImageViaCC.handleLinkerFailure(NativeImageViaCC.java:499)
at com.oracle.svm.hosted.image.NativeImageViaCC.write(NativeImageViaCC.java:446)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:709)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$2(NativeImageGenerator.java:494)
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
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1835)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1571)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1532)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1519)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment