-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failures in Fedora 41 x86_64 #2149
Comments
:thonk: The workaround isn't working for me. So far I've tried:
Not sure what else to try. |
I'm facing the same problem. The workaround doesn't work for me, either.
Exits with So, it looks like a failure on the dependency recipe. Maybe if you know a working previous version for the |
Following the steps above and appending |
A user on discord was able to get the build working with none of the above steps, and only diff --git a/Meta/CMake/vcpkg/generate_vcpkg_toolchain_variables.cmake b/Meta/CMake/vcpkg/generate_vcpkg_toolchain_variables.cmake
index a43a4493d6..caa2ee7a1e 100644
--- a/Meta/CMake/vcpkg/generate_vcpkg_toolchain_variables.cmake
+++ b/Meta/CMake/vcpkg/generate_vcpkg_toolchain_variables.cmake
@@ -8,4 +8,6 @@ if (NOT "${CMAKE_CXX_COMPILER}" STREQUAL "")
string(APPEND EXTRA_VCPKG_VARIABLES "set(ENV{CXX} ${CMAKE_CXX_COMPILER})\n")
endif()
+string(APPEND EXTRA_VCPKG_VARIABLES "set(ENV{LDFLAGS} -Wl,-z,noseparate-code)\n")
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/build-vcpkg-variables.cmake" "${EXTRA_VCPKG_VARIABLES}") edit: the patch here is now the steps in the top comment, I've edited it Looking at some upstream fedora issues, this linker flag was a suggested workaround from a binutils developer. A patched version of binutils to avoid the problem should be available in rawhide as the Though I'm not sure if they intend to backport that to 41, or still wait on the patchelf developers to make their tool work with the new default linker layout in fedora x86_64. |
That last fix works for me! 🎉 |
The patch in #2149 (comment) was still needed for me even with #2149 (comment) merged as part of #2799. |
Summary
Building on Fedora 41 on an x86_64 machine is currently running into a patchelf related build failure.
Reported upstream here at vcpkg: microsoft/vcpkg#41576
And here at nixos/patchelf: NixOS/patchelf#568
The issue can be worked around by the following steps:
rm -rf Build/vcpkg
rm -rf Build/release
(and any other Build/ directories)./Meta/ladybird.sh run
Operating system
Linux
Steps to reproduce
Expected behavior
Successful build
Actual behavior
A build failure similar to the following:
The text was updated successfully, but these errors were encountered: