Skip to content

"ar" on windows in cmd.exe throws a warning message about libdep.dll.a #376

Open
@abrodkin

Description

@abrodkin

In Windows' cmd.exe prompt run the following commands (inspired by msys2/MINGW-packages#7890 (comment)):

touch empty.c
arc-elf32-gcc -c -o empty.o empty.c
arc-elf32-ar -rc libempty.a empty.o

And see the following window pop-up:
image

Saying:

...\lib\bfd-plugins\libdep.dll.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.

Based on discussions in MinGW issue tracker here msys2/MINGW-packages#7890 that's by now a well-known problem, though nobody ever went that far to really figure out that's wrong with that BFD plugin, instead since it is an optional plugin people tend to just remove it from pre-built packages.

Some additional notes:

  1. The problem only happens in cmd.exe. In PowerShell or git shell all works normally
  2. It only happens with Binutils starting from version 2.26
  3. Dismissing the error message allows to proceed with project building

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions