Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887291 - dev-libs/cyrus-sasl-2.1.28: fails to build with LLD (wrong lib path for mysql)
Summary: dev-libs/cyrus-sasl-2.1.28: fails to build with LLD (wrong lib path for mysql)
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 917690 (view as bug list)
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2022-12-20 07:35 UTC by Xuefer
Modified: 2023-11-21 22:28 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,119.39 KB, text/plain)
2022-12-20 07:39 UTC, Xuefer
Details
emerge info (dev-libs-cyrus-sasl.info,11.15 KB, text/plain)
2022-12-20 07:39 UTC, Xuefer
Details
build.log with updated ebuild (new ebuild build.log,432.05 KB, text/x-log)
2023-11-21 22:28 UTC, Chris Pritchard
Details
new ebuild (cyrus-sasl-2.1.28-r4.ebuild,6.77 KB, application/vnd.gentoo.ebuild)
2023-11-21 22:28 UTC, Chris Pritchard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xuefer 2022-12-20 07:35:48 UTC
cyrus-sasl configure.ac is using hardcoded /usr/lib which violate the rule of gentoo lib path. in case x86_64 it's /usr/lib64 while /usr/lib is for 32bit

error output is generated by clang

possible relative bugs: #651488 #684394

Reproducible: Always

Actual Results:  
libtool: link: clang -shared  -fPIC -DPIC  .libs/sql.o .libs/sql_init.o  -Wl,--whole-archive ../common/.libs/libplugin_common.a -Wl,--no-whole-archive  -L/usr/lib -lmysqlclient -L/usr/lib64 -lsqlite3 -Wl,--as-needed -lresolv  -O2 -O2 -march=znver1 -flto=thin -fstack-protector-strong -Wl,-rpath -Wl,/usr/lib -Wl,-rpath -Wl,/usr/lib64 -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-O2 -flto=thin -fuse-ld=lld -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libsql.so.3 -o .libs/libsql.so.3.0.0
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11/../../../../lib64/crti.o is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/clang_rt.crtbegin-x86_64.o is incompatible with elf32-i386
ld.lld: error: .libs/sql.o is incompatible with elf32-i386
ld.lld: error: .libs/sql_init.o is incompatible with elf32-i386
ld.lld: error: ../common/.libs/libplugin_common.a(plugin_common.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib64/libmysqlclient.so is incompatible with elf32-i386
ld.lld: error: /usr/lib64/libsqlite3.so is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(absvdi2.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(absvsi2.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(absvti2.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(adddf3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addsf3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addvdi3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addvsi3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addvti3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(apple_versioning.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashldi3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashlti3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashrdi3.c.o) is incompatible with elf32-i386
ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashrti3.c.o) is incompatible with elf32-i386
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:696: libsql.la] Error 1
make[2]: *** Waiting for unfinished jobs....


Expected Results:  
all /usr/lib should be /usr/lib64
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-20 07:37:07 UTC
Please always include the full build.log and emerge --info.
Comment 2 Xuefer 2022-12-20 07:39:27 UTC
Created attachment 843919 [details]
build.log
Comment 3 Xuefer 2022-12-20 07:39:49 UTC
Created attachment 843921 [details]
emerge info
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-21 21:48:26 UTC
*** Bug 917690 has been marked as a duplicate of this bug. ***
Comment 5 Chris Pritchard 2023-11-21 22:28:07 UTC
Created attachment 875310 [details]
build.log with updated ebuild
Comment 6 Chris Pritchard 2023-11-21 22:28:55 UTC
Created attachment 875311 [details]
new ebuild

This seems to build fine when the line:
$(multilib_native_use_with mysql mysql "${EPREFIX}"/usr/)

is updated to:
$(multilib_native_use_with mysql mysql "${EPREFIX}/usr/$(get_libdir)")