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

Not a valid application error on windows #7904

Open
barche opened this issue Jan 4, 2024 · 5 comments
Open

Not a valid application error on windows #7904

barche opened this issue Jan 4, 2024 · 5 comments

Comments

@barche
Copy link
Contributor

barche commented Jan 4, 2024

On PR's #2339 and #7899 the executables or DLL for Windows result in "not a valid Win32 application" errors. The problem comes from the libgcc.a, libgcc_s.a and libmsvcrt.a that is placed in /workspace/destdir/lib by CompilerSupportLibraries_jll. I'm not sure under which circumstances it is triggered (it seems quite rare), but when this occurs removing these files solves the problem.

@sloede
Copy link
Contributor

sloede commented Jan 4, 2024

AFAICT, the location of the offending libraries depends on the Julia version. For the moment, it is

@vtjnash
Copy link
Member

vtjnash commented Feb 9, 2024

So this should be fixed for Julia >= 1.11 I think, since we now hide those .a files in subfolders

@giordano
Copy link
Member

I'm not entirely sure, but I believe

if [[ ${target} == *mingw* ]]; then
# Needed for https://github.com/JuliaLang/julia/issues/48081
export LDFLAGS="-L/opt/$target/$target/sys-root/lib"
was used to work around this problem. Maybe @blegat can confirm.

@odow
Copy link
Contributor

odow commented Mar 7, 2024

That doesn't appear to have worked around the issue because we're now hitting this:
jump-dev/SDPA.jl#57

@odow
Copy link
Contributor

odow commented Mar 8, 2024

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

No branches or pull requests

5 participants