Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878407 - net-dns/bind-tools-9.16.33: gcc+lld: configure: error: libidn2 requested, but not found
Summary: net-dns/bind-tools-9.16.33: gcc+lld: configure: error: libidn2 requested, but...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2022-10-26 21:56 UTC by Luke-Jr
Modified: 2023-01-13 13:47 UTC (History)
3 users (show)

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


Attachments
build log (build.log,15.08 KB, text/x-log)
2022-10-26 21:56 UTC, Luke-Jr
Details
config.log (config.log,378.11 KB, text/plain)
2022-10-26 21:56 UTC, Luke-Jr
Details
emerge --info (emerge--info.ishi,11.84 KB, text/plain)
2022-10-26 21:57 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2022-10-26 21:56:11 UTC
Created attachment 825539 [details]
build log

checking for idn2.h... yes
checking for library containing idn2_to_ascii_lz... no
configure: error: libidn2 requested, but not found

net-dns/libidn2-2.3.3[nls,static-libs,abi_x86_32,abi_x86_64] is installed.

configure:23318: checking for library containing idn2_to_ascii_lz
configure:23348: x86_64-pc-linux-gnu-gcc -o conftest -I/usr/include -march=x86-64 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=skylake -march=skylake -msgx -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mtune=skylake  -O2  -fno-reorder-blocks  -pipe  -ggdb3  -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection  -DDIG_SIGCHASE -pthread -I/usr/include  -L/usr/lib -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -L/usr/lib64 conftest.c     >&5
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64/Scrt1.o is incompatible with elf32-i386
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64/crti.o is incompatible with elf32-i386
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/crtbeginS.o is incompatible with elf32-i386
ld.lld: error: /var/tmp/portage/net-dns/bind-tools-9.16.33/temp/ccVfrOSM.o is incompatible with elf32-i386
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1 is incompatible with elf32-i386
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1 is incompatible with elf32-i386
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/crtendS.o is incompatible with elf32-i386
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64/crtn.o is incompatible with elf32-i386
collect2: error: ld returned 1 exit status

No idea what it's trying to do with elf32-i386...
Comment 1 Luke-Jr 2022-10-26 21:56:43 UTC
Created attachment 825541 [details]
config.log
Comment 2 Luke-Jr 2022-10-26 21:57:24 UTC
Created attachment 825543 [details]
emerge --info
Comment 3 Luke-Jr 2022-10-26 22:03:53 UTC
Somehow this is another case of gcc+lld :|
Comment 4 Ionen Wolkens gentoo-dev 2022-10-26 22:14:20 UTC
Yes.

>-L/usr/lib
typical issue when this is passed, lld doesn't disregard it and tries to use what it finds there

configure.ac does a lot of things like:
    LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
(== /usr/lib)

I recall bind/bind-tools having other issues in the past because of these.

Surprised there isn't already a bug open for lld? I don't see it anyway.