Cannot configure gtk-ada without errors with the testing of the compiler
Closed this issue · 1 comments
srb623 commented
This follows on from #42 where now I cannot even reach the build phase as the configuration process is failing when the script tries to do a test compile and this fails. The error message is as follows:
checking for gprbuild... /opt/ides/gnat/gprbuild/bin/gprbuild
checking for gprinstall... /opt/ides/gnat/gprbuild/bin/gprinstall
checking that your gnat compiler works with a simple example... /usr/bin/ld: b__conftest.o: warning: relocation against `__gl_task_dispatching_policy' in read-only section `.text'
/usr/bin/ld: b__conftest.o: relocation R_X86_64_PC32 against symbol `ada__text_io_E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gprbuild: link of conftest.adb failed
gprbuild: failed command was: /usr/bin/gcc-11 conftest.o b__conftest.o -L/home/xxxxx/Programs/Development-Tools/GNAT/gtk-ada/ -L/home/xxxxx/Programs/Development-Tools/GNAT/gtk-ada/ -L/usr/lib/gcc/x86_64-linux-gnu/11/adalib/ -shared -lgnat-11 -ldl -Wl,-rpath-link,/usr/lib/gcc/x86_64-linux-gnu/11//adalib -Wl,-z,origin,-rpath,$ORIGIN/:/usr/lib/gcc/x86_64-linux-gnu/11/adalib -o conftest
no
configure: error: /opt/ides/gnat/gprbuild/bin/gprbuild test failed at compile time! Check your configuration.
My version of gprbuild is:
GPRBUILD Pro 18.0w (19940713) (x86_64-linux-gnu)
Copyright (C) 2004-2016, AdaCore
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
and I have installed gnat 11.3 under Debian/testing. I cannot work out what I have done wrong as nothing has chagned with my configuration and yet I progress less than the previous time I tried to build.