msys2/MINGW-packages

GNAT fails to properly link when using shared/relocatable libraries

Closed this issue · 1 comments

Upfront apologies. I am not very well versed in the internals of GCC or GNAT and I don't know much about packages. I'm a casual/newbie user of msys2, which I mostly use for Ada development on Windows 10. While trying to build gtkada, I ran into an issue where it cannot properly link to GNAT when trying to build it as a relocatable library. I opened an issue with the gtkada repository and through some discussion and debugging with @steve-cs , @ArnaudCharlet, and others determined that the something in the installation of GNAT needs to be adjusted.

Please see this GtkAda issue for reference: AdaCore/gtkada#27

In particular, this comment by @steve-cs has a suggested patch:
AdaCore/gtkada#27 (comment)

I'm not sure exactly the best way to present this to you, so if opening an issue is inappropriate, I sincerely apologize. I don't know enough to make the change myself. And, additionally, I wasn't sure if you wanted a forum to discuss it. I'm hoping that @steve-cs and @ArnaudCharlet can provide any details you might need that I am unable to provide.

As a note, some older issues/discussions from this msys2 package repository are referenced in the gtkada issue discussion if that helps to provide any context.

My apologies, it appears someone made a pull request for this in a different spot. I didn't see earlier , but my apologies
#6178