Created attachment 414534 [details]
I have seen many similar issue in bugzilla.But all of then are very old.
I have a Raspberry Pi and I want to build a cross-compiling toolchain for it using crossdev like following:
crossdev -S -v -t arm-hardfloat-linux-gnueabi --genv 'CFLAGS="-march=armv7-a -O2 -pipe -mfpu=vfpv3-d16 -mfloat-abi=hard"'
The command above is partly from Gentoo RaspberryPi wiki page. I have a Raspberry Pi 2 with model B, so I modified the -march=,-mfpu=.I think the old prefix variable definition maybe out of date so I view the help and use --genv to define the CFLAGS for gcc build as you can see in RaspberryPi wiki page.
I got an error "cannot compute suffix of object object files" and the error can reproduce always on my machine.
Created attachment 414536 [details]
crossdev gcc stage1 build log
Created attachment 414538 [details]
Before gcc stage1, the crossdev just build glibc-headers. And I can see a flood of error infomation but crossdev just continue to install like following:
#error unknown arm architecture
Is this related to the issue?
I also see the gcc-stage1 file and can find the "elf32-littlearm unknown" which leads to the build wrong.
What version of binutils-config is installed on your system? A saw the same error with binutils-config-5 due to bug 562460
(In reply to Alexander Tsoy from comment #4)
> What version of binutils-config is installed on your system? A saw the same
> error with binutils-config-5 due to bug 562460
Yes,it is binutils-config-5 and binutils-2.25.1-r1.
assuming this is bug 562460. you should:
- update binutils-config to latest
- reset the build, e.g. `crossdev -C target`
- try again
if it still fails, re-open with new logs
*** This bug has been marked as a duplicate of bug 562460 ***