From: Simon Wright <simon@pushface.org>
Subject: Re: How to configure GNAT GPL on x86-64 Linux for ARM ELF development
Date: Wed, 23 May 2018 09:07:51 +0100
Date: 2018-05-23T09:07:51+01:00 [thread overview]
Message-ID: <ly7enuhk14.fsf@pushface.org> (raw)
In-Reply-To: pe327n$28f$1@dont-email.me
Adam Jensen <hanzer@riseup.net> writes:
> $ arm-eabi-gcc -c -mcpu=cortex-m4 -mthumb program.adb
> fatal error, run-time library not installed correctly
> cannot locate file system.ads
> compilation abandoned
> Any advice on how to proceed would be very much appreciated!
I think that the reason why the tutorial works and your attempt doesn't
is that the tutorial was developed on a Raspberry Pi, which is already
an ARM-based machine, so the native compiler actually has a runtime
(i.e. system.ads etc etc) visible to it.
Yours doesn't, and gcc-for-ada must see an RTS.
I managed to get a compilation using this over-the-top incantation:
$ gprbuild -c -u -f program.adb --target=arm-eabi --RTS=zfp-stm32f4
but a simpler (more memorable!) procedure might be to construct your own:
1. Create directories adainclude/, adalib/
2. Copy $prefix/arm-eabi/lib/gnat/zfp-stm32f4/gnat/system.ads to your
adainclude/ ($prefix is the root of your compiler installation, I
think ~/.local/gnat-arm)
The zfp- (zero footprint) runtime is the closest to what you need, and
the fact that the -stm32f4 part isn't quite right shouldn't matter; I
suspect that system.ads is the same for all the zfp runtimes.
Now,
$ arm-eabi-gcc --RTS=. -c program.adb
next prev parent reply other threads:[~2018-05-23 8:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-23 6:37 How to configure GNAT GPL on x86-64 Linux for ARM ELF development Adam Jensen
2018-05-23 8:07 ` Simon Wright [this message]
2018-05-24 7:35 ` Adam Jensen
2018-05-24 12:12 ` Brian Drummond
2018-05-25 4:45 ` Adam Jensen
2018-05-25 10:50 ` Brian Drummond
2018-05-26 5:06 ` Adam Jensen
2018-05-26 23:58 ` Brian Drummond
2018-05-27 8:26 ` Jacob Sparre Andersen
2018-05-30 19:52 ` JLotty
2018-05-30 21:58 ` Simon Wright
2018-06-03 23:21 ` JLotty
2018-06-04 7:11 ` Simon Wright
2018-05-25 3:29 ` Adam Jensen
2018-05-25 7:55 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox