Package Details: webkit2gtk-docs 2.50.6-7

Git Clone URL: https://aur.archlinux.org/webkit2gtk.git (read-only, click to copy)
Package Base: webkit2gtk
Description: Web content engine for GTK (documentation)
Upstream URL: https://webkitgtk.org
Licenses: MIT, ISC, OFL-1.1, ICU, Apache-2.0, NCSA, BSD-3-Clause, BSD-2-Clause, BSL-1.0, MPL-1.1, MPL-2.0, GPL-2.0-only, LGPL-2.1-or-later, LGPL-2.1-only, BSD-2-Clause-Views, Apache-2.0 WITH LLVM-exception, AFL-2.0 OR GPL-2.0-or-later, BSD-Source-Code, bzip2-1.0.6, GPL-3.0-only WITH Autoconf-exception-3.0, GPL-3.0-or-later WITH Bison-exception-2.2, NCSA OR MIT, SunPro, Unicode-TOU
Submitter: andreas_baumann
Maintainer: andreas_baumann
Last Packager: andreas_baumann
Votes: 19
Popularity: 11.12
First Submitted: 2026-04-10 12:35 (UTC)
Last Updated: 2026-04-28 16:18 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

Smoerrebroed commented on 2026-04-25 19:19 (UTC)

This is insane! It took me 45 minutes (!) to build/install this package on a 16C/32T Ryzen 9 with 64 GB of RAM. Total RAM usage peaked at 63.5 GB - but luckily didn't crash. Regardless, I propose to put some of the build optimizations below as default.

Wild_Penguin commented on 2026-04-25 16:14 (UTC)

This will OOM also on a 32GiB system (well, probably. I stopped the process since the system was struggling).

semeion commented on 2026-04-25 16:10 (UTC) (edited on 2026-04-25 16:12 (UTC) by semeion)

[8478/8506] Linking CXX shared library lib/libwebkit2gtk-4.0.so.37.74.9
FAILED: [code=1] lib/libwebkit2gtk-4.0.so.37.74.9 
: && /usr/bin/clang++ -fPIC -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/mnemonic/.aur/webkit2gtk/src=/usr/src/debug/webkit2gtk -flto=auto -fcf-protection=none -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG  -shared -Wl,--no-undefined -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto -fuse-ld=lld -Wl,--gc-sections -Wl,--disable-new-dtags  -Wl,--version-script,/home/mnemonic/.aur/webkit2gtk/src/webkitgtk-2.50.6/Source/WebKit/webkitglib-symbols.map -Xlinker --dependency-file=Source/WebKit/CMakeFiles/WebKit.dir/link.d -Wl,-soname,libwebkit2gtk-4.0.so.37 -o lib/libwebkit2gtk-4.0.so.37.74.9 @CMakeFiles/WebKit.rsp && :
clang++: error: unable to execute command: Killed
clang++: error: linker command failed due to signal (use -v to see invocation)
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

fam007e commented on 2026-04-24 23:01 (UTC)

Only way I was able to installed it to my 11 GiB laptop is by changing PKGBUILD to:

diff --git a/PKGBUILD b/PKGBUILD
index e455839..a66236b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -123,6 +123,9 @@ validpgpkeys=(
   013A0127AC9C65B34FFA62526C1009B693975393 # Carlos Garcia Campos <cgarcia@igalia.com>
 )

+# Disable LTO to reduce peak RAM usage during linking
+options=(!lto)
+
 prepare() {
   cd webkitgtk-$pkgver
 }
@@ -157,7 +160,10 @@ build() {
   CFLAGS+=' -fcf-protection=none'
   CXXFLAGS+=' -fcf-protection=none'

-  cmake -S webkitgtk-$pkgver -B build -G Ninja "${cmake_options[@]}"
+  # Use Make instead of Ninja so that MAKEFLAGS (e.g. -j) is respected;
+  # this prevents OOM on memory-constrained systems and avoids passing
+  # GNU make flags to a CMake+Ninja invocation (which would break).
+  cmake -S webkitgtk-$pkgver -B build "${cmake_options[@]}"
   cmake --build build
 }


But man-oh-man... it took hours.

friciwolf commented on 2026-04-24 19:27 (UTC) (edited on 2026-04-24 19:29 (UTC) by friciwolf)

compilation does require some 40 gigs of RAM using all the 20 threads on my laptop at its peak.

no wonder people are complaining... this needs some tweaking @andreas_baumann!

PS: it took around 1h45min in performance mode.

patlefort commented on 2026-04-24 16:31 (UTC)

LTO take a very long time and also a lot of memory to complete for this package. However, it should be up to the user to decide if they want to use it or not. There isn't much that can be done, it will take a long time and memory regardless. Providing a precompiled -bin package is the only way for users with potato machines.

Another suggestion: Set CMAKE_BUILD_TYPE=None so that it respect user's choice of flags, else it will force -O3.

ninetailedtori commented on 2026-04-24 16:13 (UTC)

There's a memory leak in the build process. Don't attempt to install this till it's fixed.

slav commented on 2026-04-24 15:39 (UTC)

too much CPU, too much RAM, too much time to compile could you improve this please?

fam007e commented on 2026-04-24 14:44 (UTC)

Compile process gets timed out especially at javascript engine part... Also the RAM usage gets to brink severely. As it reaches my laptop setup 11 GiB and it loses out. Compiling shouldn't take that much memory real-estate and that intensive for webkit2gtk.