ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:10 (project) ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_gnome_systemd-j4-20230420-101703 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): /usr/lib/llvm/16 16.0.2 Python 3.10.11 Available Ruby profiles: [1] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.69.0 [2] rust-1.69.0 * The following VMs are available for generation-2: 1) OpenJDK 17.0.6_p10 [openjdk-17] 2) OpenJDK 8.362_p09 [openjdk-8] *) Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17] 4) Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-8 [2] openjdk-17 [3] openjdk-bin-8 [4] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): go version go1.20.3 linux/amd64 HEAD of ::gentoo commit 625fd16a0fc1f4748a9abf159e103de65398daf2 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Apr 21 14:31:58 2023 +0000 2023-04-21 14:31:57 UTC emerge -qpvO net-libs/webkit-gtk [ebuild N ] net-libs/webkit-gtk-2.40.0-r600 USE="X examples gamepad gnome-keyring gstreamer introspection jpeg2k jumbo-build lcms pdf (seccomp) spell systemd wayland (-aqua) -avif -gles2-only"
Created attachment 860489 [details] emerge-info.txt
Created attachment 860490 [details] emerge-history.txt
Created attachment 860491 [details] environment
Created attachment 860492 [details] etc.portage.tar.bz2
Created attachment 860493 [details] net-libs:webkit-gtk-2.40.0-r600:20230421-152921.log
Created attachment 860494 [details] temp.tar.bz2
FAILED: cmTC_4e9ac : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--no-keep-memory CMakeFiles/cmTC_4e9ac.dir/testCCompiler.c.o -o cmTC_4e9ac && : collect2: fatal error: ld terminated with signal 11 [Segmentation fault] uh oh.. toralf, does ld --version work? what about /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--no-keep-memory /tmp/foo.c where /tmp/foo.c is 'int main() {}'?
(In reply to Sam James from comment #7) > FAILED: cmTC_4e9ac > : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native > -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs > -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--no-keep-memory > CMakeFiles/cmTC_4e9ac.dir/testCCompiler.c.o -o cmTC_4e9ac && : > collect2: fatal error: ld terminated with signal 11 [Segmentation fault] > > uh oh.. > > toralf, does ld --version work? what about /usr/bin/x86_64-pc-linux-gnu-gcc > -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed > -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 > -Wl,--no-keep-memory /tmp/foo.c where /tmp/foo.c is 'int main() {}'? 23-0-desktop-gnome-systemd-j4-20230420-101703 /var/tmp/tb # echo 'int main() {}' > /tmp/foo.c 23-0-desktop-gnome-systemd-j4-20230420-101703 /var/tmp/tb # /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--no-keep-memory /tmp/foo.c collect2: fatal error: ld terminated with signal 11 [Segmentation fault] compilation terminated.
# ld --version GNU ld (Gentoo 2.39 p5) 2.39.0 Copyright (C) 2022 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.
removing -Wl,--no-keep-memory or -Wl,-z,pack-relative-relocs helps
I had the same issue with webkit-gtk-2.44.1 and 2.44.1-r600. # emerge --info | grep LDFLAGS LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" I have successfully emerge it by adding 'filter-ldflags "-Wl,-z,pack-relative-relocs"' in src_configure() in ebuild.