Kwin build failure

I’m trying to run kde-builder mobile on Ubuntu 24.04 and the builder is failing on kwin. The last few messages in the error.log file are not particularly helpful:

[1090/1203] Building CXX object autotests/integration/CMakeFiles/testXwaylandSelections.dir/xwayland_selections_test.cpp.o
[1091/1203] Building CXX object autotests/integration/CMakeFiles/testKeyboardInput.dir/keyboard_input_test.cpp.o
[1092/1203] Building CXX object autotests/integration/CMakeFiles/testX11KeyRead.dir/x11keyread.cpp.o
[1093/1203] Building CXX object autotests/integration/CMakeFiles/testVirtualKeyboardDBus.dir/test_virtualkeyboard_dbus.cpp.o
[1094/1203] Building CXX object autotests/integration/CMakeFiles/testKWinBindings.dir/kwinbindings_test.cpp.o
[1095/1203] Building CXX object autotests/integration/CMakeFiles/testGlobalShortcuts.dir/globalshortcuts_test.cpp.o
[1096/1203] Building CXX object autotests/integration/CMakeFiles/testScreencasting.dir/screencasting_test.cpp.o
[1097/1203] Building CXX object autotests/integration/CMakeFiles/testQuickTiling.dir/quick_tiling_test.cpp.o
[1098/1203] Building CXX object autotests/integration/CMakeFiles/testX11Window.dir/x11_window_test.cpp.o
ninja: build stopped: subcommand failed.

# exit code was: 256

When I run kde-builder mobile --ninja-options="--verbose" it prints the full commands and I’m able to see that this is the final script executed:

/usr/bin/c++ (a lot of includes) /home/malogan/kde/src/kwin/autotests/drm/drmTest.cpp

Below that is the same:

ninja: build stopped: subcommand failed.

# exit code was: 256

Does anyone know if there’s a missing dependency in Ubuntu that might cause the DRM test to fail, or perhaps a log file somewhere on the computer with more information about why this failed?

What QT version are you compiling against?

You are probably hitting the same issue as here:

I’m using Qt 6.8.2, built with the online installer

I tried rerunning with --refresh-build but got the same result.

Is the version of Qt built with kde-builder significantly different than the online installer version?

I believe Qt 6.8. should be high enough.

Did you specify kde-builder to use your online installer QT instead of that of your repos? If you build something more minimal such as kcalc, does it get built with 6.8 or your system QT?

I pointed kde-builder to the version of Qt I got from the online installer and was able to build and run kcalc; the version Ubuntu ships with (6.5, I think) fails to build anything so the successful build means the kde-builder is definitely pointed to the right version of Qt

That’s a test that’s failing to compile for some reason.

You should be able to see the log mentioning it in one of the files in ~/kde/log/latest/kwin.

As a last resort if we can’t determine what’s the real issue, you can add this to the end of your kde-builder config file to bypass tests:

override kwin:
  cmake-options: -DBUILD_TESTING=OFF

Unfortunately none of the logs under ~/kde/log/latest/win give anything more descriptive than what I posted originally

cmake.log does inform me that I’m missing the optional package Qt6QmlCompilerPlusPrivateTools and that the variable BUILD_QT5 was manually specified but unused.

I can post all three log files if that would help, but is there anything else that might contain more information?

Harmless

I think that information would be in build.log or error.log.

I created a VirtualBox running KDE Neon 6.3 and got the exact same error in my log that I did running on the regular machine.

I had kde-builder make the qt6 libraries using version 6.9 in the virtualbox and everything went smoothly until the kwin compile step. I am wondering if this is some kind of hardware/driver issue. Either way, I’ll try turning off the tests for now, I was able to successfully execute kde-builder mobile after blocking the tests for kwin with no other issues.