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

Bug 875467

Summary: dev-python/rapidfuzz-2.11.1 - 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: Python Gentoo Team <python>
Status: CONFIRMED ---    
Severity: normal CC: base-system, kde, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-python:rapidfuzz-2.11.1:20221005-151730.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-05 18:13:40 UTC
[5/18] Linking CXX shared module src/rapidfuzz/utils_cpp.cpython-310-x86_64-linux-gnu.so
FAILED: src/rapidfuzz/utils_cpp.cpython-310-x86_64-linux-gnu.so 
: && /usr/lib/llvm/15/bin/clang++ -fPIC -pipe -march=native -fno-diagnostics-color -O2 -O3 -DNDEBUG -flto=thin  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -shared  -o src/rapidfuzz/utils_cpp.cpython-310-x86_64-linux-gnu.so src/rapidfuzz/CMakeFiles/utils_cpp.dir/utils_cpp.cxx.o src/rapidfuzz/CMakeFiles/utils_cpp.dir/utils.cpp.o   && :
/usr/bin/x86_64-pc-linux-gnu-ld: /usr/lib/llvm/15/bin/../lib64/LLVMgold.so: error loading plugin: /usr/lib/llvm/15/bin/../lib64/LLVMgold.so: cannot open shared object file: No such file or directory
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
[6/18] Building CXX object src/rapidfuzz/distance/CMakeFiles/_initialize_cpp.dir/_initialize_cpp.cxx.o
[7/18] Building CXX object src/rapidfuzz/CMakeFiles/process_cpp_impl.dir/process_cpp_impl.cxx.o

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20221005-092902

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

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:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 515042e469e0e3f564e5bf5e77ec1907dbb1b885
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Oct 5 14:48:36 2022 +0000

    2022-10-05 14:48:36 UTC

emerge -qpvO dev-python/rapidfuzz
[ebuild  N    ] dev-python/rapidfuzz-2.11.1  USE="-test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-10-05 18:13:40 UTC
Created attachment 821296 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-05 18:13:41 UTC
Created attachment 821299 [details]
dev-python:rapidfuzz-2.11.1:20221005-151730.log
Comment 3 Toralf Förster gentoo-dev 2022-10-05 18:13:43 UTC
Created attachment 821302 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-05 18:13:44 UTC
Created attachment 821305 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-05 18:13:45 UTC
Created attachment 821308 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-05 18:13:46 UTC
Created attachment 821311 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-05 18:13:47 UTC
Created attachment 821314 [details]
temp.tar.bz2
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-05 19:10:30 UTC
I can't figure out where these -flto=... flags are coming from.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-05 19:13:29 UTC
Ah, it's:

  set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)

I do wonder if we should be sterilizing that.