2010-07-09 09:43:28 build error
Nikolay Chokoev (IRELAND)
Message: 91105
Hi,
I'm trying to build the uClinux with the 'new' toolchain, but I have an error:
bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I/usr/dlnx764/svn/uClinux-dist_w/user/usbutils/usbutils-0.81 -DDATADIR=\"/usr/share\" -DEMBED -D__uClinux__ -I/usr/dlnx764/svn/uClinux-dist_w -mcpu=bf527-0.2 -pipe -Wall -g -O2 -mcpu=bf527-0.2 -c -o lsusb-usbmisc.o `test -f 'usbmisc.c' || echo '/usr/dlnx764/svn/uClinux-dist_w/user/usbutils/usbutils-0.81/'`usbmisc.c
bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf527-0.2 -Wl,--as-needed -Wl,-elf2flt -mcpu=bf527-0.2 -o lsusb lsusb-lsusb.o lsusb-lsusb-t.o lsusb-names.o lsusb-devtree.o lsusb-usbmisc.o -lusb -lz
/opt/uClinux-toolchain/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.3.5/../../../../bfin-uclinux/bin/ld.real: final link failed: File truncated
collect2: ld returned 1 exit status
make[4]: *** [lsusb] Error 1
make[4]: Leaving directory `/usr/dlnx764/svn/uClinux-dist_w/user/usbutils/build-usbutils-0.81'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/dlnx764/svn/uClinux-dist_w/user/usbutils'
make[2]: *** [usbutils] Error 2
make[2]: Leaving directory `/usr/dlnx764/svn/uClinux-dist_w/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/dlnx764/svn/uClinux-dist_w/user'
make: *** [subdirs] Error 1
QuoteReplyEditDelete
2010-07-09 13:08:28 Re: build error
Robin Getz (UNITED STATES)
Message: 91110
Nikolay:
I was getting similar errors due to host issues on early versions of Ubuntu 10.x 64-bit. (They recently fixed some host 64-bit lib issues, and now things work OK - just "apt-get upgrade-dist").
Is this what you were using?
QuoteReplyEditDelete
2010-07-09 14:24:59 Re: build error
Nikolay Chokoev (IRELAND)
Message: 91113
Hi Robin,
Yes, I'm using RedHat EL4 64 bit. Probably this is the same issue...
QuoteReplyEditDelete
2010-07-09 17:17:20 Re: build error
Robin Getz (UNITED STATES)
Message: 91116
Nikolay:
Can you upgrade - or make sure you are using the latest? The problems I was having went away - so I never discovered exactly what the issue was -- but it is a host one - not a blackfin one.
-Robin
QuoteReplyEditDelete
2010-07-11 03:16:33 Re: build error
Nikolay Chokoev (IRELAND)
Message: 91135
Thanks Robin.
I'll try to upgrade.
QuoteReplyEditDelete
2010-07-14 16:12:41 Re: build error
Robin Getz (UNITED STATES)
Message: 91254
Nikolay:
Mike found a bug in binutils - and it seems to fix it for me...
Can you svn up on the toolchain, and give it a go?
Thanks
-Robin