2008-02-19 12:07:36 Linking problem: ld.real: BFD 2.17 assertion fail
Piggebu Piggebu (ANDORRA)
Message: 51288 Hi all
I coompiled a very recent svnn trunk with the compiler options "-O3 -ffast-math -mfast-fp" this worked to some extent (kernel compiles but booting sequence fails, see thread: https://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&forum_id=39&_forum_action=ForumMessageBrowse&thread_id=25939)
As the kernel compiles, the libusb modules are available. I am now trying to compile an application which uses libusb. The following error occurs when compiling:
../bfin-uclinux/bin/ld.real: BFD 2.17 assertion fail /usr/local/src/blackfin/svn/toolchain/trunk/binutils-2.17/bfd/elf32-bfin.c:5217
../bfin-uclinux/bin/ld.real: BFD 2.17 assertion fail /usr/local/src/blackfin/svn/toolchain/trunk/binutils-2.17/bfd/elf32-bfin.c:5217
..
..[repeating the above lines a few times....]
..
../bfin-uclinux/bin/ld.real: BFD 2.17 assertion fail /usr/local/src/blackfin/svn/toolchain/trunk/binutils-2.17/bfd/elflink.c:6263
../bfin-uclinux/bin/ld.real: libusbSRTester: hidden symbol `___init_array_end' in libusbSRTester is referenced by DSO
../bfin-uclinux/bin/ld.real: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [libusbSRTester] Error 1
Any ideas? Can I provide more information?
Thanks in advance for the help
regards, Piggebu
PS: copied: libusb.a, libusb.la, libusbpp.a, libusbpp.la, usb.h from ".../uclinux-dist/lib/libusb/build-libusb-0.1.12/.libs" and ".../uclinux-dist/lib/libusb/build-libusb-0.1.12" respectively to a separate folder and passed this folder to the compiler (with -L[path] and -I[path]) and to the linkter (with -Wl,-rpath,[path])
QuoteReplyEditDelete
2008-02-19 12:36:44 Re: Linking problem: ld.real: BFD 2.17 assertion fail
Mike Frysinger (UNITED STATES)
Message: 51291 you should not be copying files by hand ... libusb is automatically installed into the staging directory and you should only be using those files:
-L.../uclinux-dist/staging/usr/lib
-I.../uclinux-dist/staging/usr/include
please post the full error log (including the command that caused the failure)
bfin-uclinux toolchains should not be using shared objects
QuoteReplyEditDelete
2008-02-22 11:19:36 Re: Linking problem: ld.real: BFD 2.17 assertion fail
Piggebu Piggebu (ANDORRA)
Message: 51508 Dear Mike,
I tried your suggestion, however without a lot of success.
I decided to look first into the issue with the new image. (post https://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&forum_id=39&_forum_action=ForumMessageBrowse&thread_id=25939&feedback=Message%20replied.
and the follow-up
)
I will post here a full error log as soon as possible.
(If you are working on something you need the error log for, tell me, then I hurry up providing it :-))
Kind regards
Piggebu