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.237.53.75 with SMTP id b11mr6662686qte.4.1469259249521; Sat, 23 Jul 2016 00:34:09 -0700 (PDT) X-Received: by 10.157.56.205 with SMTP id k13mr517558ote.10.1469259249479; Sat, 23 Jul 2016 00:34:09 -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!j37no4004861qta.0!news-out.google.com!d68ni3774ith.0!nntp.google.com!f6no3743812ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 23 Jul 2016 00:34:09 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:187:8100:ea06:c417:f44a:8b31:c749; posting-account=bO_2BwoAAACOSVlJSmplhh_hzrBSzyOY NNTP-Posting-Host: 2601:187:8100:ea06:c417:f44a:8b31:c749 References: <24d4ffc3-3915-4102-96ae-68d11d881443@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <240a0f13-0a34-475f-999f-ba7f47be069f@googlegroups.com> Subject: Re: Inspirels Ada on cortex tutorial linker issue From: Devin Injection-Date: Sat, 23 Jul 2016 07:34:09 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31133 Date: 2016-07-23T00:34:09-07:00 List-Id: On Saturday, July 23, 2016 at 2:57:22 AM UTC-4, Simon Wright wrote: > Devin writes: > > > I am trying to get my environment setup, and I am using an Orange pi > > pc running armbian as the OS. It is an arm based single board > > computer, so I should be able to use the compiler and linker tools > > natively, at least that is what I am understanding from the chapter of > > the tutorial. > > > > I am able to compile the program from the "First Program" chapter of > > the tutorial without errors, but when I attempt to link the program I > > get an error reading: > > > > program.o:(.ARM.exidx+0x0): undefined reference to '__aeabi_unwind_cpp_pr0' > > That's to do with exception handling. It seems that your armbian > compiler has inserted exception handling code that's not inserted by the > raspbian compiler. I'd expect some trace of this in the program.s file > described in the tutorial. > > When I compile (using -S to generate program.s) with an arm-eabi > cross-compiler on this Mac, I get something that's almost the same as > the tutorial. When I compile with the native compiler, aside from the > obvious difference that it's x86_64 code, there is exception handling > code in there. > > It's possible that this is because of different configuration options in > system.ads. Before we go too far down that route, can anyone report on > experience using raspbian/armbian? Thanks for the info. After looking closer, there are definitely differences in the output of my program.s file, so I think you may be on to something there.