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

LINK error when building image on window 2019 #3171

Closed
machaval opened this issue Jan 30, 2021 · 10 comments
Closed

LINK error when building image on window 2019 #3171

machaval opened this issue Jan 30, 2021 · 10 comments
Assignees

Comments

@machaval
Copy link

Describe the issue

I'm running the build of my project on window 2019. And it is failing with

LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)
	at com.oracle.svm.hosted.image.NativeBootImageViaCC.handleLinkerFailure(NativeBootImageViaCC.java:474)
	at com.oracle.svm.hosted.image.NativeBootImageViaCC.write(NativeBootImageViaCC.java:441)
	at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:685)
	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

This build use to run with older 20.x versions of graal. I've updated because I was looking for the serialization feature.

Please see the log in

https://github.com/mulesoft-labs/data-weave-native/runs/1795694523?check_suite_focus=true

@munishchouhan
Copy link
Contributor

@machaval thanks for reporting the issue
Please provide me the reproducer

@machaval
Copy link
Author

One update is that it works with 20.2 but not with 20.3 or 21. Cloning the repo with ./gradlew native-cli:nativeImage

@munishchouhan
Copy link
Contributor

@machaval thanks for the reproducer
I did try this on windows 10 and it works, so its specific to window 2019
I will check further and get back to you

@munishchouhan
Copy link
Contributor

@machaval I checked with our dev team, and its most probably a config issue
could you please confirm that using the same is not happening with other versions?

@munishchouhan
Copy link
Contributor

Closing the issue as user did not respond in the last month

@alexarchambault
Copy link

FWIW, I'm running into the same issue on GitHub Actions, on a windows-latest worker, using GraalVM 20.3.1.2:

LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)
	at com.oracle.svm.hosted.image.NativeBootImageViaCC.handleLinkerFailure(NativeBootImageViaCC.java:463)
	at com.oracle.svm.hosted.image.NativeBootImageViaCC.write(NativeBootImageViaCC.java:430)
	at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:678)
	at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:469)
	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

Running into that in a private code base, which should be made public in the coming days. I can come up with a repro by then.

@tiagobento
Copy link

@alexarchambault I'm having the exact same issue. Were you able to solve it?

@iamrecursion
Copy link
Contributor

I've reported this here as an issue with the runner virtual environment as I cannot reproduce it locally for the life of me.

@iamrecursion
Copy link
Contributor

We're still seeing this. We can't reproduce it locally but we've got it failing consistently on CI here.

@machaval
Copy link
Author

From what I was able to debug. The problem is an OutOfMemory problem. Looks like new version of compiler requires more memory and it fails with this error now. But the underlying problem is an OutOfMemory.

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

No branches or pull requests

5 participants