alire-project / GNAT-FSF-builds

Builds of the GNAT Ada compiler from FSF GCC releases
MIT License
32 stars 9 forks source link

`ar.exe` tries to load libdep.a (from lib\bfd-plugins) as a DLL and fails #25

Closed reznikmm closed 2 years ago

reznikmm commented 2 years ago

If I build

gprbuild -P langkit_support.gpr -p

on running ar.exe a error dialog appears with a message like

C:\alire\gnat_native_11.2.2_b741ebbc\lib\bfd-plugins\libdep.a is not a windows program and can't be run

When I press Ok button it works after all.

Files are:

end Langkit_Support;

reznikmm commented 2 years ago

Perhaps this is related.

Fabien-Chouteau commented 2 years ago

I also found this: https://github.com/msys2/MINGW-packages/blob/68b22c4a024bf434635441c6ce5ffc3e7cf8a220/mingw-w64-binutils/PKGBUILD#L134

Fabien-Chouteau commented 2 years ago

Fixed in #26

damaki commented 2 years ago

This problem is still present in gnat-11.2.0-4. I get the same error message dialog as described in the description, and I can see that libdep.a is still present in the installation at gnat_native_11.2.4_2f9c5d6d\lib\bfd-plugins\libdep.a. As a workaround I manually deleted this file and the error dialog goes away and my library is still built successfully.