LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
21.67k stars 957 forks source link

Lagom: build with `-Dpackage=LagomTools -DLAGOM_TOOLS_ONLY=ON` is broken #1314

Closed Kamillaova closed 1 month ago

Kamillaova commented 1 month ago

Building ladybird with -Dpackage=LagomTools -DLAGOM_TOOLS_ONLY=ON fails due to LibWeb headers not found. Without these arguments, the build proceeds correctly.

Build log:

ladybird> building '/nix/store/xk8f9kca153j2yqvszf59fip4wq1pvba-ladybird-0-unstable-2024-08-12.drv'
ladybird> Running phase: qtPreHook
ladybird> Running phase: unpackPhase
ladybird> unpacking source archive /nix/store/mckaljvhrb8swsfbsmak81nhf90q62k7-source
ladybird> source root is source
ladybird> Running phase: patchPhase
ladybird> Running phase: updateAutotoolsGnuConfigScriptsPhase
ladybird> Running phase: configurePhase
ladybird> locale_version = "45.0.0"
ladybird> tzdb_version = "2024a"
ladybird> set(CACERT_VERSION "2023-12-12")
ladybird> fixing cmake files...
ladybird> cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/share/doc/ladybird -DCMAKE_INSTALL_INFODIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/include -DCMAKE_INSTALL_SBINDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/strip -DCMAKE_RANLIB=/nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/ranlib -DCMAKE_AR=/nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/kpgdgkn0lydzfydk224wsa2fl3f26m89-ladybird-0-unstable-2024-08-12 -DSERENITY_CACHE_DIR=Caches -DENABLE_NETWORK_DOWNLOADS=OFF -DCMAKE_INSTALL_LIBEXECDIR=libexec -Dpackage=LagomTools -DLAGOM_TOOLS_ONLY=ON
ladybird> -- The C compiler identification is GNU 13.3.0
ladybird> -- The CXX compiler identification is GNU 13.3.0
ladybird> -- Detecting C compiler ABI info
ladybird> -- Detecting C compiler ABI info - done
ladybird> -- Check for working C compiler: /nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/gcc - skipped
ladybird> -- Detecting C compile features
ladybird> -- Detecting C compile features - done
ladybird> -- Detecting CXX compiler ABI info
ladybird> -- Detecting CXX compiler ABI info - done
ladybird> -- Check for working CXX compiler: /nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/g++ - skipped
ladybird> -- Detecting CXX compile features
ladybird> -- Detecting CXX compile features - done
ladybird> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
ladybird> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
ladybird> -- Found Threads: TRUE
ladybird> -- Skipping download of https://curl.se/ca/cacert-2023-12-12.pem, expecting it to have been downloaded to /build/source/build/Caches/CACERT
ladybird> -- Performing Test LAGOM_LINKER_SUPPORTS_LINKER:--gdb-index
ladybird> -- Performing Test LAGOM_LINKER_SUPPORTS_LINKER:--gdb-index - Failed
ladybird> -- Performing Test LAGOM_LINKER_SUPPORTS_LINKER:-Bsymbolic-non-weak-functions
ladybird> -- Performing Test LAGOM_LINKER_SUPPORTS_LINKER:-Bsymbolic-non-weak-functions - Failed
ladybird> -- Looking for pulse/pulseaudio.h
ladybird> -- Looking for pulse/pulseaudio.h - not found
ladybird> -- Looking for backtrace
ladybird> -- Looking for backtrace - found
ladybird> -- backtrace facility detected in default set of libraries
ladybird> -- Found Backtrace: /nix/store/2gvcc8i7sfm4375syj2grfl07ind3y09-glibc-2.39-52-dev/include
ladybird> -- Performing Test HAVE_STDATOMIC
ladybird> -- Performing Test HAVE_STDATOMIC - Success
ladybird> -- Found WrapAtomic: TRUE
ladybird> -- Found OpenGL: /nix/store/2wbals17nv0h12cczfnfxvsr8d119qmy-libglvnd-1.7.0/lib/libOpenGL.so
ladybird> -- Found WrapOpenGL: TRUE
ladybird> -- Found XKB: /nix/store/rdlk0njapz44wz1ar9i5ad0x16cyh6df-libxkbcommon-1.7.0/lib/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0")
ladybird> -- Found WrapVulkanHeaders: /nix/store/7dzm3k6jf022hacigfngd9vlbnnzs1ab-vulkan-headers-1.3.283.0/include
ladybird> -- Found Fontconfig: /nix/store/g7jqqz8ly2cryd825bg3z48hz0vqc3rm-fontconfig-2.15.0-lib/lib/libfontconfig.so (found version "2.15.0")
ladybird> -- Found Python3: /nix/store/ajjwc8k8sk3ksrl3dq4fsg83m1j8n8s3-python3-3.12.5/bin/python3.12 (found version "3.12.5") found components: Interpreter
ladybird> -- Configuring done (2.0s)
ladybird> -- Generating done (0.1s)
ladybird> CMake Warning:
ladybird>   Manually-specified variables were not used by the project:
ladybird>
ladybird>     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
ladybird>     CMAKE_POLICY_DEFAULT_CMP0025
ladybird>
ladybird>
ladybird> -- Build files have been written to: /build/source/build
ladybird> cmake: enabled parallel building
ladybird> cmake: enabled parallel installing
ladybird> Running phase: buildPhase
ladybird> build flags: -j8
ladybird> [1/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/DOSPackedTime.cpp.o
ladybird> [2/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/ConstrainedStream.cpp.o
ladybird> [3/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/CountingStream.cpp.o
ladybird> [4/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Assertions.cpp.o
ladybird> [5/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Error.cpp.o
ladybird> [6/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/DeprecatedFlyString.cpp.o
ladybird> [7/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/ByteString.cpp.o
ladybird> [8/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Base64.cpp.o
ladybird> [9/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Hex.cpp.o
ladybird> [10/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/GenericLexer.cpp.o
ladybird> [11/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/CircularBuffer.cpp.o
ladybird> [12/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/FlyString.cpp.o
ladybird> [13/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/LexicalPath.cpp.o
ladybird> [14/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/FloatingPointStringConversions.cpp.o
ladybird> [15/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/NumberFormat.cpp.o
ladybird> [16/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/JsonParser.cpp.o
ladybird> [17/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/MemoryStream.cpp.o
ladybird> [18/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/StackInfo.cpp.o
ladybird> [19/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/JsonValue.cpp.o
ladybird> [20/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Random.cpp.o
ladybird> [21/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/SipHash.cpp.o
ladybird> [22/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/OptionParser.cpp.o
ladybird> [23/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/JsonObject.cpp.o
ladybird> [24/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Stream.cpp.o
ladybird> [25/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Format.cpp.o
ladybird> [26/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/StringImpl.cpp.o
ladybird> [27/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/StringFloatingPointConversions.cpp.o
ladybird> [28/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/StringBase.cpp.o
ladybird> [29/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Time.cpp.o
ladybird> [30/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Utf32View.cpp.o
ladybird> [31/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/StringView.cpp.o
ladybird> [32/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/StringBuilder.cpp.o
ladybird> [33/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/kmalloc.cpp.o
ladybird> [34/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/StringUtils.cpp.o
ladybird> [35/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/DirectoryEntry.cpp.o
ladybird> [36/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/String.cpp.o
ladybird> [37/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/DirIterator.cpp.o
ladybird> [38/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Utf8View.cpp.o
ladybird> [39/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/Environment.cpp.o
ladybird> [40/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/Directory.cpp.o
ladybird> [41/198] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Utf16View.cpp.o
ladybird> [42/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/Version.cpp.o
ladybird> [43/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/File.cpp.o
ladybird> [44/198] Linking CXX shared library lib/liblagom-ak.so.0.0.0
ladybird> [45/198] Creating library symlink lib/liblagom-ak.so.0 lib/liblagom-ak.so
ladybird> [46/198] Building CXX object Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o
ladybird> FAILED: Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o
ladybird> /nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/g++ -DUSE_FONTCONFIG=1 -D_FILE_OFFSET_BITS=64 -I/build/source -I/build/source/Userland/Services -I/build/source/Userland/Libraries -I/build/source/build/Lagom -I/build/source/build/Lagom/Userland/Services -I/build/source/build/Lagom/Userland/Libraries -I/build/source/Userland -I/build/source/build/Ladybird/WebContent/.. -O3 -DNDEBUG -std=c++23 -fdiagnostics-color=always -Wall -Wextra -fno-exceptions -ffp-contract=off -Wcast-qual -Wformat=2 -Wimplicit-fallthrough -Wmissing-declarations -Wsuggest-override -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Werror -Wno-expansion-to-defined -Wno-literal-suffix -Wno-dangling-reference -fno-semantic-interposition -fvisibility-inlines-hidden -fstack-protector-strong -fstrict-flex-arrays=2 -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -fsigned-char -ggnu-pubnames -fPIC -O2 -g1 -Wno-user-defined-literals -MD -MT Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o -MF Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o.d -o Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o -c /build/source/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp
ladybird> In file included from /build/source/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.h:12,
ladybird>                  from /build/source/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp:8:
ladybird> /build/source/Userland/Libraries/LibWeb/HTML/Window.h:16:10: fatal error: LibWeb/Bindings/WindowGlobalMixin.h: No such file or directory
ladybird>    16 | #include <LibWeb/Bindings/WindowGlobalMixin.h>
ladybird>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ladybird> compilation terminated.
ladybird> [47/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/StandardPaths.cpp.o
ladybird> [48/198] Building CXX object Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o
ladybird> FAILED: Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o
ladybird> /nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/g++ -DUSE_FONTCONFIG=1 -D_FILE_OFFSET_BITS=64 -I/build/source -I/build/source/Userland/Services -I/build/source/Userland/Libraries -I/build/source/build/Lagom -I/build/source/build/Lagom/Userland/Services -I/build/source/build/Lagom/Userland/Libraries -I/build/source/Userland -I/build/source/build/Ladybird/WebContent/.. -O3 -DNDEBUG -std=c++23 -fdiagnostics-color=always -Wall -Wextra -fno-exceptions -ffp-contract=off -Wcast-qual -Wformat=2 -Wimplicit-fallthrough -Wmissing-declarations -Wsuggest-override -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Werror -Wno-expansion-to-defined -Wno-literal-suffix -Wno-dangling-reference -fno-semantic-interposition -fvisibility-inlines-hidden -fstack-protector-strong -fstrict-flex-arrays=2 -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -fsigned-char -ggnu-pubnames -fPIC -O2 -g1 -Wno-user-defined-literals -MD -MT Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o -MF Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o.d -o Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o -c /build/source/Userland/Services/WebContent/ConnectionFromClient.cpp
ladybird> In file included from /build/source/Userland/Libraries/LibWeb/Animations/KeyframeEffect.h:11,
ladybird>                  from /build/source/Userland/Libraries/LibWeb/Animations/Animatable.h:10,
ladybird>                  from /build/source/Userland/Libraries/LibWeb/DOM/Element.h:10,
ladybird>                  from /build/source/Userland/Libraries/LibWeb/Bindings/MainThreadVM.h:13,
ladybird>                  from /build/source/Userland/Services/WebContent/ConnectionFromClient.cpp:20:
ladybird> /build/source/Userland/Libraries/LibWeb/Animations/AnimationEffect.h:12:10: fatal error: LibWeb/Bindings/AnimationEffectPrototype.h: No such file or directory
ladybird>    12 | #include <LibWeb/Bindings/AnimationEffectPrototype.h>
ladybird>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ladybird> compilation terminated.
ladybird> [49/198] Building CXX object Lagom/Userland/Libraries/LibFileSystem/CMakeFiles/LibFileSystem.dir/TempFile.cpp.o
ladybird> [50/198] Building CXX object Lagom/Userland/Libraries/LibMain/CMakeFiles/LibMain.dir/Main.cpp.o
ladybird> [51/198] Building CXX object Lagom/Userland/Libraries/LibFileSystem/CMakeFiles/LibFileSystem.dir/FileSystem.cpp.o
ladybird> [52/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/ArgsParser.cpp.o
ladybird> [53/198] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/System.cpp.o
ladybird> ninja: build stopped: subcommand failed.
Kamillaova commented 1 month ago

Oops, that's 7e57cc7b090455e93261c847064f12a61d686ff3, I'll try to build it from the latest commit now.

Kamillaova commented 1 month ago

New build log (from b10016d9145b93106951b95d4abae462c2cb42f1):

ladybird> [37/195] Building CXX object Lagom/AK/CMakeFiles/AK.dir/Utf16View.cpp.o
ladybird> [38/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/DirectoryEntry.cpp.o
ladybird> [39/195] Linking CXX shared library lib/liblagom-ak.so.0.0.0
ladybird> [40/195] Creating library symlink lib/liblagom-ak.so.0 lib/liblagom-ak.so
ladybird> [41/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/DirIterator.cpp.o
ladybird> [42/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/Environment.cpp.o
ladybird> [43/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/Directory.cpp.o
ladybird> [44/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/File.cpp.o
ladybird> [45/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/Version.cpp.o
ladybird> [46/195] Building CXX object Lagom/Userland/Libraries/LibMain/CMakeFiles/LibMain.dir/Main.cpp.o
ladybird> [47/195] Linking CXX static library lib/liblagom-main.a
ladybird> [48/195] Building CXX object Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o
ladybird> FAILED: Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o
ladybird> /nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/g++ -DUSE_FONTCONFIG=1 -D_FILE_OFFSET_BITS=64 -I/build/source -I/build/source/Userland/Services -I/build/source/Userland/Libraries -I/build/source/build/Lagom -I/build/source/build/Lagom/Userland/Services -I/build/source/build/Lagom/Userland/Libraries -I/build/source/Userland -I/build/source/build/Ladybird/WebContent/.. -O3 -DNDEBUG -std=c++23 -fdiagnostics-color=always -Wall -Wextra -fno-exceptions -ffp-contract=off -Wcast-qual -Wformat=2 -Wimplicit-fallthrough -Wmissing-declarations -Wsuggest-override -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Werror -Wno-expansion-to-defined -Wno-literal-suffix -Wno-dangling-reference -fno-semantic-interposition -fvisibility-inlines-hidden -fstack-protector-strong -fstrict-flex-arrays=2 -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -fsigned-char -ggnu-pubnames -fPIC -O2 -g1 -Wno-user-defined-literals -MD -MT Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o -MF Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o.d -o Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp.o -c /build/source/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp
ladybird> In file included from /build/source/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.h:12,
ladybird>                  from /build/source/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp:8:
ladybird> /build/source/Userland/Libraries/LibWeb/HTML/Window.h:16:10: fatal error: LibWeb/Bindings/WindowGlobalMixin.h: No such file or directory
ladybird>    16 | #include <LibWeb/Bindings/WindowGlobalMixin.h>
ladybird>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ladybird> compilation terminated.
ladybird> [49/195] Building CXX object Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o
ladybird> FAILED: Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o
ladybird> /nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/g++ -DUSE_FONTCONFIG=1 -D_FILE_OFFSET_BITS=64 -I/build/source -I/build/source/Userland/Services -I/build/source/Userland/Libraries -I/build/source/build/Lagom -I/build/source/build/Lagom/Userland/Services -I/build/source/build/Lagom/Userland/Libraries -I/build/source/Userland -I/build/source/build/Ladybird/WebContent/.. -O3 -DNDEBUG -std=c++23 -fdiagnostics-color=always -Wall -Wextra -fno-exceptions -ffp-contract=off -Wcast-qual -Wformat=2 -Wimplicit-fallthrough -Wmissing-declarations -Wsuggest-override -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Werror -Wno-expansion-to-defined -Wno-literal-suffix -Wno-dangling-reference -fno-semantic-interposition -fvisibility-inlines-hidden -fstack-protector-strong -fstrict-flex-arrays=2 -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -fsigned-char -ggnu-pubnames -fPIC -O2 -g1 -Wno-user-defined-literals -MD -MT Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o -MF Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o.d -o Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/ConnectionFromClient.cpp.o -c /build/source/Userland/Services/WebContent/ConnectionFromClient.cpp
ladybird> In file included from /build/source/Userland/Libraries/LibWeb/Animations/KeyframeEffect.h:11,
ladybird>                  from /build/source/Userland/Libraries/LibWeb/Animations/Animatable.h:10,
ladybird>                  from /build/source/Userland/Libraries/LibWeb/DOM/Element.h:10,
ladybird>                  from /build/source/Userland/Libraries/LibWeb/Bindings/MainThreadVM.h:13,
ladybird>                  from /build/source/Userland/Services/WebContent/ConnectionFromClient.cpp:22:
ladybird> /build/source/Userland/Libraries/LibWeb/Animations/AnimationEffect.h:12:10: fatal error: LibWeb/Bindings/AnimationEffectPrototype.h: No such file or directory
ladybird>    12 | #include <LibWeb/Bindings/AnimationEffectPrototype.h>
ladybird>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ladybird> compilation terminated.
ladybird> [50/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/StandardPaths.cpp.o
ladybird> [51/195] Building CXX object Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/BackingStoreManager.cpp.o
ladybird> FAILED: Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/BackingStoreManager.cpp.o
ladybird> /nix/store/j4ficcv5bf7cc2pw4d1wwf7j506jav6q-gcc-wrapper-13.3.0/bin/g++ -DUSE_FONTCONFIG=1 -D_FILE_OFFSET_BITS=64 -I/build/source -I/build/source/Userland/Services -I/build/source/Userland/Libraries -I/build/source/build/Lagom -I/build/source/build/Lagom/Userland/Services -I/build/source/build/Lagom/Userland/Libraries -I/build/source/Userland -I/build/source/build/Ladybird/WebContent/.. -O3 -DNDEBUG -std=c++23 -fdiagnostics-color=always -Wall -Wextra -fno-exceptions -ffp-contract=off -Wcast-qual -Wformat=2 -Wimplicit-fallthrough -Wmissing-declarations -Wsuggest-override -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Werror -Wno-expansion-to-defined -Wno-literal-suffix -Wno-dangling-reference -fno-semantic-interposition -fvisibility-inlines-hidden -fstack-protector-strong -fstrict-flex-arrays=2 -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -fsigned-char -ggnu-pubnames -fPIC -O2 -g1 -Wno-user-defined-literals -MD -MT Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/BackingStoreManager.cpp.o -MF Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/BackingStoreManager.cpp.o.d -o Ladybird/WebContent/CMakeFiles/webcontent.dir/__/__/Userland/Services/WebContent/BackingStoreManager.cpp.o -c /build/source/Userland/Services/WebContent/BackingStoreManager.cpp
ladybird> In file included from /build/source/Userland/Libraries/LibWeb/HTML/TraversableNavigable.h:10,
ladybird>                  from /build/source/Userland/Services/WebContent/BackingStoreManager.cpp:8:
ladybird> /build/source/Userland/Libraries/LibWeb/HTML/Navigable.h:13:10: fatal error: LibWeb/Bindings/NavigationPrototype.h: No such file or directory
ladybird>    13 | #include <LibWeb/Bindings/NavigationPrototype.h>
ladybird>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ladybird> compilation terminated.
ladybird> [52/195] Building CXX object Lagom/Userland/Libraries/LibFileSystem/CMakeFiles/LibFileSystem.dir/TempFile.cpp.o
ladybird> [53/195] Building CXX object Lagom/Userland/Libraries/LibFileSystem/CMakeFiles/LibFileSystem.dir/FileSystem.cpp.o
ladybird> [54/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/ArgsParser.cpp.o
ladybird> [55/195] Building CXX object Lagom/Userland/Libraries/LibCore/CMakeFiles/LibCoreMinimal.dir/System.cpp.o
ladybird> ninja: build stopped: subcommand failed.
Kamillaova commented 1 month ago

Fixed by adding -S Meta/Lagom to cmake flags.