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

binutils 2.41 still complains about libdep.a #88

Open
StephanTLavavej opened this issue Dec 15, 2021 · 5 comments
Open

binutils 2.41 still complains about libdep.a #88

StephanTLavavej opened this issue Dec 15, 2021 · 5 comments

Comments

@StephanTLavavej
Copy link
Owner

Two users have independently reported that building different projects (Lua, wxWidgets) fails with a dialog box complaining:

c:\mingw\lib\bfd-plugins\libdep.a is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000012f.

This appears to have been fixed upstream as https://sourceware.org/bugzilla/show_bug.cgi?id=27113 . However, I'm not 100% certain, because that bug and fix talks about libdep.dll.a. (The difference may be that I build the distro statically.)

It would be helpful to:

  • Get a minimal, self-contained repro (I don't want to try building Lua or wxWidgets)
  • Verify whether the trunk version of binutils makes this problem go away
  • If it doesn't, verify whether deleting libdep.a makes this problem go away (as I can easily add that to the build script)
@alexzyp
Copy link

alexzyp commented Mar 7, 2022

Minimal reproduction:

echo. > empty.c
gcc -c -o empty.o empty.c
ar -rc libempty.a empty.o

@StephanTLavavej
Copy link
Owner Author

binutils 2.38 has been released and contains the claimed fix, so I just need to build it.

@StephanTLavavej
Copy link
Owner Author

Still repros with binutils 2.41.

@StephanTLavavej StephanTLavavej changed the title binutils 2.37 complains about libdep.a binutils 2.41 still complains about libdep.a Feb 1, 2024
@ckormanyos
Copy link

ckormanyos commented Feb 6, 2024

Hi @StephanTLavavej I've been working around this for years. But sadly, do not know how to repair it. When I build GCC for embedded targets like arm, avr or others on MSys2, I need to actually delete the plugins folder. This is because the plugins load libdep.a and that program (regardless of how I build binutils) wants to load some DLLs dynamically.

I use your standalone MinGW EVN for building since your GCC is dependency-free, which is rare.

Unfortunatley, I have not yet found the place in source code where the program dynamically loads and remain still doing workarounds like this.

@StephanTLavavej
Copy link
Owner Author

This should be reported upstream to binutils.

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

3 participants