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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2765ecafd1ac631a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-11 14:41:34 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!skynet.be!skynet.be!skynet.be!skynet.be!louie!tlk!not-for-mail Sender: lbrenta@lbrenta Newsgroups: comp.lang.ada Subject: Re: gnatlink error on Debian Woody References: <3FB10787.8F67E975@konad.de> From: Ludovic Brenta User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Date: 11 Nov 2003 23:41:33 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 81.241.16.249 X-Trace: 1068590493 reader0.news.skynet.be 2251 81.241.16.249:47329 X-Complaints-To: usenet-abuse@skynet.be Xref: archiver1.google.com comp.lang.ada:2383 Date: 2003-11-11T23:41:33+01:00 List-Id: Preben Randhol writes: > On 2003-11-11, Frank Piron wrote: > > > > Finally i detected the cause of the problem. > > I used - like you - the gnat.traceback.symbolic package. > > This package contains the linker pragma "-laddr2line" in > > file g-trasym.adb of the Debian - Gnat distribution. > > Will it work if you remove the > > pragma Linker_Options ("-laddr2line"); > > or will gnat.traceback.symbolic break? > > Preben It will break. Unfortunately, symbolic tracebacks are a recurring issue with GNAT. The binary distribution from ACT contains a libaddr2line built from an old version of GNU binutils. Very few GNU/Linux distributions, if any, include libaddr2line. This is actually not a problem with GNAT itself but with recent versions of binutils. I've tried GNAT for several distributions and never found one that did support symbolic tracabacks. I myself had to give up on the issue when packaging GNAT 3.15p for Debian. It is an annoyance to not have symbolic tracebacks, but not a major loss of functionality. You can always run addr2line manually on non-symbolic tracebacks or run your program under GDB to achieve the same effect. Besides, proper Ada programs do not raise exceptions anyway, do they? :) As I said earlier, if the OP links their program with libaddr2line, they must then distribute it with the resulting executable. If the program is non-free, this might be a problem because the GNU binutils are under GPL, not LGPL. -- Ludovic Brenta.