From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6469 invoked by alias); 22 May 2002 13:46:08 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 6433 invoked by uid 71); 22 May 2002 13:46:05 -0000 Resent-Date: 22 May 2002 13:46:05 -0000 Resent-Message-ID: <20020522134605.6431.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ludovic.brenta@insalien.org Received:(qmail 5510 invoked by uid 61); 22 May 2002 13:43:22 -0000 Message-Id:<20020522134321.5508.qmail@sources.redhat.com> Date: Wed, 22 May 2002 06:46:00 -0000 From: ludovic.brenta@insalien.org Reply-To: ludovic.brenta@insalien.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: ada/6767: make gnatlib-shared fails on -laddr2line X-SW-Source: 2002-05/txt/msg00676.txt.bz2 List-Id: >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