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: Inspirels Ada on cortex tutorial linker issue Date: Sat, 23 Jul 2016 07:57:22 +0100 Organization: A noiseless patient Spider Message-ID: References: <24d4ffc3-3915-4102-96ae-68d11d881443@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1cb8779fb08c1b31c8309afcb9b531dc"; logging-data="13545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19raejRvMqdgB3/S5+YrYAR4RfsShSSpfE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:KgRgxQNZ2hSz995i/hKZWlLSn4M= sha1:BalvfamPVdv+wfRyJ2eVaEpX5nE= Xref: news.eternal-september.org comp.lang.ada:31132 Date: 2016-07-23T07:57:22+01:00 List-Id: 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?