oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.36k stars 1.64k forks source link

[GR-51349] Getting the max lanes of Vector is not supported in Native Image #8044

Closed Ran-Mewo closed 9 months ago

Ran-Mewo commented 10 months ago

Same issue as #6309 except that was closed without it being fixed It seems like the new incubating vector utility provided is still not quite supported by the Native Image

This is my code (It's AI generated since I don't quite understand how to use the new vector thing yet):

private static double cosineSimilarity(float[] vectorA, float[] vectorB) {
    VectorSpecies<Float> species = FloatVector.SPECIES_PREFERRED;
    int length = vectorA.length;
    int vecLength = species.length();
    int elements = length - vecLength + 1;

    double dotProduct = 0.0, normA = 0.0, normB = 0.0;
    int i = 0;
    for (; i < elements; i += vecLength) {
        FloatVector va = FloatVector.fromArray(species, vectorA, i);
        FloatVector vb = FloatVector.fromArray(species, vectorB, i);
        dotProduct += va.mul(vb).reduceLanes(VectorOperators.ADD);
        normA += va.mul(va).reduceLanes(VectorOperators.ADD);
        normB += vb.mul(vb).reduceLanes(VectorOperators.ADD);
    }

    // process remaining elements
    for (; i < length; i++) {
        float aVal = vectorA[i];
        float bVal = vectorB[i];
        dotProduct += aVal * bVal;
        normA += aVal * aVal;
        normB += bVal * bVal;
    }

    return dotProduct / Math.sqrt(normA * normB);
}

GraalVM Native Image Error Report

Build Output

========================================================================================================================
GraalVM Native Image: Generating 'Rumi' (executable)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------
[1/8] Initializing...                                                                                   (19.7s @ 0.16GB)
 Java version: 21.0.1+12, vendor version: Oracle GraalVM 21.0.1+12.1
 Graal compiler: optimization level: 3, target machine: native, PGO: ML-inferred
 C compiler: cl.exe (microsoft, x64, 19.38.33130)
 Garbage collector: Serial GC (max heap size: 4.00GB)
 3 user-specific feature(s):
 - com.oracle.svm.polyglot.scala.ScalaFeature
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - org.sqlite.nativeimage.SqliteJdbcFeature
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 11.90GB of memory (75.6% of 15.74GB system memory, determined at start)
 - 16 thread(s) (100.0% of 16 available processor(s), determined at start)
[2/8] Performing analysis...  [******]                                                                  (32.6s @ 2.19GB)
   15,905 reachable types   (87.8% of   18,120 total)
   22,625 reachable fields  (62.2% of   36,346 total)
   82,659 reachable methods (53.9% of  153,281 total)
    4,687 types,   436 fields, and 4,677 methods registered for reflection
       86 types,    63 fields, and    84 methods registered for JNI access
        5 native libraries: crypt32, ncrypt, psapi, version, winhttp
[3/8] Building universe...                                                                               (4.8s @ 2.13GB)
[4/8] Parsing methods...      [***]                                                                      (9.5s @ 1.61GB)
[5/8] Inlining methods...     [****]                                                                     (2.4s @ 2.47GB)
[6/8] Compiling methods...    [**********]                                                             (109.7s @ 4.91GB)
[7/8] Layouting methods...    [***]                                                                     (10.5s @ 3.06GB)

[8/8] Creating image...       [***]                                                                      (0.0s @ 4.10GB)

Stack Trace

java.lang.RuntimeException: There was an error linking the native image: Linker command exited with 2

Linker command executed:
'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\cl.exe' '/FeI:\Rumi\build\native\nativeCompile\Rumi.exe' Rumi.obj 'C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\libchelper.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\net.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\extnet.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\nio.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\management_ext.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\java.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\sunmscapi.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\zip.lib' 'C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\jvm.lib' /MD 'C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\libchelper.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\net.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\extnet.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\nio.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\management_ext.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\java.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\sunmscapi.lib' 'C:\Program Files\Java\graalvm\lib\static\windows-amd64\zip.lib' 'C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\jvm.lib' /link /INCREMENTAL:NO /NODEFAULTLIB:LIBCMT /FILEALIGN:4096 '/IMPLIB:C:\Users\ADMINI~1\AppData\Local\Temp\SVM-10194087030884228274\Rumi.lib' '/LIBPATH:C:\Program Files\Java\graalvm\lib\static\windows-amd64' '/LIBPATH:C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64' ncrypt.lib crypt32.lib winhttp.lib psapi.lib version.lib advapi32.lib ws2_32.lib secur32.lib iphlpapi.lib userenv.lib mswsock.lib setargv.obj

Linker command output:
Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33130 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Incremental Linker Version 14.38.33130.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:I:\Rumi\build\native\nativeCompile\Rumi.exe 
/INCREMENTAL:NO 
/NODEFAULTLIB:LIBCMT 
/FILEALIGN:4096 
/IMPLIB:C:\Users\ADMINI~1\AppData\Local\Temp\SVM-10194087030884228274\Rumi.lib 
"/LIBPATH:C:\Program Files\Java\graalvm\lib\static\windows-amd64" 
"/LIBPATH:C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64" 
ncrypt.lib 
crypt32.lib 
winhttp.lib 
psapi.lib 
version.lib 
advapi32.lib 
ws2_32.lib 
secur32.lib 
iphlpapi.lib 
userenv.lib 
mswsock.lib 
setargv.obj 
Rumi.obj 
"C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\libchelper.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\net.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\extnet.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\nio.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\management_ext.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\java.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\sunmscapi.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\zip.lib" 
"C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\jvm.lib" 
"C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\libchelper.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\net.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\extnet.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\nio.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\management_ext.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\java.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\sunmscapi.lib" 
"C:\Program Files\Java\graalvm\lib\static\windows-amd64\zip.lib" 
"C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64\jvm.lib" 
   Creating library C:\Users\ADMINI~1\AppData\Local\Temp\SVM-10194087030884228274\Rumi.lib and object C:\Users\ADMINI~1\AppData\Local\Temp\SVM-10194087030884228274\Rumi.exp
Rumi.obj : error LNK2001: unresolved external symbol Java_jdk_internal_vm_vector_VectorSupport_getMaxLaneCount
I:\Rumi\build\native\nativeCompile\Rumi.exe : fatal error LNK1120: 1 unresolved externals
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.NativeImageViaCC.handleLinkerFailure(NativeImageViaCC.java:202)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.NativeImageViaCC.runLinkerCommand(NativeImageViaCC.java:152)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.NativeImageViaCC.write(NativeImageViaCC.java:118)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:741)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:550)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:538)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:720)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:142)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:97)

GraalVM Setup

Name Value
Java version 21.0.1+12
Vendor version Oracle GraalVM 21.0.1+12.1
Runtime version 21.0.1+12-jvmci-23.1-b19
C compiler cl.exe (microsoft, x64, 19.38.33130)
GraalVM release file ``` IMPLEMENTOR="Oracle Corporation" JAVA_RUNTIME_VERSION="21.0.1+12-jvmci-23.1-b19" JAVA_VERSION="21.0.1" JAVA_VERSION_DATE="2023-10-17" LIBC="default" MODULES="java.base java.logging java.management jdk.internal.vm.ci jdk.unsupported org.graalvm.collections jdk.management org.graalvm.truffle.compiler org.graalvm.word jdk.internal.vm.compiler com.oracle.graal.graal_enterprise org.graalvm.nativeimage com.oracle.svm.enterprise.truffle com.oracle.svm.extraimage_enterprise java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.jvmstat jdk.attach jdk.charsets jdk.internal.opt jdk.zipfs jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.crypto.mscapi jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.incubator.vector jdk.internal.le jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jpackage jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.nio.mapmode jdk.random jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported.desktop jdk.xml.dom org.graalvm.extraimage.builder org.graalvm.nativeimage.llvm" OS_ARCH="x86_64" OS_NAME="Windows" SOURCE=".:git:38e747d58ef4 open:git:db26df3b0823 labsjdk-builder:ce01baf820a68601ac8bfdda7c246ea84aef91dc compiler:b102df7bc5acaa64069b6a606f77bc463874f997 graal-enterprise:8068a2458a38f9cf446a76ffcd065bbe1fb25c0e graal-microservices:8068a2458a38f9cf446a76ffcd065bbe1fb25c0e java-benchmarks:b102df7bc5acaa64069b6a606f77bc463874f997 regex:b102df7bc5acaa64069b6a606f77bc463874f997 sdk:b102df7bc5acaa64069b6a606f77bc463874f997 substratevm:b102df7bc5acaa64069b6a606f77bc463874f997 substratevm-enterprise:8068a2458a38f9cf446a76ffcd065bbe1fb25c0e substratevm-enterprise-gcs:b5b3ad2db4b8df213021450612ebeeb9268915a2 tools:b102df7bc5acaa64069b6a606f77bc463874f997 truffle:b102df7bc5acaa64069b6a606f77bc463874f997 vm:b102df7bc5acaa64069b6a606f77bc463874f997 vm-enterprise:8068a2458a38f9cf446a76ffcd065bbe1fb25c0e" GRAALVM_VERSION="23.1.1" COMMIT_INFO={"compiler": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "graal-enterprise": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696858095, "commit.rev": "8068a2458a38f9cf446a76ffcd065bbe1fb25c0e"}, "graal-microservices": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696858095, "commit.rev": "8068a2458a38f9cf446a76ffcd065bbe1fb25c0e"}, "java-benchmarks": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "regex": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "sdk": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "substratevm": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "substratevm-enterprise": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696858095, "commit.rev": "8068a2458a38f9cf446a76ffcd065bbe1fb25c0e"}, "substratevm-enterprise-gcs": {"commit.committer": "Gilles Duboscq ", "commit.committer-ts": 1693648031, "commit.rev": "b5b3ad2db4b8df213021450612ebeeb9268915a2"}, "tools": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "truffle": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "vm": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696857619, "commit.rev": "b102df7bc5acaa64069b6a606f77bc463874f997"}, "vm-enterprise": {"commit.committer": "Marouane El Hallaoui ", "commit.committer-ts": 1696858095, "commit.rev": "8068a2458a38f9cf446a76ffcd065bbe1fb25c0e"}} ```

Builder Setup

Class path ``` I:\Rumi\build\libs\Rumi-1.0-SNAPSHOT.jar I:\packages\gradle\caches\modules-2\files-2.1\net.dv8tion\JDA\5.0.0-beta.17\c0cc9b96b4cc36b99b13652d008bbfcc3b5c91a7\JDA-5.0.0-beta.17.jar I:\packages\gradle\caches\modules-2\files-2.1\com.theokanning.openai-gpt3-java\service\0.18.2\530329ed5faf15e7ef1523a2207e2b6f305c3299\service-0.18.2.jar I:\packages\gradle\caches\modules-2\files-2.1\org.apache.commons\commons-text\1.11.0\2bb044b7717ec2eccaf9ea7769c1509054b50e9a\commons-text-1.11.0.jar I:\packages\gradle\caches\modules-2\files-2.1\org.apache.commons\commons-lang3\3.14.0\1ed471194b02f2c6cb734a0cd6f6f107c673afae\commons-lang3-3.14.0.jar I:\packages\gradle\caches\modules-2\files-2.1\org.furyio\fury-core\0.4.0\719d264b4d83ae76448198ccd2024e5085d2e5b\fury-core-0.4.0.jar I:\packages\gradle\caches\modules-2\files-2.1\com.vdurmont\emoji-java\5.1.1\5b5896190e12110584f1e9e09eff376565a92626\emoji-java-5.1.1.jar I:\packages\gradle\caches\modules-2\files-2.1\com.dslplatform\dsl-json\2.0.2\828e5cd5973c1fd7390a1d3208e7909d6ce73c23\dsl-json-2.0.2.jar I:\packages\gradle\caches\modules-2\files-2.1\org.xerial\sqlite-jdbc\3.43.2.2\2a8e3eb01c8591c187c95d55b5e7e34f863a62a8\sqlite-jdbc-3.43.2.2.jar I:\packages\gradle\caches\modules-2\files-2.1\com.theokanning.openai-gpt3-java\client\0.18.2\484bb3748d9ba205bd46a4b0d0990249088f53f7\client-0.18.2.jar I:\packages\gradle\caches\modules-2\files-2.1\com.theokanning.openai-gpt3-java\api\0.18.2\4cf2e72cf330d3e9852551e5cc8bb1fa58ac35e4\api-0.18.2.jar I:\packages\gradle\caches\modules-2\files-2.1\com.knuddels\jtokkit\0.6.1\56ef2cc4a58fcb046f3852880ab0ca2a9e5f358a\jtokkit-0.6.1.jar I:\packages\gradle\caches\modules-2\files-2.1\com.pkslow\google-bard\0.3.6\c28f19fac51dcf7cc1789f5a7b82075844a65286\google-bard-0.3.6.jar I:\packages\gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-nop\2.0.9\fa0627049304bf501bf6a0e4d1416bcaec9a72a9\slf4j-nop-2.0.9.jar I:\packages\gradle\caches\modules-2\files-2.1\com.google.guava\guava\32.1.3-jre\f306708742ce2bf0fb0901216183bc14073feae\guava-32.1.3-jre.jar I:\packages\gradle\caches\modules-2\files-2.1\net.sf.trove4j\trove4j\3.0.3\42ccaf4761f0dfdfa805c9e340d99a755907e2dd\trove4j-3.0.3.jar I:\packages\gradle\caches\modules-2\files-2.1\com.squareup.retrofit2\converter-jackson\2.9.0\19b4010914e747601e26f46c6a403044bbe0b2bf\converter-jackson-2.9.0.jar I:\packages\gradle\caches\modules-2\files-2.1\com.kjetland\mbknor-jackson-jsonschema_2.12\1.0.34\dd12d41cb6612022f38aef38c3a87b6772c29305\mbknor-jackson-jsonschema_2.12-1.0.34.jar I:\packages\gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.14.2\a7aae9525864930723e3453ab799521fdfd9d873\jackson-annotations-2.14.2.jar I:\packages\gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.14.2\1e71fddbc80bb86f71a6345ac1e8ab8a00e7134\jackson-databind-2.14.2.jar I:\packages\gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.14.2\f804090e6399ce0cf78242db086017512dd71fcc\jackson-core-2.14.2.jar I:\packages\gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-classic\1.3.6\4801f031c2a8e6f521853f143986899438f06d52\logback-classic-1.3.6.jar I:\packages\gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\2.0.9\7cf2726fdcfbc8610f9a71fb3ed639871f315340\slf4j-api-2.0.9.jar I:\packages\gradle\caches\modules-2\files-2.1\com.neovisionaries\nv-websocket-client\2.14\1b66d37914b232cef45e56ec8c01907620de9e3a\nv-websocket-client-2.14.jar I:\packages\gradle\caches\modules-2\files-2.1\com.squareup.retrofit2\adapter-rxjava2\2.9.0\180ad7353dbf0480cabc215948b5a234e3692f0a\adapter-rxjava2-2.9.0.jar I:\packages\gradle\caches\modules-2\files-2.1\com.squareup.retrofit2\retrofit\2.9.0\d8fdfbd5da952141a665a403348b74538efc05ff\retrofit-2.9.0.jar I:\packages\gradle\caches\modules-2\files-2.1\com.squareup.okhttp3\okhttp\4.10.0\cd63657ac15770ed1420647154c9f44645533bef\okhttp-4.10.0.jar I:\packages\gradle\caches\modules-2\files-2.1\club.minnced\opus-java\1.1.1\6656bf7d92e3bc058beb8f0f8a14fe9bc02da4b8\opus-java-1.1.1.jar I:\packages\gradle\caches\modules-2\files-2.1\org.apache.commons\commons-collections4\4.4\62ebe7544cb7164d87e0637a2a6a2bdc981395e8\commons-collections4-4.4.jar I:\packages\gradle\caches\modules-2\files-2.1\org.json\json\20170516\949abe1460757b8dc9902c562f83e49675444572\json-20170516.jar I:\packages\gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.10.1\b3add478d4382b78ea20b1671390a858002feb6c\gson-2.10.1.jar I:\packages\gradle\caches\modules-2\files-2.1\com.google.guava\failureaccess\1.0.1\1dcf1de382a0bf95a3d8b0849546c88bac1292c9\failureaccess-1.0.1.jar I:\packages\gradle\caches\modules-2\files-2.1\com.google.guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\b421526c5f297295adef1c886e5246c39d4ac629\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar I:\packages\gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.2\25ea2e8b0c338a877313bd4672d3fe056ea78f0d\jsr305-3.0.2.jar I:\packages\gradle\caches\modules-2\files-2.1\org.checkerframework\checker-qual\3.37.0\ba74746d38026581c12166e164bb3c15e90cc4ea\checker-qual-3.37.0.jar I:\packages\gradle\caches\modules-2\files-2.1\com.google.errorprone\error_prone_annotations\2.21.1\6d9b10773b5237df178a7b3c1b4208df7d0e7f94\error_prone_annotations-2.21.1.jar I:\packages\gradle\caches\modules-2\files-2.1\com.squareup.okio\okio-jvm\3.0.0\ab5a73fa2ccb4a36b0b5c69fe10b16d0255bcf8\okio-jvm-3.0.0.jar I:\packages\gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jdk8\1.5.31\ff5d99aecd328872494e8921b72bf6e3af97af3e\kotlin-stdlib-jdk8-1.5.31.jar I:\packages\gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jdk7\1.5.31\77e0f2568912e45d26c31fd417a332458508acdf\kotlin-stdlib-jdk7-1.5.31.jar I:\packages\gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.6.20\6cedc143badbb4f1c6b7f5a340b04edff1743208\kotlin-stdlib-1.6.20.jar I:\packages\gradle\caches\modules-2\files-2.1\club.minnced\opus-java-api\1.1.1\63c6910fb1f7eebbfd922a01d37a4b94fa0ee5e3\opus-java-api-1.1.1.jar I:\packages\gradle\caches\modules-2\files-2.1\club.minnced\opus-java-natives\1.1.1\183af66d80cd508bbf45343f30ee280e0750f416\opus-java-natives-1.1.1.jar I:\packages\gradle\caches\modules-2\files-2.1\io.reactivex.rxjava2\rxjava\2.0.0\5151c737c01616c372c3d00ab145868ede10e826\rxjava-2.0.0.jar I:\packages\gradle\caches\modules-2\files-2.1\org.reactivestreams\reactive-streams\1.0.3\d9fb7a7926ffa635b3dcaa5049fb2bfa25b3e7d0\reactive-streams-1.0.3.jar I:\packages\gradle\caches\modules-2\files-2.1\org.scala-lang\scala-library\2.12.8\36b234834d8f842cdde963c8591efae6cf413e3f\scala-library-2.12.8.jar I:\packages\gradle\caches\modules-2\files-2.1\javax.validation\validation-api\2.0.1.Final\cb855558e6271b1b32e716d24cb85c7f583ce09e\validation-api-2.0.1.Final.jar I:\packages\gradle\caches\modules-2\files-2.1\io.github.classgraph\classgraph\4.8.21\c8c77949880980c26d66fe07d8e014afb3a6899a\classgraph-4.8.21.jar I:\packages\gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-core\1.3.6\5ec1805120ceafa51086b7b0448793f0fe256f0f\logback-core-1.3.6.jar I:\packages\gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-common\1.6.20\27b4562b6713d70f458c6d7ea39aadacb8e6a92b\kotlin-stdlib-common-1.6.20.jar I:\packages\gradle\caches\modules-2\files-2.1\org.jetbrains\annotations\13.0\919f0dfe192fb4e063e7dacadee7f8bb9a2672a9\annotations-13.0.jar I:\packages\gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna\4.4.0\cb208278274bf12ebdb56c61bd7407e6f774d65a\jna-4.4.0.jar ```
Module path ``` C:\Program Files\Java\graalvm\lib\svm\graal-microservices.jar C:\Program Files\Java\graalvm\lib\svm\library-support.jar C:\Program Files\Java\graalvm\lib\svm\builder\native-image-base.jar C:\Program Files\Java\graalvm\lib\svm\builder\objectfile.jar C:\Program Files\Java\graalvm\lib\svm\builder\pointsto.jar C:\Program Files\Java\graalvm\lib\svm\builder\svm-enterprise.jar C:\Program Files\Java\graalvm\lib\svm\builder\svm.jar ```
Builder arguments ``` -H:CLibraryPath=C:\Program Files\Java\graalvm\lib\svm\clibraries\windows-amd64 -H:Path@driver=I:\Rumi\build\native\nativeCompile -H:JNIConfigurationResources@jar:file:///I:/Rumi/build/libs/Rumi-1.0-SNAPSHOT.jar!/META-INF/native-image/jni-config.json+api=META-INF/native-image/jni-config.json -H:ReflectionConfigurationResources@jar:file:///I:/Rumi/build/libs/Rumi-1.0-SNAPSHOT.jar!/META-INF/native-image/reflect-config.json+api=META-INF/native-image/reflect-config.json -H:ResourceConfigurationResources@jar:file:///I:/Rumi/build/libs/Rumi-1.0-SNAPSHOT.jar!/META-INF/native-image/resource-config.json+api=META-INF/native-image/resource-config.json -H:DynamicProxyConfigurationResources@jar:file:///I:/Rumi/build/libs/Rumi-1.0-SNAPSHOT.jar!/META-INF/native-image/proxy-config.json+api=META-INF/native-image/proxy-config.json -H:SerializationConfigurationResources@jar:file:///I:/Rumi/build/libs/Rumi-1.0-SNAPSHOT.jar!/META-INF/native-image/serialization-config.json+api=META-INF/native-image/serialization-config.json -H:PredefinedClassesConfigurationResources@jar:file:///I:/Rumi/build/libs/Rumi-1.0-SNAPSHOT.jar!/META-INF/native-image/predefined-classes-config.json+api=META-INF/native-image/predefined-classes-config.json -H:ClassInitialization@jar:file:///I:/packages/gradle/caches/modules-2/files-2.1/org.furyio/fury-core/0.4.0/719d264b4d83ae76448198ccd2024e5085d2e5b/fury-core-0.4.0.jar!/META-INF/native-image/org.furyio/fury-core/native-image.properties+api=io.fury.memory.MemoryBuffer:build_time,io.fury.util.GraalvmSupport:build_time,io.fury.serializer.collection.UnmodifiableSerializers$Offset:build_time,io.fury.serializer.collection.SynchronizedSerializers$Offset:build_time,io.fury.serializer.collection.CollectionSerializers$ArraysAsListSerializer:build_time,io.fury.serializer.collection.MapSerializers$EnumMapSerializer:build_time,io.fury.serializer.StringSerializer$Offset:build_time,io.fury.serializer.StringSerializer:build_time,io.fury.serializer.Serializers:build_time,io.fury.serializer.shim.ShimDispatcher:build_time,io.fury.util.Platform:build_time,io.fury.util.ReflectionUtils:build_time,io.fury.util.unsafe._Lookup:build_time,io.fury.util.unsafe._JDKAccess:build_time,io.fury.type.Type:build_time,io.fury.type.TypeUtils:build_time,io.fury.Fury:build_time,io.fury.type.Type:build_time,io.fury.serializer.JavaSerializer:build_time,io.fury.util.ReflectionUtils:build_time,io.fury.builder.ObjectCodecBuilder:build_time,com.google.common.reflect.Types$ClassOwnership$1:build_time,io.fury.shaded.org.codehaus.janino.Java$ArrayType:build_time,io.fury.serializer.LocaleSerializer:build_time,io.fury.shaded.org.codehaus.janino.Java$AbstractCompilationUnit$TypeImportOnDemandDeclaration:build_time,io.fury.shaded.org.codehaus.janino.Compiler:build_time,io.fury.shaded.org.codehaus.janino.UnitCompiler:build_time,com.google.common.util.concurrent.SettableFuture:build_time,com.google.common.reflect.Types$JavaVersion$1:build_time,io.fury.config.FuryBuilder:build_time,io.fury.shaded.org.codehaus.janino.Java$MethodInvocation:build_time,io.fury.shaded.org.codehaus.janino.Java$FunctionDeclarator$FormalParameter:build_time,io.fury.shaded.org.codehaus.janino.Java$ExpressionStatement:build_time,io.fury.shaded.org.codehaus.janino.Java$FunctionDeclarator$FormalParameters:build_time,io.fury.shaded.org.codehaus.janino.Java$Rvalue:build_time,io.fury.shaded.javassist.util.proxy.DefineClassHelper:build_time,io.fury.shaded.org.codehaus.janino.Java$LocalVariableAccess:build_time,io.fury.shaded.org.codehaus.janino.ClassLoaderIClassLoader:build_time,io.fury.shaded.org.codehaus.janino.Java$Located$1:build_time,io.fury.shaded.org.codehaus.janino.Java$EmptyStatement:build_time,io.fury.shaded.org.codehaus.janino.Java$ForStatement:build_time,io.fury.shaded.org.codehaus.janino.Java$Type:build_time,io.fury.shaded.org.codehaus.janino.Java$Cast:build_time,io.fury.shaded.org.codehaus.janino.Java$BooleanRvalue:build_time,io.fury.shaded.org.codehaus.janino.IClass$PrimitiveIClass:build_time,io.fury.shaded.org.codehaus.janino.Compiler$CompilerIClassLoader:build_time,io.fury.shaded.javassist.util.proxy.SecurityActions:build_time,io.fury.util.unsafe._Lookup:build_time,io.fury.shaded.org.codehaus.commons.compiler.util.iterator.Iterables$5:build_time,com.google.common.base.internal.Finalizer:build_time,io.fury.serializer.ReplaceResolveSerializer:build_time,com.google.common.primitives.Primitives:build_time,io.fury.type.GenericType:build_time,io.fury.shaded.org.codehaus.janino.Java$BreakableStatement:build_time,io.fury.shaded.org.codehaus.janino.Java$LocalVariableDeclarationStatement:build_time,io.fury.shaded.org.codehaus.janino.TokenStreamImpl$1:build_time,com.google.common.reflect.Types$TypeVariableInvocationHandler:build_time,io.fury.shaded.org.codehaus.janino.Java$ThisReference:build_time,io.fury.shaded.org.codehaus.janino.IClass:build_time,io.fury.shaded.org.codehaus.janino.Java$ClassLiteral:build_time,io.fury.resolver.ClassResolver$2:build_time,io.fury.shaded.org.codehaus.janino.Parser$1:build_time,io.fury.shaded.org.codehaus.janino.Java$BinaryOperation:build_time,io.fury.shaded.org.codehaus.janino.Java$Crement:build_time,io.fury.shaded.org.codehaus.janino.Java$ReturnStatement:build_time,com.google.common.reflect.Types$ClassOwnership:build_time,io.fury.shaded.org.codehaus.janino.Java$WhileStatement:build_time,io.fury.shaded.org.codehaus.janino.Java$FunctionDeclarator:build_time,io.fury.shaded.org.codehaus.janino.Java$Atom:build_time,io.fury.shaded.org.codehaus.janino.Java$SimpleType:build_time,io.fury.shaded.org.codehaus.janino.Java$FieldAccessExpression:build_time,io.fury.shaded.org.codehaus.janino.Java$AbstractTypeBodyDeclaration:build_time,io.fury.shaded.org.codehaus.janino.Parser:build_time,io.fury.shaded.org.codehaus.janino.Java$QualifiedThisReference:build_time,io.fury.shaded.org.codehaus.janino.Java$Assignment:build_time,io.fury.shaded.org.codehaus.janino.Java$NullLiteral:build_time,io.fury.shaded.org.codehaus.janino.Java$ParenthesizedExpression:build_time,io.fury.shaded.org.codehaus.janino.Java$Statement:build_time,io.fury.shaded.org.codehaus.janino.IClassLoader$1:build_time,io.fury.shaded.org.codehaus.janino.Java$VariableDeclarator:build_time,io.fury.shaded.org.codehaus.janino.Java$AbstractCompilationUnit$SingleTypeImportDeclaration:build_time,io.fury.shaded.org.codehaus.janino.Java$MethodDeclarator:build_time,com.google.common.base.FinalizableReferenceQueue:build_time,io.fury.shaded.org.codehaus.janino.Java$AbstractCompilationUnit$ImportDeclaration:build_time,io.fury.codegen.JaninoUtils:build_time,io.fury.shaded.org.codehaus.janino.Java$Invocation:build_time,io.fury.shaded.org.codehaus.janino.ReflectionIClass:build_time,io.fury.util.record.RecordUtils:build_time,io.fury.shaded.org.codehaus.janino.Java$Literal:build_time,io.fury.shaded.org.codehaus.janino.IClassLoader:build_time,io.fury.shaded.org.codehaus.janino.Java$PrimitiveType:build_time,io.fury.shaded.org.codehaus.janino.CodeContext:build_time,io.fury.serializer.collection.ImmutableCollectionSerializers:build_time,io.fury.shaded.org.codehaus.janino.IClass$2:build_time,com.google.common.collect.RegularImmutableMap:build_time,io.fury.shaded.org.codehaus.janino.Descriptor:build_time,com.google.common.reflect.Types$NativeTypeVariableEquals:build_time,io.fury.shaded.org.codehaus.janino.Java$Located:build_time,io.fury.shaded.org.codehaus.janino.Java$ReferenceType:build_time,io.fury.shaded.org.codehaus.janino.Java$UnaryOperation:build_time,io.fury.util.ClassLoaderUtils:build_time,io.fury.shaded.org.codehaus.janino.UnitCompiler$39:build_time,io.fury.shaded.org.codehaus.janino.Java$IntegerLiteral:build_time,io.fury.shaded.org.codehaus.janino.Java$Lvalue:build_time,io.fury.shaded.org.codehaus.janino.Java$PackageDeclaration:build_time,com.google.common.reflect.Types$JavaVersion$4:build_time,io.fury.shaded.org.codehaus.janino.Java$FieldAccess:build_time,io.fury.shaded.org.codehaus.janino.Java$Block:build_time,io.fury.builder.AccessorHelper:build_time,io.fury.codegen.Expression$Literal:build_time,io.fury.shaded.org.codehaus.janino.Java$ContinuableStatement:build_time,io.fury.shaded.org.codehaus.janino.Java$IfStatement:build_time,com.google.common.collect.RegularImmutableBiMap:build_time,io.fury.shaded.org.codehaus.janino.Java$ConstructorDeclarator:build_time,com.google.common.reflect.Types$JavaVersion$3:build_time,io.fury.shaded.org.codehaus.janino.Java$SuperConstructorInvocation:build_time,io.fury.shaded.org.codehaus.janino.UnitCompiler$44:build_time,io.fury.shaded.org.codehaus.janino.Java$AmbiguousName:build_time,io.fury.shaded.org.codehaus.janino.Scanner:build_time,io.fury.shaded.org.codehaus.janino.Java$FieldDeclaration:build_time,io.fury.memory.BoundsChecking:build_time,io.fury.shaded.org.codehaus.janino.Java$Package:build_time,io.fury.serializer.ArraySerializers:build_time,io.fury.shaded.org.codehaus.janino.Java$AccessModifier:build_time,io.fury.util.ClassLoaderUtils$ParentClassLoader:build_time,com.google.common.collect.RegularImmutableSortedSet:build_time,io.fury.type.Descriptor:build_time,io.fury.serializer.PrimitiveSerializers$1:build_time,org.slf4j.LoggerFactory:build_time,io.fury.collection.MultiKeyWeakMap:build_time,io.fury.serializer.collection.UnmodifiableSerializers:build_time,io.fury.codegen.CompileUnit:build_time,io.fury.serializer.StringSerializer:build_time,com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper:build_time,io.fury.memory.MemoryBuffer:build_time,com.google.common.math.IntMath$1:build_time,io.fury.resolver.ClassResolver:build_time,io.fury.codegen.CodegenContext:build_time,io.fury.serializer.collection.GuavaCollectionSerializers:build_time,io.fury.util.unsafe._JDKAccess:build_time,io.fury.codegen.CodeGenerator:build_time,io.fury.serializer.collection.SynchronizedSerializers:build_time,io.fury.util.ClassLoaderUtils$ByteArrayClassLoader:build_time,com.google.common.collect.AbstractIterator$1:build_time,com.google.common.cache.LocalCache:build_time,io.fury.serializer.LambdaSerializer:build_time,com.google.common.collect.ImmutableSortedMap:build_time,io.fury.memory.MemoryUtils:build_time,io.fury.type.DescriptorGrouper:build_time,sun.misc.Unsafe:build_time,org.slf4j.LoggerFactory:build_time,com.google.common.collect.Platform:build_time -H:EnableURLProtocols@jar:file:///I:/packages/gradle/caches/modules-2/files-2.1/org.xerial/sqlite-jdbc/3.43.2.2/2a8e3eb01c8591c187c95d55b5e7e34f863a62a8/sqlite-jdbc-3.43.2.2.jar!/META-INF/native-image/org.xerial/sqlite-jdbc/native-image.properties+api=jar -H:Features@jar:file:///I:/packages/gradle/caches/modules-2/files-2.1/org.xerial/sqlite-jdbc/3.43.2.2/2a8e3eb01c8591c187c95d55b5e7e34f863a62a8/sqlite-jdbc-3.43.2.2.jar!/META-INF/native-image/org.xerial/sqlite-jdbc/native-image.properties+api=org.sqlite.nativeimage.SqliteJdbcFeature -H:FallbackThreshold@user+api=0 -H:Name@user+api=Rumi -H:ConfigurationFileDirectories@user=I:\Rumi\build\native\generated\generateResourcesConfigFile -H:ClassInitialization@user+api=me.ran.rumi.utils.Serializers:build_time,com.dslplatform.json:build_time,io.fury:build_time,net.dv8tion.jda.internal.entities.emoji:build_time -H:MicroArchitecture@user+api=native -H:Optimize@user+api=3 -H:+UseSerialGC@user+api -R:MaxHeapSize=4G -H:+ReportExceptionStackTraces@user -H:Class@explicit main-class=me.ran.rumi.Rumi -H:ImageBuildID@driver=519869e9-0a56-06e0-0e89-61f6aca400bd -H:Features@jar:file:///C:/Program%20Files/Java/graalvm/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/thirdparty/native-image.properties+api=com.oracle.svm.thirdparty.gson.GsonFeature -H:Features@jar:file:///C:/Program%20Files/Java/graalvm/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/polyglot/native-image.properties+api=com.oracle.svm.polyglot.groovy.GroovyIndyInterfaceFeature,com.oracle.svm.polyglot.scala.ScalaFeature ```
Builder properties ``` -Dcom.oracle.graalvm.isaot=true -Dgraalvm.ForcePolyglotInvalid=true -Dgraalvm.locatorDisabled=true -Djava.awt.headless=true -Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false -Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader -Djdk.internal.lambda.disableEagerInitialization=true -Djdk.internal.lambda.eagerlyInitialize=false -Djdk.module.main=org.graalvm.nativeimage.builder -Dorg.graalvm.vendor=Oracle Corporation -Dorg.graalvm.vendorurl=https://www.graalvm.org/ -Dorg.graalvm.vendorversion=Oracle GraalVM 21.0.1+12.1 -Dorg.graalvm.version=23.1.1 -Dsubstratevm.IgnoreGraalVersionCheck=true -Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime -Dtruffle.TrustAllTruffleRuntimeProviders=true ```
Features enabled ``` com.oracle.svm.core.IsolateArgumentParserFeature, [] com.oracle.svm.core.IsolateListenerFeature, [com.oracle.svm.core.IsolateListenerSupportFeature] com.oracle.svm.core.IsolateListenerSupportFeature, [] com.oracle.svm.core.RuntimeAssertionsSupportFeature, [] com.oracle.svm.core.StaticFieldsFeature, [] com.oracle.svm.core.StaticFieldsSupportFeature, [] com.oracle.svm.core.SubstrateExitHandlerFeature, [] com.oracle.svm.core.SubstrateSegfaultHandlerFeature, [com.oracle.svm.core.IsolateListenerSupportFeature] com.oracle.svm.core.UniqueShortNameProviderDefaultImplFeature, [] com.oracle.svm.core.UnsafeMemoryUtilFeature, [] com.oracle.svm.core.allocationprofile.AllocationProfilingFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature] com.oracle.svm.core.amd64.AMD64FrameAccessFeature, [] com.oracle.svm.core.c.CIsolateDataStorageFeature, [] com.oracle.svm.core.c.CTypeConversionSupportImplFeature, [] com.oracle.svm.core.c.ProjectHeaderFileHeaderResolversRegistryFeature, [] com.oracle.svm.core.c.function.IsolateSupportImplFeature, [] com.oracle.svm.core.code.CodeInfoFeature, [com.oracle.svm.core.util.CounterFeature] com.oracle.svm.core.code.CodeInfoMemoryWalkerFeature, [] com.oracle.svm.core.code.InstalledCodeObserverSupportFeature, [] com.oracle.svm.core.cpufeature.RuntimeCPUFeatureCheckFeature, [] com.oracle.svm.core.cpufeature.RuntimeCPUFeatureCheckImplFeature, [] com.oracle.svm.core.genscavenge.AlignedHeapChunkMemoryWalkerAccessImplFeature, [] com.oracle.svm.core.genscavenge.JfrGCEventFeature, [] com.oracle.svm.core.genscavenge.PinnedObjectImplPinnedObjectSupportImplFeature, [] com.oracle.svm.core.genscavenge.UnalignedHeapChunkMemoryWalkerAccessImplFeature, [] com.oracle.svm.core.genscavenge.graal.BarrierSnippetCountersFeature, [com.oracle.svm.core.util.CounterFeature] com.oracle.svm.core.genscavenge.graal.GenScavengeGCFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature com.oracle.svm.core.jdk.management.ManagementFeature com.oracle.svm.core.jvmstat.PerfDataFeature com.oracle.svm.core.heap.AllocationFeature] com.oracle.svm.core.graal.amd64.AMD64NativePatchConsumerFactoryFeature, [] com.oracle.svm.core.graal.amd64.SubstrateAMD64Feature, [] com.oracle.svm.core.graal.amd64.SubstrateAMD64GraphBuilderPlugins, [] com.oracle.svm.core.graal.jdk.JDKIntrinsicsFeature, [] com.oracle.svm.core.graal.snippets.CEntryPointListenerSupportFeature, [] com.oracle.svm.core.graal.snippets.CFunctionSnippetsFeature, [] com.oracle.svm.core.graal.snippets.DeoptSnippetsFeature, [] com.oracle.svm.core.graal.snippets.ExceptionFeature, [] com.oracle.svm.core.graal.snippets.SafepointFeature, [] com.oracle.svm.core.graal.snippets.StackOverflowCheckFeature, [] com.oracle.svm.core.graal.snippets.amd64.AMD64SnippetsFeature, [] com.oracle.svm.core.graal.stackvalue.StackValueFeature, [] com.oracle.svm.core.handles.ObjectHandlesSupportImplFeature, [] com.oracle.svm.core.handles.PinnedPrimitiveArrayViewFeature, [] com.oracle.svm.core.heap.AllocationFeature, [] com.oracle.svm.core.heap.GCCauseFeature, [] com.oracle.svm.core.heap.HostedHeapSizeVerifierFeature, [] com.oracle.svm.core.heap.ReferenceAccessImplFeature, [] com.oracle.svm.core.heap.ReferenceHandlerThreadFeature, [] com.oracle.svm.core.heap.VMOperationInfosFeature, [] com.oracle.svm.core.heap.VMOperationNamesFeatures, [] com.oracle.svm.core.hub.ClassForNameSupportFeature, [] com.oracle.svm.core.hub.DynamicHubSupportFeature, [] com.oracle.svm.core.identityhashcode.SubstrateIdentityHashCodeFeature, [] com.oracle.svm.core.jdk.AtomicFieldUpdaterFeature, [] com.oracle.svm.core.jdk.ClassLoaderSupportFeature, [] com.oracle.svm.core.jdk.CompletableFutureFeature, [] com.oracle.svm.core.jdk.FileSystemProviderFeature, [] com.oracle.svm.core.jdk.ForkJoinPoolFeature, [] com.oracle.svm.core.jdk.InnocuousForkJoinWorkerThreadFeature, [] com.oracle.svm.core.jdk.JRTDisableFeature, [] com.oracle.svm.core.jdk.JavaNetFeature, [] com.oracle.svm.core.jdk.JavaNetHttpFeature, [] com.oracle.svm.core.jdk.NativeLibrarySupportFeature, [] com.oracle.svm.core.jdk.PlatformNativeLibrarySupportFeature, [] com.oracle.svm.core.jdk.ResourcesFeature, [] com.oracle.svm.core.jdk.RuntimeFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature] com.oracle.svm.core.jdk.RuntimeSupportFeature, [] com.oracle.svm.core.jdk.ServiceCatalogSupportFeature, [] com.oracle.svm.core.jdk.SimpleWebServerFeature, [] com.oracle.svm.core.jdk.TimeZoneFeature, [] com.oracle.svm.core.jdk.TrustStoreManagerFeature, [] com.oracle.svm.core.jdk.URLProtocolsSupportFeature, [] com.oracle.svm.core.jdk.VarHandleFeature, [] com.oracle.svm.core.jdk.localization.LocalizationFeature, [] com.oracle.svm.core.jdk.management.ManagementFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature com.oracle.svm.core.thread.ThreadListenerSupportFeature] com.oracle.svm.core.jfr.sampler.JfrNoExecutionSamplerFeature, [com.oracle.svm.core.jfr.JfrFeature] com.oracle.svm.core.jfr.sampler.JfrRecurringCallbackExecutionSamplerFeature, [com.oracle.svm.core.jfr.JfrFeature] com.oracle.svm.core.jvmstat.PerfDataFeature, [com.oracle.svm.core.thread.VMOperationListenerSupportFeature com.oracle.svm.core.jdk.RuntimeSupportFeature] com.oracle.svm.core.meta.SubstrateObjectConstantEqualityFeature, [] com.oracle.svm.core.option.RuntimeOptionsSupportImplFeature, [] com.oracle.svm.core.option.ValidateImageBuildOptionsFeature, [] com.oracle.svm.core.os.BufferedFileOperationFeature, [] com.oracle.svm.core.os.ImageHeapProviderFeature, [] com.oracle.svm.core.os.OSCommittedMemoryProviderFeature, [] com.oracle.svm.core.reflect.target.ReflectionMetadataDecoderImplFeature, [] com.oracle.svm.core.reflect.target.ReflectionMetadataDecoderImplMetadataAccessorImplFeature, [] com.oracle.svm.core.reflect.target.ReflectionMetadataEncodingFeature, [] com.oracle.svm.core.thread.ContinuationsFeature, [] com.oracle.svm.core.thread.JavaThreadsFeature, [] com.oracle.svm.core.thread.SafepointListenerSupportFeature, [] com.oracle.svm.core.thread.SafepointMasterFeature, [] com.oracle.svm.core.thread.ThreadListenerSupportFeature, [] com.oracle.svm.core.thread.ThreadLookupFeature, [] com.oracle.svm.core.thread.ThreadingSupportImplFeature, [] com.oracle.svm.core.thread.VMOperationControlFeature, [] com.oracle.svm.core.thread.VMOperationListenerSupportFeature, [] com.oracle.svm.core.threadlocal.VMThreadLocalInfosFeature, [] com.oracle.svm.core.util.CounterFeature, [] com.oracle.svm.core.util.HostedStringDeduplicationFeature, [] com.oracle.svm.core.windows.WindowsAPIsSupportFeature, [] com.oracle.svm.core.windows.WindowsFeature, [] com.oracle.svm.core.windows.WindowsLibCSupportFeature, [] com.oracle.svm.core.windows.WindowsNativeLibraryFeature, [] com.oracle.svm.core.windows.WindowsNativeLibrarySupportFeature, [] com.oracle.svm.core.windows.WindowsParkerFactoryFeature, [] com.oracle.svm.core.windows.WindowsPhysicalMemorySupportImplFeature, [] com.oracle.svm.core.windows.WindowsPlatformThreadsFeature, [] com.oracle.svm.core.windows.WindowsProcessPropertiesSupportFeature, [] com.oracle.svm.core.windows.WindowsRegisterDumperFeature, [] com.oracle.svm.core.windows.WindowsStackOverflowSupportFeature, [] com.oracle.svm.core.windows.WindowsSubstrateSegfaultHandlerFeature, [] com.oracle.svm.core.windows.WindowsSystemPropertiesFeature, [] com.oracle.svm.core.windows.WindowsThreadCpuTimeSupportFeature, [] com.oracle.svm.core.windows.WindowsUnmanagedMemorySupportImplFeature, [] com.oracle.svm.core.windows.WindowsVMLockFeature, [] com.oracle.svm.core.windows.WindowsVMThreadsFeature, [] com.oracle.svm.core.windows.WindowsVirtualMemoryProviderFeature, [] com.oracle.svm.enterprise.core.ai, [] com.oracle.svm.enterprise.core.am, [] com.oracle.svm.enterprise.core.amd64.a, [] com.oracle.svm.enterprise.core.amd64.g, [] com.oracle.svm.enterprise.core.at, [] com.oracle.svm.enterprise.core.auximage.ah, [] com.oracle.svm.enterprise.core.b, [] com.oracle.svm.enterprise.core.copying.a, [] com.oracle.svm.enterprise.core.copying.d, [] com.oracle.svm.enterprise.core.copying.p, [] com.oracle.svm.enterprise.core.f, [] com.oracle.svm.enterprise.core.graal.jdk.a, [] com.oracle.svm.enterprise.core.graalos.b, [] com.oracle.svm.enterprise.core.heap.a, [] com.oracle.svm.enterprise.core.m, [] com.oracle.svm.enterprise.core.monitor.b, [] com.oracle.svm.enterprise.core.sboutlining.g, [] com.oracle.svm.enterprise.core.sboutlining.i, [com.oracle.svm.core.util.CounterFeature] com.oracle.svm.enterprise.core.sboutlining.l, [] com.oracle.svm.enterprise.core.stringformat.b, [] com.oracle.svm.enterprise.graal.a, [] com.oracle.svm.enterprise.graal.amd64.b, [] com.oracle.svm.enterprise.hosted.b, [] com.oracle.svm.enterprise.hosted.code.layout.e, [] com.oracle.svm.enterprise.hosted.e, [] com.oracle.svm.enterprise.hosted.h, [] com.oracle.svm.enterprise.hosted.m, [] com.oracle.svm.enterprise.hosted.ml.features.provider.a, [] com.oracle.svm.enterprise.hosted.objectinlining.b, [] com.oracle.svm.enterprise.hosted.objectinlining.f, [] com.oracle.svm.enterprise.hosted.phases.a, [] com.oracle.svm.enterprise.profiling.c, [] com.oracle.svm.enterprise.sbom.d, [] com.oracle.svm.graal.RuntimeCPUFeatureRegionFeature, [] com.oracle.svm.graal.isolated.DisableSnippetCountersFeature, [] com.oracle.svm.graal.isolated.IsolateAwareObjectConstantEqualityFeature, [] com.oracle.svm.graal.meta.amd64.AMD64RuntimeCodeInstallerPlatformHelperFeature, [] com.oracle.svm.graal.stubs.AMD64StubForeignCallsFeature, [] com.oracle.svm.hosted.BuildDirectoryProviderImplFeature, [] com.oracle.svm.hosted.ClassLoaderFeature, [] com.oracle.svm.hosted.ClassNewInstanceFeature, [] com.oracle.svm.hosted.ClassPredefinitionFeature, [] com.oracle.svm.hosted.ClassValueFeature, [] com.oracle.svm.hosted.ConcurrentReachabilityHandler, [] com.oracle.svm.hosted.FallbackFeature, [] com.oracle.svm.hosted.Log4ShellFeature, [] com.oracle.svm.hosted.LoggingFeature, [] com.oracle.svm.hosted.ModuleLayerFeature, [] com.oracle.svm.hosted.ProtectionDomainFeature, [] com.oracle.svm.hosted.ResourcesFeature, [] com.oracle.svm.hosted.SecurityServicesFeature, [] com.oracle.svm.hosted.ServiceLoaderFeature, [] com.oracle.svm.hosted.SubstrateDiagnosticFeature, [] com.oracle.svm.hosted.SystemInOutErrFeature, [] com.oracle.svm.hosted.ameta.HostedDynamicHubFeature, [] com.oracle.svm.hosted.annotation.AnnotationFeature, [] com.oracle.svm.hosted.c.CGlobalDataFeature, [] com.oracle.svm.hosted.c.CIsolateDataFeature, [] com.oracle.svm.hosted.c.function.CEntryPointSupport, [] com.oracle.svm.hosted.classinitialization.ClassInitializationFeature, [] com.oracle.svm.hosted.code.CEntryPointCallStubFeature, [] com.oracle.svm.hosted.code.CEntryPointLiteralFeature, [] com.oracle.svm.hosted.code.CFunctionLinkagesFeature, [] com.oracle.svm.hosted.code.CFunctionPointerCallStubSupportFeature, [] com.oracle.svm.hosted.code.FactoryMethodSupportFeature, [] com.oracle.svm.hosted.code.FrameInfoHostedMethodDataFeature, [] com.oracle.svm.hosted.code.RestrictHeapAccessCalleesFeature, [] com.oracle.svm.hosted.code.SubstrateCompilationDirectivesFeature, [] com.oracle.svm.hosted.code.SubstrateLIRBackendFeature, [] com.oracle.svm.hosted.code.UninterruptibleAnnotationCheckerFeature, [] com.oracle.svm.hosted.code.amd64.AMD64HostedPatcherFeature, [] com.oracle.svm.hosted.code.amd64.AMD64HostedTrampolineSupportFeature, [] com.oracle.svm.hosted.fieldfolding.StaticFinalFieldFoldingFeature, [] com.oracle.svm.hosted.heap.ImageHeapMapFeature, [] com.oracle.svm.hosted.heap.ObservableHeapMapFeature, [] com.oracle.svm.hosted.heap.PodFeature, [] com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature, [com.oracle.svm.core.jdk.management.ManagementFeature] com.oracle.svm.hosted.image.ImageHeapFillerObjectsFeature, [] com.oracle.svm.hosted.image.MethodPointerInvalidHandlerFeature, [] com.oracle.svm.hosted.image.MethodPointerRelocationProviderFeature, [] com.oracle.svm.hosted.image.StringInternFeature, [] com.oracle.svm.hosted.image.sources.SourceCacheFeature, [] com.oracle.svm.hosted.jdk.AccessControlContextReplacerFeature, [] com.oracle.svm.hosted.jdk.JDKInitializationFeature, [] com.oracle.svm.hosted.jdk.JDKRegistrations, [] com.oracle.svm.hosted.jdk.JNIRegistrationAWTSupport, [] com.oracle.svm.hosted.jdk.JNIRegistrationJava, [] com.oracle.svm.hosted.jdk.JNIRegistrationJavaNet, [] com.oracle.svm.hosted.jdk.JNIRegistrationJavaNio, [] com.oracle.svm.hosted.jdk.JNIRegistrationManagementExt, [] com.oracle.svm.hosted.jdk.JNIRegistrationPrefs, [] com.oracle.svm.hosted.jdk.JNIRegistrationSupport, [] com.oracle.svm.hosted.jdk.JNIRegistrationsJavaZip, [] com.oracle.svm.hosted.jdk.JRTFeature, [] com.oracle.svm.hosted.jdk.localization.CharsetSubstitutionsFeature, [] com.oracle.svm.hosted.jdk.localization.LocalizationFeature, [] com.oracle.svm.hosted.jni.JNIAccessFeature, [com.oracle.svm.hosted.meta.KnownOffsetsFeature] com.oracle.svm.hosted.jni.JNIAutomaticFeature, [com.oracle.svm.hosted.jni.JNIFeature] com.oracle.svm.hosted.jni.JNICallWrapperFeature, [com.oracle.svm.hosted.jni.JNIAccessFeature] com.oracle.svm.hosted.jni.JNIFeature, [com.oracle.svm.hosted.jni.JNIFunctionTablesFeature com.oracle.svm.hosted.jni.JNICallWrapperFeature com.oracle.svm.hosted.jni.JNILibraryLoadFeature] com.oracle.svm.hosted.jni.JNIFunctionTablesFeature, [com.oracle.svm.hosted.jni.JNIAccessFeature] com.oracle.svm.hosted.jni.JNILibraryLoadFeature, [] com.oracle.svm.hosted.lambda.StableLambdaProxyNameFeature, [] com.oracle.svm.hosted.meta.HostedMethodNameFactory, [] com.oracle.svm.hosted.meta.InvalidVTableEntryFeature, [] com.oracle.svm.hosted.meta.KnownOffsetsFeature, [com.oracle.svm.hosted.thread.VMThreadMTFeature] com.oracle.svm.hosted.meta.MaterializedConstantFieldsFeature, [] com.oracle.svm.hosted.methodhandles.MethodHandleFeature, [] com.oracle.svm.hosted.option.RuntimeOptionFeature, [] com.oracle.svm.hosted.phases.EnumSwitchFeature, [] com.oracle.svm.hosted.reflect.ReflectionFeature, [] com.oracle.svm.hosted.reflect.ReflectionMetadataEncoderImplFactoryFeature, [] com.oracle.svm.hosted.reflect.proxy.DynamicProxyFeature, [com.oracle.svm.hosted.reflect.ReflectionFeature] com.oracle.svm.hosted.reflect.serialize.SerializationFeature, [com.oracle.svm.hosted.reflect.ReflectionFeature com.oracle.svm.hosted.reflect.proxy.DynamicProxyFeature] com.oracle.svm.hosted.snippets.ExceptionUnwindFeature, [] com.oracle.svm.hosted.snippets.ImplicitExceptionsFeature, [] com.oracle.svm.hosted.substitute.AutomaticSubstitutionFeature, [] com.oracle.svm.hosted.thread.CEntryPointFeature, [com.oracle.svm.hosted.thread.VMThreadMTFeature] com.oracle.svm.hosted.thread.HostedContinuationsFeature, [com.oracle.svm.core.thread.ContinuationsFeature] com.oracle.svm.hosted.thread.VMThreadMTFeature, [] com.oracle.svm.hosted.xml.JavaxXmlClassAndResourcesLoaderFeature, [] com.oracle.svm.polyglot.scala.ScalaFeature, [] com.oracle.svm.thirdparty.gson.GsonFeature, [] org.sqlite.nativeimage.SqliteJdbcFeature, [] ```
fniephaus commented 10 months ago

Thanks for reporting, @Ran-Mewo. I don't see how this is related to #6309. The problem you are running into is that Native Image does not support the Vector API yet, which is still an incubating API.

fniephaus commented 10 months ago

Relevant piece of code: https://github.com/oracle/graal/blob/1b59f4181e8e59573ebf6c3379c4764c382893b7/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Target_jdk_internal_vm_vector_VectorSupport.java#L32-L41

Ran-Mewo commented 10 months ago

Oh I didn't know the entire Vector API isn't supported at the moment, the error said a linker issue so I thought it was supported but something else went wrong Thanks!

And also issue #6309 talks a little bit about the Vector API and is the only result that popped up when googling about this Sorry I should've worded it better instead of saying this is the same issue as #6309