-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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.36 breaks ar when running from command prompt #7890
Comments
What is your current working directory aka. |
It happens in any folder I run it ( I moved
|
Actually, just removing the |
I can't reproduce, this works
|
Can confirm. |
libdep is a new plugin that is only present in binutils 2.36 (not exists in binutils 2.35)
bfd-plugins folder also contains the lto plugin, so removing the entire folder may break lto I can confirm removing If I remove I guess if you try to run ar in command prompt, files in |
Good that you pointed that out for those that use lto =) We have a decent workaround, then, as it isn't likely that many use libdep yet. |
hmm cant reproduce either though after the upgrade i now get a lot of warnings about dllwrap being deprecated especially when building python packages. |
I confirm the issue. |
I don't have a bunch of Windows machines lying around, but the one I do have is a Windows 10 virtual machine with Windows 10 Enterprise version 20H2 build 19042.746. It's a fairly minimal install, and has the very latest MSYS64 updates. I can provide additional details as requested. |
libdep.a is still in lib\bfd-plugins folder for mingw-w64-x86_64-binutils-2.36.1-1.
|
Not sure if this needs to be fixed or just isn't useful on Windows. Fixes msys2#7890
Removed that plugin now. Sorry for the delay. |
Not sure if this needs to be fixed or just isn't useful on Windows. Fixes msys2#7890
Not sure if this needs to be fixed or just isn't useful on Windows. Fixes msys2#7890
FWIW that's an entry in Bintuils' bug-tracker - https://sourceware.org/bugzilla/show_bug.cgi?id=27113. |
And here you are - upstream fix (to be a part of the next 2.37 release): https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=22604fe675b25b3ffca56e44f2c0ff378e5c6104. |
Thanks |
Note: binutils v2.37 fixes msys2/MINGW-packages#7023 and msys2/MINGW-packages#7890.
When this plugin exists, it breaks the `ar` utility on Windows. See: msys2/MINGW-packages#7890
Just upgraded binutils. All uses of
ar
result in this message when running from command prompt:c:\msys64\mingw64\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.
Minimal reproduction:
Running the command from a git bash / msys 2prompt works. Running it from a cmd window gives the message. Running it in msys2 invoking
cmd /c 'ar -rc [...]'
works fine, and surprisingly also when invoking\msys64\usr\bin\bash -c "ar -rc [...]"
from the command promptDowngrading to binutils
2.35.1-3
resolves the issue. Both2.36-1
and2.36-3
exhibit this behaviour.The text was updated successfully, but these errors were encountered: