I have a runtime installed at this location:
$ ls -1 ${HOME:?}/bare_runtime
adainclude
adalib
I can build object files if I invoke GCC cross-compiler directly and specify the path to runtime:
$ ${HOME:?}/gcc-15.2.0_sparc64-unknown-elf/bin/sparc64-unknown-elf-gcc -c bit_ops.adb --RTS=${HOME:?}/bare_runtime
$ file bit_ops.o
bit_ops.o: ELF 64-bit MSB relocatable, SPARC V9, relaxed memory ordering, version 1 (SYSV), not stripped
However this does not work when using GPRbuild with a specific config file:
$ PATH="${HOME:?}/gcc-15.2.0_native/bin:${HOME:?}/gcc-15.2.0_sparc64-unknown-elf/bin" gprbuild -P libdsa.gpr --config=sparc64-unknown-elf.cgpr --RTS=${HOME:?}/bare_runtime
warning: runtimes are taken into account only in auto-configuration
libdsa.gpr:7:17: warning: there are no sources of language "C" in this project
Compile
[Ada] bit_ops.adb
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
gprbuild: *** compilation phase failed
I suspect the warning is telling me if I use --config= option, then --RTS= option is ignored. I tried setting for Runtime_Dir (“Ada”) use “<path_to_runtime>” in .cgpr file but that did not seem to help.
Any ideas how to tell GPRbuild where to find this runtime?