bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/2469] New: assertion fails in BFD elflink.c when using --Wl.--as


From: f18m_cpp217828 at yahoo dot it
Subject: [Bug ld/2469] New: assertion fails in BFD elflink.c when using --Wl.--as-needed
Date: 19 Mar 2006 00:24:02 -0000

When calling:

g++ app_wxluacan_wxluacan.o app_wxluacan_cancom.o app_wxluacan_wxluacan_bind.o
app_wxluacan_cansim.o app_wxluacan_canlua.o -Wl,--as-needed -o ../bin/wxluacan
-L../lib -lwxlua_gtk2_wxlua-2.6 -lwxlua_gtk2_wxbind-2.6
-lwxlua_gtk2_wxluasocket-2.6 -lwxlua_gtk2_wxluadebug-2.6 -lwxlua_gtk2_lua-2.6
-lstedit -L/usr/local/lib -lpthread -lwx_gtk2u_stc-2.6 -lwx_gtk2u_xrc-2.6
-lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_baseu_net-2.6 -lwx_baseu_xml-2.6
-lwx_gtk2u_core-2.6 -lwx_baseu-2.6

I always get as output:

/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2324
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux assertion fail ../../bfd/elflink.c:2325
/usr/bin/ld: BFD 2.16.1 Debian GNU/Linux internal error, aborting at
../../bfd/elflink.c line 6419 in elf_link_output_extsym

/usr/bin/ld: Please report this bug.

collect2: ld returned 1 exit status



If I remove the -Wl,--as-needed option from command line, everything works just
fine.

I'm not sure if this is because of some corrupted object file or whatelse.
In any case those assertions are a bug, isn't it?

Note that all libraries given with -l and prefixed with wxlua_ are static while
all libraries given with -l and prefixed with wx_ are shared (.so).


Some info on my system:
uname -m = i686
uname -r = 2.6.12-10-386
uname -s = Linux
Distribution is Ubuntu 5.10.

address@hidden:~/work/wxLua$ ld --version
GNU ld version 2.16.1 Debian GNU/Linux

address@hidden:~/work/wxLua$ gcc --version
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

I can easily create a zipped archive containing the object files which give
problems, if you need (~ 7MB uncompressed).
Just let me know...

-- 
           Summary: assertion fails in BFD elflink.c when using --Wl.--as-
                    needed
           Product: binutils
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: f18m_cpp217828 at yahoo dot it
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=2469

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]