![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.suse.com/show_bug.cgi?id=1115034
http://bugzilla.suse.com/show_bug.cgi?id=1115034#c7
--- Comment #7 from Tom de Vries
However, when we install gcc-PIE: ... $ sudo zypper install gcc-PIE ...
we get a gnatlink error instead: ... $ rm -f hello.ali hello.o hello ; gnatmake -v hello.adb -largs -v ... /usr/lib64/gcc/x86_64-suse-linux/8/adalib/libgnat.a(a-contai.o): relocation R_X86_64_32 against symbol `ada__containers__capacity_error' can not be used when making a PIE object; recompile with -fPIC ...
The compilation fails because gnatlink uses /usr/lib64/gcc/x86_64-suse-linux/8/adalib/libgnat.a instead of /usr/lib64/gcc/x86_64-suse-linux/8/adalib/libgnat_pic.a.
I've checked in ubuntu 18.04, which has PIE as default. There we still got libgnat.a and libgnat_pic.a, but libgnat.a was compiled with the default (i.e., -fPIE). So, gnatmake still selects libgnat.a, but that's not a problem. -- You are receiving this mail because: You are on the CC list for the bug.