Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917690 - dev-libs/cyrus-sasl-2.1.28-r4 fails to link with lld
Summary: dev-libs/cyrus-sasl-2.1.28-r4 fails to link with lld
Status: RESOLVED DUPLICATE of bug 887291
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-21 21:44 UTC by Chris Pritchard
Modified: 2023-11-21 21:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,315.72 KB, text/x-log)
2023-11-21 21:45 UTC, Chris Pritchard
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***