Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869146 - dev-lisp/c2ffi-14.0.0.20220729:0: does not respect chosen LLVM (uses LLVM 15 for linking despite selecting LLVM 14) (init.cpp:(.text+<snip>): undefined reference to clang::CompilerInvocation::setLangDefaults(clan)
Summary: dev-lisp/c2ffi-14.0.0.20220729:0: does not respect chosen LLVM (uses LLVM 15 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Harald Judt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-08 07:07 UTC by Toralf Förster
Modified: 2022-10-12 23:36 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.58 KB, text/plain)
2022-09-08 07:07 UTC, Toralf Förster
Details
dev-lisp:c2ffi-14.0.0.20220729:20220907-232926.log (dev-lisp:c2ffi-14.0.0.20220729:20220907-232926.log,20.41 KB, text/plain)
2022-09-08 07:07 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,60.43 KB, application/x-bzip)
2022-09-08 07:07 UTC, Toralf Förster
Details
environment (environment,96.12 KB, text/plain)
2022-09-08 07:08 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,45.21 KB, application/x-bzip)
2022-09-08 07:08 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.86 KB, application/x-bzip)
2022-09-08 07:08 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.60 KB, application/x-bzip)
2022-09-08 07:08 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-08 07:07:55 UTC
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
Comment 1 Toralf Förster gentoo-dev 2022-09-08 07:07:57 UTC
Created attachment 803854 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-08 07:07:58 UTC
Created attachment 803857 [details]
dev-lisp:c2ffi-14.0.0.20220729:20220907-232926.log
Comment 3 Toralf Förster gentoo-dev 2022-09-08 07:07:59 UTC
Created attachment 803860 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-09-08 07:08:01 UTC
Created attachment 803863 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-08 07:08:02 UTC
Created attachment 803866 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-08 07:08:03 UTC
Created attachment 803869 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-08 07:08:04 UTC
Created attachment 803872 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-09 03:22:55 UTC
It's trying to link against LLVM 15 despite initially using LLVM 14.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-09 03:23:02 UTC
(In reply to Sam James from comment #8)
> It's trying to link against LLVM 15 despite initially using LLVM 14.

(reproduced on glibc)
Comment 10 Harald Judt 2022-10-11 20:58:51 UTC
Ok, I think setting LLVM_MAX_SLOT=14 fixes this.
Comment 11 Harald Judt 2022-10-11 21:06:36 UTC
Pull request: https://github.com/gentoo/gentoo/pull/27744
Comment 12 Larry the Git Cow gentoo-dev 2022-10-12 23:32:56 UTC
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(+)