Hello,
There’s a known bug somewhere between GCC and GPRbuild: one one hand some Linux distros (ArchLinux and Ubuntu at least) configure GCC to automatically pass -pie
when linking, and on the other hand, for GPRbuild passes the -r
option to do a partial link when building standalone libraries in static mode (and Libadalang is a a standalone library).
Since -r
and -pie
are mutually incompatible, building Libadalang in static mode does not work on such distros. This is what I have documented in the libadalang-git package, and very likely why this package does not build LAL in static mode.
Now, if I understand correctly, ArchLinux packages should contain dynamically linked programs (to save disk space, avoid rebuilds on dependency update, …). So shouldn’t ada_language_server be built in dynamic mode, working around this static link issue?
If that helps, I’m also available on IRC (pmderodat@freenode, on #ada) :-)
Pinned Comments
charlie5 commented on 2023-07-09 16:45 (UTC)
This package is available in the Arch Ada Repository.
charlie5 commented on 2020-11-16 08:53 (UTC) (edited on 2020-11-16 08:55 (UTC) by charlie5)
If build hangs, please ensure you have more than 4Gig of RAM+Swap (8+ Gig is recommended).