Summary: | net-libs/webkit-gtk-2.46.5-r600: Fails to build when mold is used with LTO - mold: fatal: failed: Too many open files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | zyxhere <zyx> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | zyx |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/rui314/mold/issues/1362 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 830404 |
Description
zyxhere
2025-01-21 15:20:49 UTC
Heres my clang env file used for webkit COMMON_FLAGS="-march=native -O3 -pipe -flto=thin" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}" LDFLAGS="${LDFLAGS} -fuse-ld=mold" # https://gitlab.com/rahilarious/gentoo-config/- # /blob/main/etc/portage/make.conf/hardware # Optimize GO and C intimate sessions CGO_CFLAGS="${COMMON_FLAGS}" CGO_CXXFLAGS="${COMMON_FLAGS}" CGO_FFLAGS="${COMMON_FLAGS}" CGO_LDFLAGS="${LDFLAGS}" RUSTFLAGS="${RUSTFLAGS} -C linker=clang -C linker-plugin-lto" CC="clang" CXX="clang++" #CPP="clang-cpp" AR="llvm-ar" NM="llvm-nm" RANLIB="llvm-ranlib" GOAMD64="v3" CGO_CFLAGS="${CFLAGS}" CGO_CXXFLAGS="${CXXFLAGS}" CGO_FFLAGS="${FFLAGS}" CGO_LDFLAGS="${LDFLAGS}" It's really a mold bug. This only happens with clang+lto+mold, with gcc its fine |