Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904748 - net-libs/webkit-gtk-2.40.0-r600 - CMake will not be able to correctly generate this project.
Summary: net-libs/webkit-gtk-2.40.0-r600 - CMake will not be able to correctly generat...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on: 904749
Blocks:
  Show dependency tree
 
Reported: 2023-04-21 15:52 UTC by Toralf Förster
Modified: 2024-04-19 15:37 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.60 KB, text/plain)
2023-04-21 15:52 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,68.57 KB, text/plain)
2023-04-21 15:52 UTC, Toralf Förster
Details
environment (environment,158.46 KB, text/plain)
2023-04-21 15:52 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.16 KB, application/x-bzip)
2023-04-21 15:52 UTC, Toralf Förster
Details
net-libs:webkit-gtk-2.40.0-r600:20230421-152921.log (net-libs:webkit-gtk-2.40.0-r600:20230421-152921.log,5.94 KB, text/plain)
2023-04-21 15:52 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,38.73 KB, application/x-bzip)
2023-04-21 15:52 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 2023-04-21 15:52:14 UTC
    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"
Comment 1 Toralf Förster gentoo-dev 2023-04-21 15:52:15 UTC
Created attachment 860489 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-04-21 15:52:16 UTC
Created attachment 860490 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-04-21 15:52:17 UTC
Created attachment 860491 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-04-21 15:52:18 UTC
Created attachment 860492 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-04-21 15:52:19 UTC
Created attachment 860493 [details]
net-libs:webkit-gtk-2.40.0-r600:20230421-152921.log
Comment 6 Toralf Förster gentoo-dev 2023-04-21 15:52:20 UTC
Created attachment 860494 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-21 15:54:19 UTC
    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() {}'?
Comment 8 Toralf Förster gentoo-dev 2023-04-21 16:00:56 UTC
(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.
Comment 9 Toralf Förster gentoo-dev 2023-04-21 16:02:14 UTC
 # 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.
Comment 10 Toralf Förster gentoo-dev 2023-04-21 16:21:37 UTC
removing

-Wl,--no-keep-memory

or

 -Wl,-z,pack-relative-relocs

helps
Comment 11 hrnr 2024-04-19 15:37:58 UTC
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.