I've got it. Just removing all the gnatmake cruft and options
the GCC driver doesn't understand and invoking GCC as usual
works. Phew. It would be useful to update the GNAT Wiki with
this. I'll probably get most of it wrong but let me give it
a try.
On 8/14/20 3:53 PM, Martin Sebor wrote:
Could someone either point me to directions or explain how to
start the Ada front end in GDB? I've searched the GCC Wiki
but couldn't find anything useful and no matter what I do I get
errors, either:
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
When I do manage to set LD_LIBRARY_PATH to what I see it set
in gcc/testsuite/gnat/gnat.log and compile a program, trying
to invoke GDB on the front end fails with another error.
Thanks
Martin
Here's my invocation:
LD_LIBRARY_PATH=$BUILDROOT/gcc:$BUILDROOT/gcc/32::$BUILDROOT/gcc:$BUILDROOT/gcc/32:$BUILDROOT/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libsanitizer/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libvtv/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libssp/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libphobos/src/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libgomp/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libitm/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libatomic/.libs:$BUILDROOT/./gcc:$BUILDROOT/./prev-gcc:$BUILDROOT/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libsanitizer/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libvtv/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libssp/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libphobos/src/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libgomp/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libitm/.libs:$BUILDROOT/x86_64-pc-linux-gnu/libatomic/.libs:$BUILDROOT/./gcc:$BUILDROOT/./prev-gcc
$BUILDROOT/gcc/gnatmake --GCC=$BUILDROOT/gcc/xgcc
--GNATBIND=$BUILDROOT/gcc/gnatbind --GNATLINK=$BUILDROOT/gcc/gnatlink
-cargs -B$BUILDROOT/gcc -largs --GCC=$BUILDROOT/gcc/xgcc
-B$BUILDROOT/gcc -margs --RTS=$BUILDROOT/x86_64-pc-linux-gnu/./libada
-q -f $SRCROOT/gcc/testsuite/gnat.dg/array21.adb -c -v
-fdiagnostics-plain-output
GNATMAKE 11.0.0 20200814 (experimental)
Copyright (C) 1992-2020, Free Software Foundation, Inc.
xgcc: fatal error: cannot execute ‘-I-’: execvp: No such file or directory
compilation terminated.
End of compilation
gnatmake: "/build/gcc/gcc/testsuite/gnat.dg/array21.adb" compilation error