too long lines were shrinked: [13/13] : && /usr/bin/x86_64-gentoo-linux-musl-g++ -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -W -Wall -Wextra -Wno-unused-label -Wno-unused-parameter -Werror=return-type -Werror=unused-result -O3 -DNDEBUG -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 CMak FAILED: bin/c2ffi : && /usr/bin/x86_64-gentoo-linux-musl-g++ -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -W -Wall -Wextra -Wno-unused-label -Wno-unused-parameter -Werror=return-type -Werror=unused-result -O3 -DNDEBUG -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 CMakeFiles/c /usr/lib/gcc/x86_64-gentoo-linux-musl/12.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: CMakeFiles/c2ffi.dir/src/init.cpp.o: in function `c2ffi::init_ci(c2ffi::config&, clang::CompilerInstance&)': init.cpp:(.text+0x255c): undefined reference to `clang::CompilerInvocation::setLangDefaults(clang::LangOptions&, clang::InputKind, llvm::Triple const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::ch collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl_hardened-j4-20220904-151557 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-12.2.0 * clang/llvm (if any): clang version 15.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/15/bin /usr/lib/llvm/15 15.0.0 Python 3.10.7 Available Ruby profiles: (none found) php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit f2a6ee7d78e53226c87a1842b9c5c3e1e0e7a86c Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Sep 7 22:42:39 2022 +0000 2022-09-07 22:42:39 UTC emerge -qpvO dev-lisp/c2ffi [ebuild N ] dev-lisp/c2ffi-14.0.0.20220729
Created attachment 803854 [details] emerge-info.txt
Created attachment 803857 [details] dev-lisp:c2ffi-14.0.0.20220729:20220907-232926.log
Created attachment 803860 [details] emerge-history.txt.bz2
Created attachment 803863 [details] environment
Created attachment 803866 [details] etc.portage.tar.bz2
Created attachment 803869 [details] logs.tar.bz2
Created attachment 803872 [details] temp.tar.bz2
It's trying to link against LLVM 15 despite initially using LLVM 14.
(In reply to Sam James from comment #8) > It's trying to link against LLVM 15 despite initially using LLVM 14. (reproduced on glibc)
Ok, I think setting LLVM_MAX_SLOT=14 fixes this.
Pull request: https://github.com/gentoo/gentoo/pull/27744
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0aae82ef3a3ad5ae5151ba00e10f22edbca4440 commit f0aae82ef3a3ad5ae5151ba00e10f22edbca4440 Author: Harald Judt <h.judt@gmx.at> AuthorDate: 2022-10-11 21:00:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-12 23:23:10 +0000 dev-lisp/c2ffi: Set LLVM_MAX_SLOT (bug #869146) Bug: https://bugs.gentoo.org/869146 Signed-off-by: Harald Judt <h.judt@gmx.at> Signed-off-by: Sam James <sam@gentoo.org> dev-lisp/c2ffi/c2ffi-14.0.0.20220729.ebuild | 2 ++ 1 file changed, 2 insertions(+)