Skip to content

lto?: Wild runs out of file descriptors when building WebKit (wild: error: Failed to open input file "..." Caused by: No file descriptors available (os error 24)) #1572

@zyxhere

Description

@zyxhere

When compiling WebKitGTK with LTO and using wild as the linker, the final linking failed:

[8434/8453] : && /usr/lib/ccache/bin/x86_64-pc-linux-musl-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=native -O2 -pipe -flto=thin -fno-semantic-interposition -ftrivial-auto-var-init=zero -Werror=format-security -g1 \
-fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections  -shared -Wl,--no-undefined \
-Wl,-O1,--as-needed,--sort-common,--gc-sections,-Bsymbolic-functions,--build-id=sha1,-z,pack-relative-relocs,-z,relro,-z,now -flto -fuse-ld=wild \
-Wl,--gc-sections -Wl,--disable-new-dtags  -Wl,--version-script,/var/tmp/portage/net-libs/webkit-gtk-2.50.5-r600/work/webkitgtk-2.50.5/Source/WebKit/webkitglib-symbols.map \
-Wl,-soname,libwebkitgtk-6.0.so.4 -o lib/libwebkitgtk-6.0.so.4.13.8 @CMakeFiles/WebKit.rsp && :
ninja: job failed: : && /usr/lib/ccache/bin/x86_64-pc-linux-musl-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=native -O2 -pipe -flto=thin -fno-semantic-interposition -ftrivial-auto-var-init=zero -Werror=format-security -g1 \
-fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections  -shared -Wl,--no-undefined \
-Wl,-O1,--as-needed,--sort-common,--gc-sections,-Bsymbolic-functions,--build-id=sha1,-z,pack-relative-relocs,-z,relro,-z,now -flto -fuse-ld=wild \
-Wl,--gc-sections -Wl,--disable-new-dtags  -Wl,--version-script,/var/tmp/portage/net-libs/webkit-gtk-2.50.5-r600/work/webkitgtk-2.50.5/Source/WebKit/webkitglib-symbols.map \
-Wl,-soname,libwebkitgtk-6.0.so.4 -o lib/libwebkitgtk-6.0.so.4.13.8 @CMakeFiles/WebKit.rsp && :
WARNING: wild: -z pack-relative-relocs is not yet supported
wild: error: Failed to open input file `Source/WebCore/CMakeFiles/WebCore.dir/./page/scrolling/coordinated/ScrollingTreeFixedNodeCoordinated.cpp.o`
  Caused by:
    No file descriptors available (os error 24)

x86_64-pc-linux-musl-clang++: error: linker command failed with exit code 255 (use -v to see invocation)
ninja: subcommand failed

I thinks its a similar situation to the one with mold where it also ran out of file descriptors when using LTO with clang rui314/mold#1362
I'll check later (probably this weekend) if this happens without LTO and/or with GCC but WebKit takes forever to compile (and loads of RAM) so will take a while to test for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions