Closed power721 closed 1 year ago
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
static images are not supported in aarch64 yet, please remove both --libc=musl
and --static
from your arg list
I'll close this issue for now, if you still face the issue after removing the 2 flags above, please reopen
@oubidar-Abderrahim any issue we can follow for aarch64 static images support?
Throwing my hat in the ring here. Any update on static image support for aarch64?
Hello!Any update on static image support for aarch64? Hope there is a reply
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
Describe GraalVM and your environment:
More details