Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 563024

Summary: cross-arm-hardfloat-linux-gnueabi/gcc: cannot compute suffix of object object files
Product: Gentoo Linux Reporter: Wallance <halyx>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexander
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: cross-arm-hardfloat-linux-gnueabi-info.log
crossdev gcc stage1 build log
gcc-config

Description Wallance 2015-10-14 00:09:31 UTC
Created attachment 414534 [details]
cross-arm-hardfloat-linux-gnueabi-info.log

Hello
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.
Comment 1 Wallance 2015-10-14 00:10:14 UTC
Created attachment 414536 [details]
crossdev gcc stage1 build log
Comment 2 Wallance 2015-10-14 00:10:57 UTC
Created attachment 414538 [details]
gcc-config
Comment 3 Wallance 2015-10-14 00:23:48 UTC
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.
Comment 4 Alexander Tsoy 2015-10-14 05:54:05 UTC
What version of binutils-config is installed on your system? A saw the same error with binutils-config-5 due to bug 562460
Comment 5 Wallance 2015-10-14 06:34:57 UTC
(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.
Comment 6 SpanKY gentoo-dev 2015-11-23 10:56:14 UTC
assuming this is bug 562460.  you should:
- sync
- 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 ***