public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: ada/6767: make gnatlib-shared fails on -laddr2line
@ 2002-07-11 15:56 Ludovic Brenta
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Brenta @ 2002-07-11 15:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR ada/6767; it has been noted by GNATS.

From: Ludovic Brenta <ludovic.brenta@insalien.org>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:  
Subject: Re: ada/6767: make gnatlib-shared fails on -laddr2line
Date: 12 Jul 2002 00:49:50 +0200

 I have found that the following change to gcc/ada/Makefile.in reduces
 but does not solve the problem.  This change consists in atatically
 linking libgnat.so against libiberty.a.  The patch below is done only
 on GNU/Linux on *86, perhaps it should also be done on other
 platforms.  With this change, I only get one undefined symbol and that
 is `convert_addresses'.
 
 It appears to me that old versions of gnat (3.11p being one) used to
 include a copy of binutils that had this function in libaddr2line.a;
 newer versions seem to not include binutils anymore, and the current
 binutils no longer have this library.
 
 --
 Ludo.
 
 *** Makefile.in.~1.21.10.4.~	Thu May  2 19:32:36 2002
 --- Makefile.in	Thu Jul 11 23:22:13 2002
 ***************
 *** 1170,1176 ****
     system.ads<5lsystem.ads
   
     MLIB_TGT=5lml-tgt
 !   MISCLIB=-laddr2line -lbfd
     THREADSLIB=-lpthread
     GNATLIB_SHARED=gnatlib-shared-dual
     GMEM_LIB=gmemlib
 --- 1170,1176 ----
     system.ads<5lsystem.ads
   
     MLIB_TGT=5lml-tgt
 !   MISCLIB=-liberty -lbfd
     THREADSLIB=-lpthread
     GNATLIB_SHARED=gnatlib-shared-dual
     GMEM_LIB=gmemlib
 
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ada/6767: make gnatlib-shared fails on -laddr2line
@ 2003-05-13 18:26 Ludovic Brenta
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Brenta @ 2003-05-13 18:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR ada/6767; it has been noted by GNATS.

From: Ludovic Brenta <ludovic.brenta@insalien.org>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: ada/6767: make gnatlib-shared fails on -laddr2line
Date: 13 May 2003 20:21:54 +0200

 I've managed to bootstrap 3.3 on another machine and the problem is
 gone.
 
 I traced the change to Makefile.in revision 1.22 (2002-03-08) when
 "ro" merged in changes from ACT.  Now, the GNAT libraries (either
 static or shared) no longer include the file g-trasym.o (package
 GNAT.Traceback.Symbolic), so the feature is unavailable, but "make
 gnatlib-shared" succeeds.
 
 There is still a message "ld: cannot find -laddr2line" when trying to
 link a program that uses GNAT.Traceback.Symbolic, but that is expected.
 
 --
 Ludovic Brenta.
 
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ada/6767: make gnatlib-shared fails on -laddr2line
@ 2003-05-11 12:36 Ludovic Brenta
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Brenta @ 2003-05-11 12:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR ada/6767; it has been noted by GNATS.

From: Ludovic Brenta <ludovic.brenta@insalien.org>
To: Dara Hazeghi <dhazeghi@yahoo.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: ada/6767: make gnatlib-shared fails on -laddr2line
Date: 11 May 2003 14:25:25 +0200

 The problem is still in gcc-3_2-branch; the symptoms are the same (I
 tried this morning after a fresh cvs update).
 
 I tried to reproduce it on gcc-3_3-branch too, but couldn't bootstrap
 because of an unrelated problem.  I'll file a separate problem report.
 
 Many GNU/Linux distributions now include gcc 3.2 with Ada support; the
 ones I've looked at (Red Hat >= 8, Debian sarge) have patches that
 disable symbolic traces of exceptions (see g-trasym.adb, g-trasym.ads
 under gcc/gcc/ada).  This is the only feature of gnatlib that requires
 libaddr2line.
 
 --
 Ludovic Brenta.
 
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ada/6767: make gnatlib-shared fails on -laddr2line
@ 2003-05-10 23:46 Dara Hazeghi
  0 siblings, 0 replies; 5+ messages in thread
From: Dara Hazeghi @ 2003-05-10 23:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR ada/6767; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, ludovic.brenta@insalien.org
Cc:  
Subject: Re: ada/6767: make gnatlib-shared fails on -laddr2line
Date: Sat, 10 May 2003 16:44:05 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=6767
 
 Hello,
 
 gcc 3.1 is now a bit outdated. Would it be possible to check whether  
 this problem still exists in more current versions of gcc (ie 3.2.3)?  
 Thanks,
 
 Dara
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* ada/6767: make gnatlib-shared fails on -laddr2line
@ 2002-05-22  6:46 ludovic.brenta
  0 siblings, 0 replies; 5+ messages in thread
From: ludovic.brenta @ 2002-05-22  6:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6767
>Category:       ada
>Synopsis:       make gnatlib-shared fails on -laddr2line
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 22 06:46:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ludovic Brenta
>Release:        gcc 3.1 (release)
>Organization:
>Environment:
Red Hat Linux 7.2, no patches.
Linux 2.4.7-10 #1 i686 unknown
gcc3-3.0.1-3 installed
gcc-2.96 not installedbinutils-2.11.90.0.8-9 has addr2line but no libaddr2line.{so,a}
>Description:
$ make CC=gcc3 CFLAGS=-O2 LIBCFLAGS=-O2 LIBCXXFLAGS='-O2 -fno-implicit-templates' GNATLIBCFLAGS=-O2 gnatlib-shared

....

make[4]: Leaving directory `/home/lbrenta/src/gcc-obj/gcc/ada'
rm -f rts/libgnat.so rts/libgnarl.so
cd rts; ../../xgcc -B../../ -shared -fPIC \
	-o libgnat-3.15a.so -Wl,-soname,libgnat-3.15a.so \
	a-caldel.o a-calend.o a-chahan.o a-charac.o a-chlat1.o a-colien.o a-colire.o a-comlin.o a-cwila1.o a-decima.o a-einuoc.o a-except.o a-exctra.o a-filico.o a-finali.o a-flteio.o a-fwteio.o a-inteio.o a-ioexce.o a-iwteio.o a-lfteio.o a-lfwtio.o a-liteio.o a-liwtio.o a-llftio.o a-llfwti.o a-llitio.o a-lliwti.o a-ncelfu.o a-nlcefu.o a-nlcoty.o a-nlelfu.o a-nllcef.o a-nllcty.o a-nllefu.o a-nscefu.o a-nscoty.o a-nselfu.o a-nucoty.o a-nuelfu.o a-nuflra.o a-numaux.o a-numeri.o a-sfteio.o a-sfwtio.o a-siteio.o a-siwtio.o a-ssicst.o a-ssitio.o a-ssiwti.o a-stmaco.o a-strbou.o a-stream.o a-strfix.o a-string.o a-strmap.o a-strsea.o a-strunb.o a-ststio.o a-stunau.o a-stwibo.o a-stwifi.o a-stwima.o a-stwise.o a-stwiun.o a-suteio.o a-swuwti.o a-swmwco.o a-tags.o a-teioed.o a-textio.o a-ticoau.o a-tideau.o a-tienau.o a-tiflau.o a-tigeau.o a-tiinau.o a-timoau.o a-tiocst.o a-titest.o a-witeio.o a-wtcoau.o a-wtcstr.o a-wtdeau.o a-wtedit.o a-wtenau.o a-wtflau.o a-wtgeau.o a-wtinau.o a-wtmoau.o a-wttest.o ada.o calendar.o g-awk.o g-busora.o g-calend.o g-casuti.o g-catiio.o g-cgi.o g-cgicoo.o g-cgideb.o g-comlin.o g-crc32.o g-curexc.o g-debuti.o g-debpoo.o g-diopit.o g-dirope.o g-except.o g-exctra.o g-expect.o g-flocon.o g-hesora.o g-htable.o g-io.o g-io_aux.o g-locfil.o g-moreex.o g-os_lib.o g-regexp.o g-regpat.o g-soccon.o g-socket.o g-socthi.o g-soliop.o g-souinf.o g-speche.o g-spipat.o g-spitbo.o g-sptabo.o g-sptain.o g-sptavs.o g-tasloc.o g-traceb.o g-trasym.o gnat.o i-c.o i-cexten.o i-cobol.o i-cpp.o i-cstrea.o i-cstrin.o i-fortra.o i-pacdec.o interfac.o ioexcept.o machcode.o s-addima.o s-arit64.o s-assert.o s-auxdec.o s-bitops.o s-chepoo.o s-crc32.o s-direio.o s-errrep.o s-except.o s-exctab.o s-exnflt.o s-exngen.o s-exnint.o s-exnlfl.o s-exnlin.o s-exnllf.o s-exnlli.o s-exnsfl.o s-exnsin.o s-exnssi.o s-expflt.o s-expgen.o s-expint.o s-explfl.o s-explin.o s-expllf.o s-explli.o s-expllu.o s-expmod.o s-expsfl.o s-expsin.o s-expssi.o s-expuns.o s-fatflt.o s-fatlfl.o s-fatllf.o s-fatsfl.o s-ficobl.o s-fileio.o s-finimp.o s-finroo.o s-fore.o s-imgbiu.o s-imgboo.o s-imgcha.o s-imgdec.o s-imgenu.o s-imgint.o s-imgllb.o s-imglld.o s-imglli.o s-imgllu.o s-imgllw.o s-imgrea.o s-imguns.o s-imgwch.o s-imgwiu.o s-io.o s-gloloc.o s-maccod.o s-mantis.o s-mastop.o s-osprim.o s-pack03.o s-pack05.o s-pack06.o s-pack07.o s-pack09.o s-pack10.o s-pack11.o s-pack12.o s-pack13.o s-pack14.o s-pack15.o s-pack17.o s-pack18.o s-pack19.o s-pack20.o s-pack21.o s-pack22.o s-pack23.o s-pack24.o s-pack25.o s-pack26.o s-pack27.o s-pack28.o s-pack29.o s-pack30.o s-pack31.o s-pack33.o s-pack34.o s-pack35.o s-pack36.o s-pack37.o s-pack38.o s-pack39.o s-pack40.o s-pack41.o s-pack42.o s-pack43.o s-pack44.o s-pack45.o s-pack46.o s-pack47.o s-pack48.o s-pack49.o s-pack50.o s-pack51.o s-pack52.o s-pack53.o s-pack54.o s-pack55.o s-pack56.o s-pack57.o s-pack58.o s-pack59.o s-pack60.o s-pack61.o s-pack62.o s-pack63.o s-parame.o s-parint.o s-pooglo.o s-pooloc.o s-poosiz.o s-powtab.o s-rpc.o s-scaval.o s-secsta.o s-sequio.o s-shasto.o s-sopco3.o s-sopco4.o s-sopco5.o s-stache.o s-stalib.o s-stoele.o s-stopoo.o s-stratt.o s-strops.o s-soflin.o s-memory.o s-traceb.o s-unstyp.o s-vaflop.o s-valboo.o s-valcha.o s-valdec.o s-valenu.o s-valint.o s-vallld.o s-vallli.o s-valllu.o s-valrea.o s-valuns.o s-valuti.o s-valwch.o s-vercon.o s-vmexta.o s-wchcnv.o s-wchcon.o s-wchjis.o s-wchstw.o s-wchwts.o s-widboo.o s-widcha.o s-widenu.o s-widlli.o s-widllu.o s-widwch.o s-wwdcha.o s-wwdenu.o s-wwdwch.o system.o text_io.o  adaint.o argv.o cio.o cstreams.o errno.o exit.o raise.o sysdep.o io-aux.o init.o cal.o final.o tracebak.o expect.o ../../prefix.o  -laddr2line -lbfd -lm
/usr/bin/ld: cannot find -laddr2line

I tried to remove libaddr2line from the MISCLIB variable and I can now compile the shared library. However, I cannot link hello world against it:

$ export CC=/opt/gcc-3.1/bin
$ $CC/gcc31 -c hello_world.adb
$ $CC/gnatbind -shared hello_world
$ $CC/gnatlink --GCC=$CC/gcc31 hello_world
/opt/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/adalib//libgnat.so: undefined reference to `xmalloc'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `objalloc_create'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `xstrerror'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `hex_init'
/opt/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/adalib//libgnat.so: undefined reference to `concat'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `htab_find_slot_with_hash'
/opt/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/adalib//libgnat.so: undefined reference to `xstrdup'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `_objalloc_alloc'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `_hex_value'
/opt/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/adalib//libgnat.so: undefined reference to `convert_addresses'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `htab_create'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `objalloc_free_block'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `objalloc_free'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `xexit'
/usr/lib/libbfd-2.11.90.0.8.so: undefined reference to `htab_delete'
collect2: ld returned 1 exit status
gnatlink: cannot call /opt/gcc-3.1/bin/gcc31

As a result, I am forced to link statically.
>How-To-Repeat:
$ cd ~/src/gcc-obj/gcc
$ make CC=gcc3 bootstrap gnatlib-shared
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="hello_world.adb"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="hello_world.adb"

d2l0aCBBZGEuVGV4dF9JbzsKcHJvY2VkdXJlIEhlbGxvX1dvcmxkIGlzCmJlZ2luCiAgIEFkYS5U
ZXh0X0lvLlB1dF9MaW5lKCJIZWxsbywgV29ybGQhIik7CmVuZCBIZWxsb19Xb3JsZDsK


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-13 18:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-11 15:56 ada/6767: make gnatlib-shared fails on -laddr2line Ludovic Brenta
  -- strict thread matches above, loose matches on Subject: below --
2003-05-13 18:26 Ludovic Brenta
2003-05-11 12:36 Ludovic Brenta
2003-05-10 23:46 Dara Hazeghi
2002-05-22  6:46 ludovic.brenta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).