View previous topic :: View next topic |
Author |
Message |
Nadhor n00b
Joined: 03 Feb 2003 Posts: 60 Location: Germany
|
Posted: Sat May 11, 2024 2:19 pm Post subject: [SOLVED] webkit-gtk fails to build - says gcc is broken |
|
|
Hello,
anyone ever seen such a message while trying to build webkit-gtk:
Code: | >>> Emerging (542 of 570) net-libs/webkit-gtk-2.44.1-r410::gentoo
* webkitgtk-2.44.1.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* Checking whether python3_12 is suitable ...
* dev-lang/python:3.12[xml(+)] ... [ ok ]
* Using python3.12 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking webkitgtk-2.44.1.tar.xz to /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work
>>> Source unpacked in /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work
>>> Preparing source in /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1 ...
* Source directory (CMAKE_USE_DIR): "/tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1"
* Build directory (BUILD_DIR): "/tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1_build"
* Disabling deprecation warnings ... [ ok ]
* Applying 2.44.1-branch-patchset.patch ... [ ok ]
* Applying 2.42.3-arm64-non-jumbo-fix-925621.patch ... [ ok ]
* Applying 2.44.1-non-unified-build-fixes.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1 ...
* Source directory (CMAKE_USE_DIR): "/tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1"
* Build directory (BUILD_DIR): "/tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1_build"
cmake -C /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DPython_EXECUTABLE=/usr/bin/python3.12 -DRUBY_EXECUTABLE=/usr/bin/ruby31 -DBWRAP_EXECUTABLE:FILEPATH=/usr/bin/bwrap -DDBUS_PROXY_EXECUTABLE:FILEPATH=/usr/bin/xdg-dbus-proxy -DPORT=GTK -DENABLE_API_TESTS=OFF -DENABLE_BUBBLEWRAP_SANDBOX=yes -DENABLE_GAMEPAD=no -DENABLE_MINIBROWSER=no -DENABLE_PDFJS=yes -DENABLE_GEOLOCATION=ON -DENABLE_SPELLCHECK=yes -DENABLE_UNIFIED_BUILDS=yes -DENABLE_VIDEO=yes -DUSE_GSTREAMER_WEBRTC=yes -DUSE_GSTREAMER_TRANSCODER=yes -DENABLE_WEB_CODECS=yes -DENABLE_WEBDRIVER=OFF -DENABLE_WEBGL=ON -DENABLE_WEB_AUDIO=yes -DUSE_AVIF=no -DENABLE_DOCUMENTATION=OFF -DENABLE_INTROSPECTION=yes -DENABLE_JOURNALD_LOG=no -DENABLE_QUARTZ_TARGET=no -DENABLE_WAYLAND_TARGET=yes -DENABLE_X11_TARGET=yes -DUSE_GBM=ON -DUSE_GTK4=OFF -DUSE_JPEGXL=no -DUSE_LCMS=yes -DUSE_LIBBACKTRACE=OFF -DUSE_LIBDRM=ON -DUSE_LIBHYPHEN=ON -DUSE_LIBSECRET=no -DUSE_SOUP2=OFF -DUSE_WOFF2=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1_build/gentoo_toolchain.cmake /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1
loading initial cache file /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/x86_64-pc-linux-gnu-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1_build/CMakeFiles/CMakeScratch/TryCompile-8v8itS'
Run Build Command(s): /usr/bin/ninja -v cmTC_84626
[1/2] /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -O2 -march=haswell -pipe -o CMakeFiles/cmTC_84626.dir/testCCompiler.c.o -c /tmp/portage/net-libs/webkit-gtk-2.44.1-r410/work/webkitgtk-2.44.1_build/CMakeFiles/CMakeScratch/TryCompile-8v8itS/testCCompiler.c
[2/2] : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -march=haswell -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--no-keep-memory CMakeFiles/cmTC_84626.dir/testCCompiler.c.o -o cmTC_84626 && :
FAILED: cmTC_84626
: && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -march=haswell -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--no-keep-memory CMakeFiles/cmTC_84626.dir/testCCompiler.c.o -o cmTC_84626 && :
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
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) |
I put emerge --info here: https://pastebin.com/0MGXFeD2
and the environment info here: https://pastebin.com/39KYCZz9
Output of: Code: | emerge -pqv '=net-libs/webkit-gtk-2.44.1-r410::gentoo' | is:
Code: | [ebuild U ] net-libs/webkit-gtk-2.44.1-r410 [2.42.4-r410] USE="X gstreamer introspection jumbo-build lcms pdf (seccomp) spell wayland (-aqua) -avif -examples -gamepad -jpegxl -keyring -systemd (-jpeg2k%*)" |
I already tried:
Quote: | emerge -ve webkit-gtk | (verbose/emptytree) but still no success.
Info I found is about cross-compiling, problems with toolchains or windows dll-hell. I am not trying to cross-compile, toolchain is standard - afaik - and there is no windows anywhere on this maschine.
Also, I tried different -O gcc-optimizations, (O1,O2 and O3) - none of them helped.
Any help resolving this would be appreciated.
Thanks and regards.
Last edited by Nadhor on Sat May 11, 2024 7:23 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Sat May 11, 2024 5:11 pm Post subject: |
|
|
Try to update binutils to latest stable version with eselect. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Nadhor n00b
Joined: 03 Feb 2003 Posts: 60 Location: Germany
|
Posted: Sat May 11, 2024 7:24 pm Post subject: |
|
|
That was the trick. Thanks. I'm sure it was written somewhere and I just overlooked it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|