Skip to content

Instantly share code, notes, and snippets.

@huahaiy
Created March 9, 2021 18:23
Show Gist options
  • Save huahaiy/2b2fb178fd030cedc104ac4a18157e2e to your computer and use it in GitHub Desktop.
Save huahaiy/2b2fb178fd030cedc104ac4a18157e2e to your computer and use it in GitHub Desktop.
github actions error
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
cd native
bash script/compile-main-win
shell: C:\windows\system32\cmd.EXE /D /E:ON /V:OFF /S /C "CALL "{0}""
env:
JAVA_HOME: C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64
JAVA_HOME_21.0.0.java11: C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64
GRAALVM_HOME: C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64
LEIN_HOME: C:\hostedtoolcache\windows\Leiningen\latest.0.0\x64
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Warning: Ignoring server-mode native-image argument --no-server.
Apply jar:file:///D:/a/datalevin/datalevin/native/target/main.uberjar.jar!/META-INF/native-image/org.graalvm.polyglot/native-image.properties
Apply jar:file:///D:/a/datalevin/datalevin/native/target/main.uberjar.jar!/META-INF/native-image/org.graalvm.home/native-image.properties
Executing [
'C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\bin\java.exe' \
-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=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 \
--add-exports=org.graalvm.truffle/com.oracle.truffle.api=ALL-UNNAMED \
--add-opens=jdk.internal.vm.compiler/org.graalvm.compiler.debug=ALL-UNNAMED \
--add-opens=jdk.internal.vm.compiler/org.graalvm.compiler.nodes=ALL-UNNAMED \
--add-opens=jdk.unsupported/sun.reflect=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.module=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED \
--add-opens=java.base/java.lang.ref=ALL-UNNAMED \
--add-opens=java.base/java.net=ALL-UNNAMED \
--add-opens=java.base/java.nio=ALL-UNNAMED \
--add-opens=java.base/java.nio.file=ALL-UNNAMED \
--add-opens=java.base/java.security=ALL-UNNAMED \
--add-opens=java.base/javax.crypto=ALL-UNNAMED \
--add-opens=java.base/java.util=ALL-UNNAMED \
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED \
--add-opens=java.base/sun.security.x509=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.logger=ALL-UNNAMED \
--add-opens=org.graalvm.sdk/org.graalvm.nativeimage.impl=ALL-UNNAMED \
--add-opens=org.graalvm.sdk/org.graalvm.polyglot=ALL-UNNAMED \
--add-opens=org.graalvm.truffle/com.oracle.truffle.polyglot=ALL-UNNAMED \
--add-opens=org.graalvm.truffle/com.oracle.truffle.api.impl=ALL-UNNAMED \
-XX:+UseJVMCINativeLibrary \
-Xss10m \
-Xms1g \
-Xmx6012577376 \
-Duser.country=US \
-Duser.language=en \
-Djava.awt.headless=true \
-Dorg.graalvm.version=21.0.0 \
-Dorg.graalvm.config= \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Xshare:off \
--module-path \
'C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\lib\truffle\truffle-api.jar' \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
-Dclojure.spec.skip-macros=true \
-Dclojure.compiler.direct-linking=true \
-Xmx8g \
'-javaagent:C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\lib\svm\builder\svm.jar' \
-cp \
'C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\lib\svm\builder\objectfile.jar;C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\lib\svm\builder\pointsto.jar;C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\lib\svm\builder\svm.jar' \
'com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus' \
-imagecp \
'C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\lib\svm\library-support.jar;D:\a\datalevin\datalevin\native\target\main.uberjar.jar' \
'-H:Path=D:\a\datalevin\datalevin\native' \
-H:+ReportExceptionStackTraces \
-H:ConfigurationFileDirectories=config \
-H:Log=registerResource:verbose \
-H:+PrintClassInitialization \
-H:ClassInitialization=:build_time \
-H:+ReportUnsupportedElementsAtRuntime \
-H:+AllowIncompleteClasspath \
-H:FallbackThreshold=0 \
-H:+DumpTargetInfo \
-H:Class=datalevin.main \
-H:ClassInitialization=org.graalvm.polyglot:build_time \
-H:Features=org.graalvm.home.HomeFinderFeature \
'-H:CLibraryPath=D:\a\datalevin\datalevin\native\src\c,C:\hostedtoolcache\windows\GraalVM\21.0.0-java11\x64\lib\svm\clibraries\windows-amd64' \
-H:Name=dtlv \
]
[dtlv:3328] classlist: 6,805.17 ms, 0.96 GB
[dtlv:3328] (cap): 10,790.31 ms, 0.96 GB
WARNING: Method java.lang.reflect.Method.canAccess(Object) not found.
[dtlv:3328] setup: 13,401.94 ms, 0.96 GB
# Building image for target platform: org.graalvm.nativeimage.Platform$WINDOWS_AMD64
# Using native toolchain:
# Name: C/C++ Optimizing Compiler (cl)
# Vendor: microsoft
# Version: 19.16.27045
# Target architecture: x64
# Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe
# Using CLibrary: com.oracle.svm.core.c.libc.NoLibC
Printing initializer configuration to D:\a\datalevin\datalevin\native\reports\initializer_configuration_20210308_012327.txt
Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to jdk.internal.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of org.lmdbjava.ByteBufferProxy$UnsafeProxy. Add a RecomputeFieldValue.FieldOffset manual substitution for org.lmdbjava.ByteBufferProxy$UnsafeProxy.ADDRESS_OFFSET. Detailed failure reason(s): The argument of Unsafe.objectFieldOffset(Field) is not a constant field.
Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to jdk.internal.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of org.lmdbjava.ByteBufferProxy$UnsafeProxy. Add a RecomputeFieldValue.FieldOffset manual substitution for org.lmdbjava.ByteBufferProxy$UnsafeProxy.CAPACITY_OFFSET. Detailed failure reason(s): The argument of Unsafe.objectFieldOffset(Field) is not a constant field.
[Use -Dgraal.LogFile=<path> to redirect Graal log output to a file.]
[thread:16] scope: ForkJoinPool-4-worker-3
[thread:16] scope: ForkJoinPool-4-worker-3.registerResource
ServiceLoaderFeature: registerResource: META-INF/services/java.nio.file.spi.FileSystemProvider
[thread:16] scope: ForkJoinPool-4-worker-3.registerResource
ServiceLoaderFeature: registerResource: META-INF/services/jdk.internal.logger.DefaultLoggerFinder
[thread:16] scope: ForkJoinPool-4-worker-3.registerResource
Resources have been added by ServiceLoaderFeature. Automatic registration can be disabled with -H:-UseServiceLoaderFeature
Printing initializer dependencies to D:\a\datalevin\datalevin\native\reports\initializer_dependencies_20210308_012624.dot
Printing 0 classes that are considered as safe for build-time initialization to D:\a\datalevin\datalevin\native\reports\safe_classes_20210308_012624.txt
Printing 11017 classes of type BUILD_TIME to D:\a\datalevin\datalevin\native\reports\build_time_classes_20210308_012624.txt
Printing 66 classes of type RERUN to D:\a\datalevin\datalevin\native\reports\rerun_classes_20210308_012624.txt
Printing 0 classes of type RUN_TIME to D:\a\datalevin\datalevin\native\reports\run_time_classes_20210308_012624.txt
[dtlv:3328] (clinit): 961.39 ms, 3.32 GB
Fatal error:java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: 'other' has different root
# Static libraries:
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:488)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:370)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:529)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:119)
at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:561)
Caused by: java.lang.IllegalArgumentException: 'other' has different root
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:404)
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:42)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at com.oracle.svm.hosted.VMFeature.afterAnalysis(VMFeature.java:92)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$9(NativeImageGenerator.java:761)
at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:70)
at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:761)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:563)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:476)
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
[dtlv:3328] analysis: 176,851.60 ms, 3.32 GB
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1
at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1676)
at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1426)
at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1387)
at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1374)
at com.oracle.svm.driver.NativeImage$JDK9Plus.main(NativeImage.java:1858)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment