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

Bug 905932

Summary: crossdev:arm-none-eabi fails with broken linker args
Product: Gentoo Linux Reporter: tigrmango
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: major CC: tigrmango
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/log/portage/cross-arm-none-eabi-info.log
/var/log/portage/cross-arm-none-eabi-binutils.log.xz
/var/tmp/portage/cross-arm-none-eabi/binutils-2.40-r4/temp/binutils-config.logs.tar.xz

Description tigrmango 2023-05-08 09:33:46 UTC
Something adds -Wl,--undefined-version to compiler arguments causing build to fail with cryptic messages

Reproducible: Always

Steps to Reproduce:
1.sudo crossdev --target arm-none-eabi -s4
2.wait
3.???
Actual Results:  
* error: binutils failed :(

Expected Results:  
compiled and installed the toolchain
Comment 1 tigrmango 2023-05-08 09:35:13 UTC
Created attachment 861302 [details]
/var/log/portage/cross-arm-none-eabi-info.log
Comment 2 tigrmango 2023-05-08 09:35:29 UTC
Created attachment 861303 [details]
/var/log/portage/cross-arm-none-eabi-binutils.log.xz
Comment 3 tigrmango 2023-05-08 09:36:46 UTC
Created attachment 861304 [details]
/var/tmp/portage/cross-arm-none-eabi/binutils-2.40-r4/temp/binutils-config.logs.tar.xz
Comment 4 James Le Cuirot gentoo-dev 2023-05-16 22:02:55 UTC
The ebuild seems to think your using lld (and your environment agrees) but it's actually using ld.bfd in practise. I'm not sure why that is.