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-Thread: 103376,9962f18891db3ff7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeed1.ip.tiscali.net!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Using Gnat.Traceback.Symbolic with gcc-3.4.3 References: From: Ludovic Brenta Date: Sun, 06 Mar 2005 14:39:13 +0100 Message-ID: <87hdjo7v26.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:6DPpBiQt0RZsbTBAJL6ORtdJqyA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 06 Mar 2005 14:38:48 CET NNTP-Posting-Host: 83.134.241.69 X-Trace: 1110116328 dreader2.news.tiscali.nl 44076 83.134.241.69:35195 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:8753 Date: 2005-03-06T14:38:48+01:00 List-Id: (Bernd Trog) writes: > Hi, > whats the story about this addr2line problem? > > With gcc-3.4.3 I get: > > $ gnatmake -O3 -gnatf -gnatwu -gnato -funwind-tables \ > testexception.adb -g -f -largs -g -i -laddr2line -bargs -E > gcc -c -O3 -gnatf -gnatwu -gnato -funwind-tables -g testexception.adb > gnatbind -x testexception.ali > gnatlink testexception.ali -g -g -i -laddr2line > /usr/local/bin/ld: cannot find -laddr2line > > I'm using binutils-2.15 (on i686 Linux). > > How do I tell binutils to generate a 'libaddr2line.a' for me, that > works with gcc-3.4.3? libaddr2line.a is a library normally built from the binutils source distribution. GNAT relies on it for sumbolic traceback of exceptions. Unfortunately, I am not aware of any binary distribution of GNU/Linux that ships libaddr2line.a. I am not even sure that recent versions of binutils (as required by recent versions of GCC) support building libaddr2line.a. If you're interested, AdaCore's binary distribution of GNAT 3.15p does include this library (from binutils-2.9.1), and does support symbolic tracebacks. -- Ludovic Brenta.