ladybird
ladybird copied to clipboard
Build failure
GCC 12.2:
2091/2103] Building CXX object CMakeFiles/ladybird.dir/ConsoleGlobalObject.cpp.o
FAILED: CMakeFiles/ladybird.dir/ConsoleGlobalObject.cpp.o
/usr/bin/ccache /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I./ladybird/Build/ladybird_autogen/include -I./ladybird/Build/serenity/Userland/Libraries -I./ladybird/Build/_deps/lagom-build/Services -I./ladybird/Build/serenity -I./ladybird/Build/_deps/lagom-build -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtNetwork -march=native -mtune=native -O3 -pipe -fno-plt -Wno-deprecated-declarations -ggnu-pubnames -Wall -Wextra -Werror -Wno-implicit-const-int-float-conversion -Wno-literal-suffix -Wno-maybe-uninitialized -Wno-unknown-warning-option -Wno-unused-command-line-argument -fsigned-char -fno-exceptions -fdiagnostics-color=always -fPIC -g1 -O2 -fno-semantic-interposition -Wno-expansion-to-defined -Wno-user-defined-literals -std=c++20 -MD -MT CMakeFiles/ladybird.dir/ConsoleGlobalObject.cpp.o -MF CMakeFiles/ladybird.dir/ConsoleGlobalObject.cpp.o.d -o CMakeFiles/ladybird.dir/ConsoleGlobalObject.cpp.o -c ./ladybird/ConsoleGlobalObject.cpp
./ladybird/ConsoleGlobalObject.cpp:10:10: schwerwiegender Fehler: LibWeb/Bindings/NodeWrapper.h: Datei oder Verzeichnis nicht gefunden
10 | #include <LibWeb/Bindings/NodeWrapper.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kompilierung beendet.
[2092/2103] Building CXX object CMakeFiles/ladybird.dir/ConsoleClient.cpp.o
FAILED: CMakeFiles/ladybird.dir/ConsoleClient.cpp.o
/usr/bin/ccache /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I./ladybird/Build/ladybird_autogen/include -I./ladybird/Build/serenity/Userland/Libraries -I./ladybird/Build/_deps/lagom-build/Services -I./ladybird/Build/serenity -I./ladybird/Build/_deps/lagom-build -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtNetwork -march=native -mtune=native -O3 -pipe -fno-plt -Wno-deprecated-declarations -ggnu-pubnames -Wall -Wextra -Werror -Wno-implicit-const-int-float-conversion -Wno-literal-suffix -Wno-maybe-uninitialized -Wno-unknown-warning-option -Wno-unused-command-line-argument -fsigned-char -fno-exceptions -fdiagnostics-color=always -fPIC -g1 -O2 -fno-semantic-interposition -Wno-expansion-to-defined -Wno-user-defined-literals -std=c++20 -MD -MT CMakeFiles/ladybird.dir/ConsoleClient.cpp.o -MF CMakeFiles/ladybird.dir/ConsoleClient.cpp.o.d -o CMakeFiles/ladybird.dir/ConsoleClient.cpp.o -c ./ladybird/ConsoleClient.cpp
./ladybird/ConsoleClient.cpp:15:10: schwerwiegender Fehler: LibWeb/Bindings/WindowObject.h: Datei oder Verzeichnis nicht gefunden
15 | #include <LibWeb/Bindings/WindowObject.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kompilierung beendet.
[2102/2103] Building CXX object CMakeFiles/ladybird.dir/WebView.cpp.o
FAILED: CMakeFiles/ladybird.dir/WebView.cpp.o
/usr/bin/ccache /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I./ladybird/Build/ladybird_autogen/include -I./ladybird/Build/serenity/Userland/Libraries -I./ladybird/Build/_deps/lagom-build/Services -I./ladybird/Build/serenity -I./ladybird/Build/_deps/lagom-build -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtNetwork -march=native -mtune=native -O3 -pipe -fno-plt -Wno-deprecated-declarations -ggnu-pubnames -Wall -Wextra -Werror -Wno-implicit-const-int-float-conversion -Wno-literal-suffix -Wno-maybe-uninitialized -Wno-unknown-warning-option -Wno-unused-command-line-argument -fsigned-char -fno-exceptions -fdiagnostics-color=always -fPIC -g1 -O2 -fno-semantic-interposition -Wno-expansion-to-defined -Wno-user-defined-literals -std=c++20 -MD -MT CMakeFiles/ladybird.dir/WebView.cpp.o -MF CMakeFiles/ladybird.dir/WebView.cpp.o.d -o CMakeFiles/ladybird.dir/WebView.cpp.o -c ./ladybird/WebView.cpp
In Datei, eingebunden von ./ladybird/ConsoleClient.h:14,
von ./ladybird/WebView.cpp:11:
./ladybird/ConsoleGlobalObject.h:41:18: Fehler: »virtual void Ladybird::ConsoleGlobalObject::initialize_global_object()« als »override« markiert, überschreibt aber nicht
41 | virtual void initialize_global_object() override;
| ^~~~~~~~~~~~~~~~~~~~~~~~
./ladybird/WebView.cpp: In Elementfunktion »void HeadlessBrowserPageClient::initialize_js_console()«:
./ladybird/WebView.cpp:184:38: Fehler: »class Web::DOM::Document« hat kein Element namens »interpreter«
184 | auto interpreter = document->interpreter().make_weak_ptr();
| ^~~~~~~~~~~
BTW: I don't lake Wayland, will never use qt6-wayland
Was this from latest master? NodeWrapper and WindowObject were removed from LibWeb last week
I encountered the same issue, when building it with this AUR package: https://aur.archlinux.org/packages/ladybird-git I think they froze an older commit, which is why it fails to build.
Edit: Bumped the commit hash and then it worked.
What happens if you run cmake again? That would pull lagom again (don't forget to pull from ladybird as well before!)