Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM64 build failed: 'x86_64-linux-musl-gcc' not found #7103

Closed
power721 opened this issue Aug 2, 2023 · 6 comments
Closed

ARM64 build failed: 'x86_64-linux-musl-gcc' not found #7103

power721 opened this issue Aug 2, 2023 · 6 comments
Assignees
Labels

Comments

@power721
Copy link

power721 commented Aug 2, 2023

Describe the issue
I install /opt/aarch64-linux-musl-native.
Error: Default native-compiler executable 'x86_64-linux-musl-gcc' not found via environment variable PATH
Error: To prevent native-toolchain checking provide command-line option -H:-CheckToolchain
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception

I tried install x86_64-linux-musl-gcc, but cannot build.

Steps to reproduce the issue
Please include both build steps as well as run steps

  1. git clone https://github.com/power721/alist-tvbox.git
  2. git checkout dev
  3. mvn clean package -DskipTests -Pnative

Describe GraalVM and your environment:

  • GraalVM version native-image 17.0.8 2023-07-18
    GraalVM Runtime Environment Oracle GraalVM 17.0.8+9.1 (build 17.0.8+9-LTS-jvmci-23.0-b14)
    Substrate VM Oracle GraalVM 17.0.8+9.1 (build 17.0.8+9-LTS, serial gc, compressed references)
  • JDK major version: 17
  • OS: Linux pi
  • Architecture: aarch64

More details

    <profiles>
        <profile>
            <id>native</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.hibernate.orm.tooling</groupId>
                        <artifactId>hibernate-enhance-maven-plugin</artifactId>
                        <version>${hibernate.version}</version>
                        <executions>
                            <execution>
                                <id>enhance</id>
                                <goals>
                                    <goal>enhance</goal>
                                </goals>
                                <configuration>
                                    <failOnError>true</failOnError>
                                    <enableLazyInitialization>true</enableLazyInitialization>
                                    <enableDirtyTracking>true</enableDirtyTracking>
                                    <enableAssociationManagement>true</enableAssociationManagement>
                                    <enableExtendedEnhancement>false</enableExtendedEnhancement>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.graalvm.buildtools</groupId>
                        <artifactId>native-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>build-native</id>
                                <goals>
                                    <goal>compile-no-fork</goal>
                                </goals>
                                <phase>package</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <imageName>atv</imageName>
                            <buildArgs>
                                <buildArg>
                                    --static
                                    --libc=musl
                                    --enable-http
                                    --enable-https
                                </buildArg>
                            </buildArgs>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
[INFO] Executing: /opt/graalvm/bin/native-image -cp /home/harold/workspace/alist-tvbox/target/classes:/home/harold/.m2/repository/org/springframework/data/spring-data-commons/3.1.2/spring-data-commons-3.1.2.jar:/home/harold/.m2/repository/org/glassfish/jaxb/jaxb-runtime/4.0.3/jaxb-runtime-4.0.3.jar:/home/harold/.m2/repository/io/jsonwebtoken/jjwt-api/0.11.5/jjwt-api-0.11.5.jar:/home/harold/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/home/harold/.m2/repository/com/sun/istack/istack-commons-runtime/4.1.2/istack-commons-runtime-4.1.2.jar:/home/harold/.m2/repository/io/micrometer/micrometer-observation/1.11.2/micrometer-observation-1.11.2.jar:/home/harold/.m2/repository/org/hibernate/common/hibernate-commons-annotations/6.0.6.Final/hibernate-commons-annotations-6.0.6.Final.jar:/home/harold/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/home/harold/.m2/repository/io/jsonwebtoken/jjwt-impl/0.11.5/jjwt-impl-0.11.5.jar:/home/harold/.m2/repository/org/antlr/antlr4-runtime/4.10.1/antlr4-runtime-4.10.1.jar:/home/harold/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.2/jackson-datatype-jsr310-2.15.2.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot/3.1.2/spring-boot-3.1.2.jar:/home/harold/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:/home/harold/.m2/repository/io/smallrye/jandex/3.0.5/jandex-3.0.5.jar:/home/harold/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.11/tomcat-embed-core-10.1.11.jar:/home/harold/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.8.22/kotlin-stdlib-jdk8-1.8.22.jar:/home/harold/.m2/repository/org/springframework/spring-webmvc/6.0.11/spring-webmvc-6.0.11.jar:/home/harold/.m2/repository/ch/qos/logback/logback-classic/1.4.8/logback-classic-1.4.8.jar:/home/harold/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.11/tomcat-embed-el-10.1.11.jar:/home/harold/.m2/repository/org/springframework/data/spring-data-jpa/3.1.2/spring-data-jpa-3.1.2.jar:/home/harold/.m2/repository/org/springframework/spring-expression/6.0.11/spring-expression-6.0.11.jar:/home/harold/.m2/repository/jakarta/persistence/jakarta.persistence-api/3.1.0/jakarta.persistence-api-3.1.0.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.2/spring-boot-autoconfigure-3.1.2.jar:/home/harold/.m2/repository/org/jsoup/jsoup/1.15.4/jsoup-1.15.4.jar:/home/harold/.m2/repository/jakarta/transaction/jakarta.transaction-api/2.0.1/jakarta.transaction-api-2.0.1.jar:/home/harold/.m2/repository/org/hibernate/orm/hibernate-core/6.2.6.Final/hibernate-core-6.2.6.Final.jar:/home/harold/.m2/repository/net/bytebuddy/byte-buddy/1.14.5/byte-buddy-1.14.5.jar:/home/harold/.m2/repository/org/glassfish/jaxb/txw2/4.0.3/txw2-4.0.3.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.2/spring-boot-starter-logging-3.1.2.jar:/home/harold/.m2/repository/org/springframework/security/spring-security-crypto/6.1.2/spring-security-crypto-6.1.2.jar:/home/harold/.m2/repository/org/aspectj/aspectjweaver/1.9.19/aspectjweaver-1.9.19.jar:/home/harold/.m2/repository/org/eclipse/angus/angus-activation/2.0.1/angus-activation-2.0.1.jar:/home/harold/.m2/repository/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.jar:/home/harold/.m2/repository/org/springframework/spring-aop/6.0.11/spring-aop-6.0.11.jar:/home/harold/.m2/repository/com/zaxxer/HikariCP/5.0.1/HikariCP-5.0.1.jar:/home/harold/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.8.22/kotlin-stdlib-jdk7-1.8.22.jar:/home/harold/.m2/repository/org/springframework/spring-web/6.0.11/spring-web-6.0.11.jar:/home/harold/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/home/harold/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.2/jackson-module-parameter-names-2.15.2.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-security/3.1.2/spring-boot-starter-security-3.1.2.jar:/home/harold/.m2/repository/com/h2database/h2/2.1.214/h2-2.1.214.jar:/home/harold/.m2/repository/org/springframework/spring-jcl/6.0.11/spring-jcl-6.0.11.jar:/home/harold/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.2/jackson-datatype-jdk8-2.15.2.jar:/home/harold/.m2/repository/org/jboss/logging/jboss-logging/3.5.3.Final/jboss-logging-3.5.3.Final.jar:/home/harold/.m2/repository/org/glassfish/jaxb/jaxb-core/4.0.3/jaxb-core-4.0.3.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.2/spring-boot-starter-web-3.1.2.jar:/home/harold/.m2/repository/com/squareup/okio/okio-jvm/3.0.0/okio-jvm-3.0.0.jar:/home/harold/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/home/harold/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.2/jackson-annotations-2.15.2.jar:/home/harold/.m2/repository/io/micrometer/micrometer-commons/1.11.2/micrometer-commons-1.11.2.jar:/home/harold/.m2/repository/org/projectlombok/lombok/1.18.28/lombok-1.18.28.jar:/home/harold/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.2/spring-boot-starter-3.1.2.jar:/home/harold/.m2/repository/org/springframework/spring-orm/6.0.11/spring-orm-6.0.11.jar:/home/harold/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.2/jackson-core-2.15.2.jar:/home/harold/.m2/repository/org/springframework/security/spring-security-core/6.1.2/spring-security-core-6.1.2.jar:/home/harold/.m2/repository/jakarta/inject/jakarta.inject-api/2.0.1/jakarta.inject-api-2.0.1.jar:/home/harold/.m2/repository/jakarta/activation/jakarta.activation-api/2.1.2/jakarta.activation-api-2.1.2.jar:/home/harold/.m2/repository/org/springframework/spring-context/6.0.11/spring-context-6.0.11.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-aop/3.1.2/spring-boot-starter-aop-3.1.2.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/3.1.2/spring-boot-starter-jdbc-3.1.2.jar:/home/harold/.m2/repository/ch/qos/logback/logback-core/1.4.8/logback-core-1.4.8.jar:/home/harold/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.11/tomcat-embed-websocket-10.1.11.jar:/home/harold/.m2/repository/io/jsonwebtoken/jjwt-jackson/0.11.5/jjwt-jackson-0.11.5.jar:/home/harold/.m2/repository/org/springframework/spring-beans/6.0.11/spring-beans-6.0.11.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.2/spring-boot-starter-json-3.1.2.jar:/home/harold/.m2/repository/org/springframework/security/spring-security-web/6.1.2/spring-security-web-6.1.2.jar:/home/harold/.m2/repository/org/springframework/security/spring-security-config/6.1.2/spring-security-config-6.1.2.jar:/home/harold/.m2/repository/org/springframework/spring-jdbc/6.0.11/spring-jdbc-6.0.11.jar:/home/harold/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.8.22/kotlin-stdlib-1.8.22.jar:/home/harold/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.2/jackson-databind-2.15.2.jar:/home/harold/.m2/repository/org/springframework/spring-aspects/6.0.11/spring-aspects-6.0.11.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.2/spring-boot-starter-tomcat-3.1.2.jar:/home/harold/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/3.1.2/spring-boot-starter-data-jpa-3.1.2.jar:/home/harold/.m2/repository/org/springframework/spring-tx/6.0.11/spring-tx-6.0.11.jar:/home/harold/.m2/repository/org/springframework/spring-core/6.0.11/spring-core-6.0.11.jar:/home/harold/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/home/harold/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/home/harold/.m2/repository/com/fasterxml/classmate/1.5.1/classmate-1.5.1.jar:/home/harold/.m2/repository/jakarta/servlet/jakarta.servlet-api/6.0.0/jakarta.servlet-api-6.0.0.jar:/home/harold/.m2/repository/com/squareup/okhttp3/okhttp/4.10.0/okhttp-4.10.0.jar:/home/harold/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.8.22/kotlin-stdlib-common-1.8.22.jar:/home/harold/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/4.0.0/jakarta.xml.bind-api-4.0.0.jar:/home/harold/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar --no-fallback -H:Path=/home/harold/workspace/alist-tvbox/target -H:Name=atv -H:ConfigurationFileDirectories=/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/org.hibernate.orm/hibernate-core/6.2.0.Final,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/org.apache.tomcat.embed/tomcat-embed-core/10.0.20,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/jakarta.servlet/jakarta.servlet-api/5.0.0,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/org.jboss.logging/jboss-logging/3.5.0.Final,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/com.zaxxer/HikariCP/5.0.1,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/ch.qos.logback/logback-classic/1.4.1,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/org.glassfish.jaxb/jaxb-runtime/3.0.2,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/org.jetbrains.kotlin/kotlin-stdlib/1.7.10,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/com.h2database/h2/2.1.210,/home/harold/workspace/alist-tvbox/target/graalvm-reachability-metadata/8591e39e7d8116af20e1172f590a4f86a2d7a8a0/io.jsonwebtoken/jjwt-jackson/0.11.5 --static --libc=musl --enable-http --enable-https
========================================================================================================================
GraalVM Native Image: Generating 'atv' (static executable)...
========================================================================================================================
[1/8] Initializing...
                                                                                    (0.0s @ 0.23GB)
Error: Default native-compiler executable 'x86_64-linux-musl-gcc' not found via environment variable PATH
Error: To prevent native-toolchain checking provide command-line option -H:-CheckToolchain
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
@power721 power721 added the bug label Aug 2, 2023
@power721
Copy link
Author

power721 commented Aug 2, 2023

I removed '--libc=musl' from build arg, still failed:

Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:82:117: error: ‘LC_ADDRESS’ undeclared (first use in this function)
    method com.oracle.svm.core.posix.headers.Errno.ETIMEDOUT()
    C file contents around line 82:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:81:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:ETIMEDOUT:PropertyInfo:value=%lX\n", ((unsigned long)ETIMEDOUT));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:82:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_ADDRESS:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LC_ADDRESS)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:83:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_ADDRESS:PropertyInfo:signedness=$%s$\n", ((LC_ADDRESS>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:94:124: error: ‘LC_IDENTIFICATION’ undeclared (first use in this function)
    method com.oracle.svm.core.posix.headers.Locale.LC_CTYPE()
    C file contents around line 94:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:93:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_CTYPE:PropertyInfo:value=%lX\n", ((unsigned long)LC_CTYPE));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:94:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_IDENTIFICATION:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LC_IDENTIFICATION)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:95:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_IDENTIFICATION:PropertyInfo:signedness=$%s$\n", ((LC_IDENTIFICATION>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:97:121: error: ‘LC_MEASUREMENT’ undeclared (first use in this function)
    method com.oracle.svm.core.posix.headers.Locale.LC_IDENTIFICATION()
    C file contents around line 97:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:96:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_IDENTIFICATION:PropertyInfo:value=%lX\n", ((unsigned long)LC_IDENTIFICATION));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:97:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_MEASUREMENT:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LC_MEASUREMENT)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:98:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_MEASUREMENT:PropertyInfo:signedness=$%s$\n", ((LC_MEASUREMENT>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:106:114: error: ‘LC_NAME’ undeclared (first use in this function); did you mean ‘LC_TIME’?
    method com.oracle.svm.core.posix.headers.Locale.LC_MONETARY()
    C file contents around line 106:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:105:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_MONETARY:PropertyInfo:value=%lX\n", ((unsigned long)LC_MONETARY));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:106:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_NAME:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LC_NAME)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:107:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_NAME:PropertyInfo:signedness=$%s$\n", ((LC_NAME>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:112:115: error: ‘LC_PAPER’ undeclared (first use in this function)
    method com.oracle.svm.core.posix.headers.Locale.LC_NUMERIC()
    C file contents around line 112:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:111:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_NUMERIC:PropertyInfo:value=%lX\n", ((unsigned long)LC_NUMERIC));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:112:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_PAPER:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LC_PAPER)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:113:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_PAPER:PropertyInfo:signedness=$%s$\n", ((LC_PAPER>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:115:119: error: ‘LC_TELEPHONE’ undeclared (first use in this function)
    method com.oracle.svm.core.posix.headers.Locale.LC_PAPER()
    C file contents around line 115:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:114:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_PAPER:PropertyInfo:value=%lX\n", ((unsigned long)LC_PAPER));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:115:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_TELEPHONE:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LC_TELEPHONE)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:116:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_TELEPHONE:PropertyInfo:signedness=$%s$\n", ((LC_TELEPHONE>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:121:117: error: ‘LM_ID_BASE’ undeclared (first use in this function)
    method com.oracle.svm.core.posix.headers.Locale.LC_TIME()
    C file contents around line 121:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:120:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LC_TIME:PropertyInfo:value=%lX\n", ((unsigned long)LC_TIME));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:121:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LM_ID_BASE:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LM_ID_BASE)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:122:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LM_ID_BASE:PropertyInfo:signedness=$%s$\n", ((LM_ID_BASE>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:124:118: error: ‘LM_ID_NEWLM’ undeclared (first use in this function)
    method com.oracle.svm.core.posix.headers.Dlfcn$GNUExtensions.LM_ID_BASE()
    C file contents around line 124:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:123:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LM_ID_BASE:PropertyInfo:value=%lX\n", ((unsigned long)LM_ID_BASE));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:124:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LM_ID_NEWLM:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(LM_ID_NEWLM)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:125:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:LM_ID_NEWLM:PropertyInfo:signedness=$%s$\n", ((LM_ID_NEWLM>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:200:119: error: ‘RTLD_DI_LMID’ undeclared (first use in this function); did you mean ‘RTLD_DI_LINKMAP’?
    method com.oracle.svm.core.posix.headers.Dlfcn.RTLD_DEFAULT()
    C file contents around line 200:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:199:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:RTLD_DEFAULT:PropertyInfo:value=%lX\n", ((unsigned long)RTLD_DEFAULT));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:200:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:RTLD_DI_LMID:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(RTLD_DI_LMID)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:201:     printf("NativeCodeInfo:PosixDirectives:ConstantInfo:RTLD_DI_LMID:PropertyInfo:signedness=$%s$\n", ((RTLD_DI_LMID>=0 ? 1 : 0)) ? "UNSIGNED" : "SIGNED");
Error: Error compiling query code (in /tmp/SVM-13015406333009222264/PosixDirectives.c). Compiler command '/opt/aarch64-linux-musl-native/bin/gcc -Wall -Werror -o /tmp/SVM-13015406333009222264/PosixDirectives /tmp/SVM-13015406333009222264/PosixDirectives.c' output included error: /tmp/SVM-13015406333009222264/PosixDirectives.c:401:114: error: ‘Lmid_t’ undeclared (first use in this function); did you mean ‘id_t’?
    HotSpotResolvedJavaFieldImpl<com.oracle.svm.core.posix.headers.Time$TimerTypeEnum.ITIMER_VIRTUAL Time$TimerTypeEnum:116>
    C file contents around line 401:
    /tmp/SVM-13015406333009222264/PosixDirectives.c:400:     printf("NativeCodeInfo:PosixDirectives:EnumInfo:int:EnumConstantInfo:ITIMER_VIRTUAL:PropertyInfo:value=%lX\n", ((unsigned long)ITIMER_VIRTUAL));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:401:     printf("NativeCodeInfo:PosixDirectives:PointerToInfo:Lmid_t:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(Lmid_t)));
    /tmp/SVM-13015406333009222264/PosixDirectives.c:402:     printf("NativeCodeInfo:PosixDirectives:PointerToInfo:long_long_int:PropertyInfo:size=%lu\n", ((unsigned long)sizeof(long long int)));
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception

@oubidar-Abderrahim
Copy link
Member

static images are not supported in aarch64 yet, please remove both --libc=musl and --static from your arg list

@oubidar-Abderrahim oubidar-Abderrahim self-assigned this Aug 9, 2023
@oubidar-Abderrahim
Copy link
Member

I'll close this issue for now, if you still face the issue after removing the 2 flags above, please reopen

@xtaixe
Copy link

xtaixe commented Sep 13, 2023

@oubidar-Abderrahim any issue we can follow for aarch64 static images support?

@laszlof
Copy link

laszlof commented Jun 7, 2024

Throwing my hat in the ring here. Any update on static image support for aarch64?

@benname
Copy link

benname commented Jul 22, 2024

Hello!Any update on static image support for aarch64?
Hope there is a reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants