https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121527

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Sam James from comment #7)
> (In reply to Richard Biener from comment #6)
> > I'll note sourcebuild.texi isn't up-to-date with the introduction of
> > acats-{2,3,4} and there's still lack of a way to only build/run a single
> > test.
> 
> As a workaround.. what I did was run `check-ada` once, and then:
> cd ~/bugs/gcc-bld/gcc/testsuite/ada/acats-426/tests/c3/c391002 # build
> directory
> gnatmake -I../../../../../ada/acats-4/support c391002 -f -O2
> ./c391002

That's with an installed ada from the build?  I have done the usual trick,
appending -I...gcc/ada/rts to the gnatmake command from the log and that
builds, but fails at link time:

/abuild/rguenther/obj2/gcc/testsuite/ada/acats-4/tests/c3/c391002>
/abuild/rguenther/obj2/gcc/gnatmake
--GNATBIND=/abuild/rguenther/obj2/gcc/gnatbind
--GNATLINK=/abuild/rguenther/obj2/gcc/gnatlink
-I/abuild/rguenther/obj2/gcc/ada/rts --GCC=/abuild/rguenther/obj2/gcc/xgcc
-B/abuild/rguenther/obj2/gcc/ -gnatws -O2 -gnat2012
-I/abuild/rguenther/obj2/gcc/testsuite/ada/acats-4/support c391002.adb -largs
--GCC=/abuild/rguenther/obj2/gcc/xgcc -B/abuild/rguenther/obj2/gcc/
...
/abuild/rguenther/obj2/gcc/gnatbind -I/abuild/rguenther/obj2/gcc/ada/rts
-I/abuild/rguenther/obj2/gcc/testsuite/ada/acats-4/support -x c391002.ali
/abuild/rguenther/obj2/gcc/gnatlink c391002.ali -O2
--GCC=/abuild/rguenther/obj2/gcc/xgcc -B/abuild/rguenther/obj2/gcc/
fatal error, run-time library not installed correctly
cannot locate file system.ads
raised TYPES.UNRECOVERABLE_ERROR : targparm.adb:168

gnatlink: INTERNAL ERROR. Please report
gnatmake: *** link failed.


I have obviously forgot the additional magic required here :/  (I tried
adding --RTS=.../x86_64-pc-linux-gnu/libada but that didn't help either).

So I'm waiting for Eric to build a nice gnat.dg testcase for me ;)

Reply via email to