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

Bug 917690

Summary: dev-libs/cyrus-sasl-2.1.28-r4 fails to link with lld
Product: Gentoo Linux Reporter: Chris Pritchard <chris>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Chris Pritchard 2023-11-21 21:44:33 UTC
When installing dev-libs/cyrus-sasl on a system that uses clang+lld the package fails to build with a range of errors similar to:

ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/crti.o is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/17/bin/../../../../lib/clang/17/lib/linux/clang_rt.crtbegin-x86_64.o is incompatible with elf32-i386

This appears due to the build scripts injecting flags such as -Wl,-rpath -Wl,/usr/lib and -L/usr/lib into some of the commands.
Comment 1 Chris Pritchard 2023-11-21 21:45:04 UTC
Created attachment 875307 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-21 21:48:26 UTC

*** This bug has been marked as a duplicate of bug 887291 ***