I can successfully build fallback images for the NetRexx compiler on MacOS and Linux X86-64. These fulfil a need, so while I am studying building completely native executables, I will put these out.
On 64-bit Windows 10 this fails in the following way: (I verified the working of the compiler with a c program and the working of NetRexx itself on the GraalVM installation)
C:\Users\rvjansen\netrexx-code>native-image -cp build/lib/NetRexxC.jar org.netrexx.process.NetRexxC -H:+ReportExceptionStackTraces
[org.netrexx.process.netrexxc:5676] classlist: 6,648.57 ms
[org.netrexx.process.netrexxc:5676] (cap): 1,482.91 ms
[org.netrexx.process.netrexxc:5676] setup: 2,303.88 ms
Error: Error compiling query code (in C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp). Compiler command CL C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp /FeC:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.exe output included error: [Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86, Copyright (C) Microsoft Corporation. All rights reserved., ]
com.oracle.svm.core.util.UserError$UserException: Error compiling query code (in C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp). Compiler command CL C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp /FeC:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.exe output included error: [Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86, Copyright (C) Microsoft Corporation. All rights reserved., ]
at com.oracle.svm.core.util.UserError.abort(UserError.java:114)
at com.oracle.svm.hosted.c.NativeLibraries.reportErrors(NativeLibraries.java:218)
at com.oracle.svm.hosted.NativeImageGenerator.processNativeLibraryImports(NativeImageGenerator.java:1518)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeLibraries(NativeImageGenerator.java:1006)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:835)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:528)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:445)
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Error: Image build request failed with exit status 1
Can someone point me in the right direction?
Many thanks in advance.
I can successfully build fallback images for the NetRexx compiler on MacOS and Linux X86-64. These fulfil a need, so while I am studying building completely native executables, I will put these out.
On 64-bit Windows 10 this fails in the following way: (I verified the working of the compiler with a c program and the working of NetRexx itself on the GraalVM installation)
C:\Users\rvjansen\netrexx-code>native-image -cp build/lib/NetRexxC.jar org.netrexx.process.NetRexxC -H:+ReportExceptionStackTraces
[org.netrexx.process.netrexxc:5676] classlist: 6,648.57 ms
[org.netrexx.process.netrexxc:5676] (cap): 1,482.91 ms
[org.netrexx.process.netrexxc:5676] setup: 2,303.88 ms
Error: Error compiling query code (in C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp). Compiler command CL C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp /FeC:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.exe output included error: [Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86, Copyright (C) Microsoft Corporation. All rights reserved., ]
com.oracle.svm.core.util.UserError$UserException: Error compiling query code (in C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp). Compiler command CL C:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.cpp /FeC:\Users\rvjansen\AppData\Local\Temp\SVM-5060830253155072368\BuiltinDirectives.exe output included error: [Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86, Copyright (C) Microsoft Corporation. All rights reserved., ]
at com.oracle.svm.core.util.UserError.abort(UserError.java:114)
at com.oracle.svm.hosted.c.NativeLibraries.reportErrors(NativeLibraries.java:218)
at com.oracle.svm.hosted.NativeImageGenerator.processNativeLibraryImports(NativeImageGenerator.java:1518)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeLibraries(NativeImageGenerator.java:1006)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:835)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:528)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:445)
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Error: Image build request failed with exit status 1
Can someone point me in the right direction?
Many thanks in advance.