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

Bug 875275

Summary: net-libs/libsrsirc-0.0.14-r1 - clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Emir Marincic <learath2>
Status: CONFIRMED ---    
Severity: normal CC: jy6x2b32pie9, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/36110
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
net-libs:libsrsirc-0.0.14-r1:20221005-060756.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-05 07:30:13 UTC
too long lines were shrinked:

/bin/sh ../libtool  --tag=CC   --mode=link clang  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o helloworld helloworld-helloworld.o ../libsrsirc/libsrsirc.la -lssl 
libtool: link: clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/icat icat-icat_core.o icat-icat_init.o icat-icat_misc.o icat-icat_serv.o icat-icat_user.o  ../logger
/bin/sh ../libtool  --tag=CC   --mode=link clang  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o iwat iwat-iwat.o ../libsrsirc/libsrsirc.la -lssl 
ld.lld: error: ../libsrsirc/.libs/libsrsirc.so: undefined reference to ERR_print_errors_fp [--no-allow-shlib-undefined]
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
libtool: link: clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/helloworld helloworld-helloworld.o  ../libsrsirc/.libs/libsrsirc.so -lssl
make[2]: *** [Makefile:417: icat] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20221004-190004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.2
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-17  system-vm

php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit c2ae3640d63924b2c84b48ec9492ec93259dbf48
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Oct 5 05:33:22 2022 +0000

    2022-10-05 05:33:21 UTC

emerge -qpvO net-libs/libsrsirc
[ebuild  N    ] net-libs/libsrsirc-0.0.14-r1  USE="ssl -static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-10-05 07:30:15 UTC
Created attachment 820717 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-05 07:30:16 UTC
Created attachment 820720 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-05 07:30:17 UTC
Created attachment 820723 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-05 07:30:18 UTC
Created attachment 820726 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-05 07:30:19 UTC
Created attachment 820729 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-05 07:30:20 UTC
Created attachment 820732 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-05 07:30:21 UTC
Created attachment 820735 [details]
net-libs:libsrsirc-0.0.14-r1:20221005-060756.log
Comment 8 Toralf Förster gentoo-dev 2022-10-05 07:30:22 UTC
Created attachment 820738 [details]
temp.tar.bz2
Comment 9 jy6x2b32pie9 2024-04-04 20:49:53 UTC
I can't reproduce it on clang-17 with upstream repository and their build instructions on same host and with same configuration parameters that cause error in ebuild.
So, issue for new release. https://github.com/fstd/libsrsirc/issues/6