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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.68.6 with SMTP id o6mr1172003ita.27.1475594852970; Tue, 04 Oct 2016 08:27:32 -0700 (PDT) X-Received: by 10.157.39.131 with SMTP id c3mr279722otb.15.1475594852908; Tue, 04 Oct 2016 08:27:32 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!o19no287384ito.0!news-out.google.com!w143ni6504itb.0!nntp.google.com!l13no2212415itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 4 Oct 2016 08:27:32 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:7f:6f38:9801:4920:de81:4b31:68c9; posting-account=FZSaEQoAAAAXdVQbBo8KLQ8RHCBHvDzm NNTP-Posting-Host: 2003:7f:6f38:9801:4920:de81:4b31:68c9 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GNAT GPL2016 on Ubuntu 15.04 and Debian 8 From: "M. Enzmann" Injection-Date: Tue, 04 Oct 2016 15:27:32 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31992 Date: 2016-10-04T08:27:32-07:00 List-Id: Am Dienstag, 4. Oktober 2016 13:24:21 UTC+2 schrieb Simon Wright: > > 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). > I did a re-install of the cross-compiler, this time without the native compiler and .... the errors are gone, I can compile the run-time without any problems > > 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 Ah! Okay! There is a section .ccmdata in common-RAM.ld and common-ROM.ld and start-rom.S does some work there. I'll have to figure out what happens.. This is not really my cup of tea, but hey I usually tell my students, that learning is fun... > > 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! I rather thought you did, and it did work much better than the other way round ;-) . So, thanks a lot! Thanks for the input!