-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Periodic Linking Issue on Windows #3420
Comments
Hello @iamrecursion, |
Thanks. It's very annoying at the moment as it means that about half our builds fail. |
@iamrecursion Can you please make sure your are using the same version of |
They were both done with the same version, yes. Nothing in the project configuration changed between those two runs. |
@iamrecursion The existing success log does not show the exact linker output and it is not possible to check for the link options. It supposed we have some defaults of VC/sbt/graalvm changed and the required library is not in a path anymore |
My apologies. This is the real job that fails. "Build the PM distribution" was purely a debugging task for me. |
@iamrecursion |
@iamrecursion can you please remove the cache task from the build. It is the common place for unstable builds. For me the commenting out the cache step produced to success builds - not sure how stable it is in the real life. |
@dsame I've created a PR (linked above) where I disabled the caches for the main CI, let's see how it affects the issue - here's the first run (currently still in progress). However I don't understand how SBT caches could affect libraries which are MSVC components. |
@radeusgd at the moment i suspect the build uses mspdbcore.dll from the following paths (or does not use them but use some other paths):
and we have some 32/64 executable conflicts issues |
Is some further information needed then to help with the debugging? |
It seems that the build with cache off also fails with the same issue. Are the 32/64 executable conflicts due to GitHub env configuration or is it something that we can modify? Do you have a suggestion what can be done to fix this? |
@iamrecursion @radeusgd I confirmed the environment including the requested DLLs are the same for succeed and failed builds and having a little if any ability to control the upgrade process I see no way for further investigations. |
Unfortunately we can't easily downgrade our version of GraalVM. We've found a way to make it slightly more reliable as it seems to be related to memory pressure, but we really need runners with more memory it seems. |
@iamrecursion there is a way to increase swap size on Windows, it can help, I guess. |
That's super helpful. We'll try that and see if it helps. |
I mean you should have a new version of GraalVM native image in the build, this way you avoid its upgrad during the build |
Oh, this could have been phrased in a confusing way indeed. This message is not meant to say that we are rebuilding the Native Image tool itself. It is meant to say that we are rebuilding our application's native image, so essentially it just means that we are invoking the The Native Image component is only installed at the very beginning. |
Hi @iamrecursion, |
Giving my 2 cents on this issue. At the project I work on, we have a GitHub Workflow [1] that builds a Quarkus application using native-image. We were experiencing random linking failures on ~50% of our builds. After increasing the swap size following #2642 (comment), we didn't see any of those anymore and we've been building consistently ever since. (Thanks @miketimofeev!!) [1] https://github.com/kiegroup/kogito-tooling-go/blob/main/.github/workflows/release.yml |
So I am closing this issue, since increasing swap size did help here. |
It seems that on our CI incresing the swap size also did help, it is much more stable since then and most of the time we did not notice this linking failure after the change. Thanks for the help! |
compilation Following workaround mentioned here actions/runner-images#3420 (comment) to the `LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)` error fixes kaoto-archive#416 Signed-off-by: Aurélien Pupier <[email protected]>
compilation Following workaround mentioned here actions/runner-images#3420 (comment) to the `LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)` error fixes kaoto-archive#416 Signed-off-by: Aurélien Pupier <[email protected]>
compilation Following workaround mentioned here actions/runner-images#3420 (comment) to the `LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)` error fixes kaoto-archive#416 Signed-off-by: Aurélien Pupier <[email protected]>
compilation Following workaround mentioned here actions/runner-images#3420 (comment) to the `LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 1455)` error fixes #416 Signed-off-by: Aurélien Pupier <[email protected]>
Description
We have sporadic failures where the linker on windows will fail to find a required
dll
with the following linker error.This is a run where the failure occurred. This is a run where the failure did not occur, despite there being no material change to the actions workflow.
Area for Triage:
Question, Bug, or Feature?:
Bug
Virtual environments affected
Image version
Expected behavior
Successful linking.
Actual behavior
Linking fails randomly.
Repro steps
I can't provide a repro as this appears to happen at random.
The text was updated successfully, but these errors were encountered: