From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT GPL2016 on Ubuntu 15.04 and Debian 8 Date: Tue, 04 Oct 2016 12:24:20 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="e5f31545d127a6738a4229c67d648b1c"; logging-data="11889"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18aY+ZEwF7zu0pqXX1wsCO1TsAk0A8oTQs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:00eUvaKzbwRvyeO0oC+WclA9EQ0= sha1:bh/0VbBk9kLsNNQWsdeQNDsbbQs= Xref: news.eternal-september.org comp.lang.ada:31986 Date: 2016-10-04T12:24:20+01:00 List-Id: "M. Enzmann" writes: > I am using GNAT GPL2016 to compile the Ada Drivers Library and the > Embedded Runtimes from GitHub. > > I am a little puzzled about the results I get. I managed to compile > and run some of the examples on a STM32F4 Discovery board. So far, so > good. > > I do get however, a couple of error (?) messages at the end of the > compilation process, telling me, that arm-eabi-ar failed due a wrong > ELF-class (error message is in German, something like... > '/bin/arm-eabi-ar: //lib/bfd-plugins/liblto_plugin.so: > wrong ELF-Class ELFCLASS64' It looks to me as though I got this problem (Debian jessie): I've renamed lib/bfd-plugins to lib/bfd-plugins-xxx (so the compiler doesn't find it). > In the end the executables I get, when compiling the examples, show > two symbols annotated with '?' in nm, the symbols being > '__ccmdata_end' and '_ccmdata_start' This is the 64 K Core Coupled Memory[1]. I haven't checked the examples; maybe they put something there? My own code doesn't - arm-eabi-nm says $ arm-eabi-nm pcf8574a-stm32f4 | grep ccm 10000000 ? __ccmdata_end 0800b314 R __ccmdata_load 10000000 ? __ccmdata_start 00000000 A __ccmdata_words Since the syntax for the .data section is exactly the same, I'd guess the ? is because there's nothing in there. [1] http://sigalrm.blogspot.co.uk/2013/12/using-ccm-memory-on-stm32.html > I've been following Simon Wrights hint during installation of the > compiler: First I installed the cross-compiler, then the native > compiler. (The other way round gprbuild didn't find gcc for some > reason'. Not sure what's happening there, and I don't remember ever making that hint - rather the reverse!