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

Bug 889202

Summary: dev-libs/libtomcrypt: cross-compiling fails with wrong linker command
Product: Gentoo Linux Reporter: tgyt
Component: Current packagesAssignee: Sam James <sam>
Status: UNCONFIRMED ---    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=376643
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: aarch64-unknown-linux-gnu-emerge --info
aarch64-unknown-linux-gnu-emerge --info
armv7a-unknown-linux-gnueabihf-emerge --info
aarch64 build.log
armv7 build.log
Patch for libtomcrypt ebuild

Description tgyt 2022-12-31 16:57:24 UTC
Created attachment 846216 [details]
aarch64-unknown-linux-gnu-emerge --info

CBUILD="x86_64-pc-linux-gnu"

CHOST="aarch64-unknown-linux-gnu"
CHOST="armv7a-unknown-linux-gnueabihf"

For some reason after linking by targetcc hostcc is called.
Comment 1 tgyt 2022-12-31 16:59:43 UTC
Oops, I named armv7 emerge info as aarch's
Comment 2 tgyt 2022-12-31 17:01:41 UTC
Created attachment 846218 [details]
aarch64-unknown-linux-gnu-emerge --info
Comment 3 tgyt 2022-12-31 17:02:09 UTC
Created attachment 846220 [details]
armv7a-unknown-linux-gnueabihf-emerge --info
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-31 17:05:00 UTC
Please include the full build.log too.
Comment 5 tgyt 2022-12-31 17:05:00 UTC
Created attachment 846222 [details]
aarch64 build.log
Comment 6 tgyt 2022-12-31 17:05:39 UTC
Created attachment 846224 [details]
armv7 build.log
Comment 7 tgyt 2023-01-13 18:17:02 UTC
Upd: hostcc is called at shared library linking instead of targetcc
Comment 8 tgyt 2023-02-02 21:57:25 UTC
Created attachment 849734 [details, diff]
Patch for libtomcrypt ebuild

Same as #376643