-
Notifications
You must be signed in to change notification settings - Fork 194
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
ar
archiver issue
#13
Comments
More info. I took a quick look to
When running the EDIT: I checked my previous MinGW version (MinGW-w64 32bit, GCC 8.2.0) and |
Ok, after a quick Google of the issue, found it here: msys2/MINGW-packages#7890 EDIT: Removing |
Curiously I could only reproduce the issue when Binutils binaries are run
directly from cmd.exe, which is why I've never seen this (I always use
BusyBox). It's unclear to me why the environment would change the
behavior.
Since libdep is a plugin, "libdep.a" is always wrong. At best it's
useless, and in this case it's causing malfunction when Binutils tries to
LoadLibrary it (hence the popup error from Windows rather than an error
printout from Binutils). The popup message is a symptom of a bad build
rather than the problem in itself.
I could delete it from the plugins directory after installation (to the
prefix) and go without. However, it seems there's no reason to use the
Binutils configuration options --enable-static and --disable-shared
anyway. These options are probably just broken and were never intended to
be used. Instead I probably want --with-static-standard-libraries. I'll
switch over and check that it works as intended.
|
@skeeto Thanks for the detailed explanation! For now, just removing it does the trick. Afaik it does not affect any other tool. |
These options are autoconf-generated and unused by Binutils. Not only do they not do anything useful, but worse, they cause incorrect Binutils builds. Plugins, which are supposed to be dynamically-loaded, instead become useless, static archives. Fixes #13.
When using
w64devkit
ar
tool, I got a popup about an errors onlibdep.a
. The popup appears twice and after accepting it both times the library is correctly archived and works on further compilations with no error. It happens with both i686 and x86_64 versions.Environment:
I'll try on a second computer to see if it happens the same.
The text was updated successfully, but these errors were encountered: