Compilation error with kdesrc-build

Building kiconthemes from frameworks (15/204)

Fetching remote changes to kiconthemes

Merging kiconthemes changes from branch master

No changes to kiconthemes source code, but proceeding to build anyway.

Compiling… failed (after 1 second)

kiconthemes didn’t build, stopping here.

FAILED: build.ninja /usr/bin/cmake --regenerate-during-build -S/home/USERNAME/kde/src/kiconthemes -B/home/USERNAME/kde/build/kiconthemes ninja: error: rebuilding ‘build.ninja’: subcommand failed

I also ran into kiconthemes failing yesterday. Apparently it has an optional dependency on breeze-icons, which failed for some reason related to breeze-icons being found but not being rebuilt first.

I solved it by manually building breeze-icons before resuming my full build, although a proper fix would probably be to make that dependency explicit and let the developer or package/dependency manager provide a flag about whether or not to depend on breeze-icons or not.

Then again, I hit my error during configuration, not compilation, so maybe you’ve got something different here.

2 Likes

So I managed to overcome this problem by building breeze-icons first. Now I encountered the following:

cat /home/chris/kde/src/log/2024-02-05-02/kproperty/install.log

kdesrc-build running: ‘ninja’ ‘install’

from directory: /home/chris/kde/build/kproperty

[1/4] Copying icon files to /home/chris/kde/build/kproperty/src/pics/resource
[2/4] Building Qt resource file /home/chris/kde/build/kproperty/src/pics/resource/kproperty_breeze.qrc
[3/4] Building external Qt resource /home/chris/kde/build/kproperty/bin/data/icons/kproperty_breeze.rcc
[3/4] Install the project…
– Install configuration: “RelWithDebInfo”
– Installing: /home/chris/kde/usr/share/locale/ca/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ca/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ca@valencia/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ca@valencia/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/cs/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/cs/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/de/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/de/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/en_GB/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/en_GB/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/eo/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/eo/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/es/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/es/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/et/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/et/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/eu/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/eu/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/fi/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/fi/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/fr/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/fr/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/gl/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/gl/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/hi/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ia/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ia/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/it/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/it/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ja/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ja/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ka/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ka/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ko/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ko/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/lt/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/lt/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/nl/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/nl/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/nn/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/nn/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/pl/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/pl/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/pt/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/pt/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/pt_BR/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/pt_BR/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ro/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ru/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/ru/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/sk/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/sk/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/sl/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/sl/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/sv/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/sv/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/tr/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/tr/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/uk/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/uk/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/zh_CN/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/zh_CN/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/share/locale/zh_TW/LC_MESSAGES/kpropertycore_qt.qm
– Installing: /home/chris/kde/usr/share/locale/zh_TW/LC_MESSAGES/kpropertywidgets_qt.qm
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyCore3/KPropertyCoreConfig.cmake
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyCore3/KPropertyCoreConfigVersion.cmake
– Installing: /home/chris/kde/usr/lib/libKPropertyCore3.so.4.3.0
– Installing: /home/chris/kde/usr/lib/libKPropertyCore3.so.4
– Set non-toolchain portion of runtime path of “/home/chris/kde/usr/lib/libKPropertyCore3.so.4.3.0” to “/home/chris/kde/usr/lib”
– Installing: /home/chris/kde/usr/lib/libKPropertyCore3.so
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyCore3/KPropertyCoreTargets.cmake
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyCore3/KPropertyCoreTargets-relwithdebinfo.cmake
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyWidgets3/KPropertyWidgetsConfig.cmake
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyWidgets3/KPropertyWidgetsConfigVersion.cmake
– Installing: /home/chris/kde/usr/lib/libKPropertyWidgets3.so.4.3.0
– Installing: /home/chris/kde/usr/lib/libKPropertyWidgets3.so.4
– Set non-toolchain portion of runtime path of “/home/chris/kde/usr/lib/libKPropertyWidgets3.so.4.3.0” to “/home/chris/kde/usr/lib”
– Installing: /home/chris/kde/usr/lib/libKPropertyWidgets3.so
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyWidgets3/KPropertyWidgetsTargets.cmake
– Installing: /home/chris/kde/usr/lib/cmake/KPropertyWidgets3/KPropertyWidgetsTargets-relwithdebinfo.cmake
CMake Error at src/cmake_install.cmake:188 (file):
file cannot create directory: /KPropertyCore3. Maybe need administrative
privileges.
Call Stack (most recent call first):
cmake_install.cmake:304 (include)

FAILED: CMakeFiles/install.util
cd /home/chris/kde/build/kproperty && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.

file cannot create directory: /KPropertyCore3. Maybe need administrative
privileges.

Have you used sudo at any point in the past, or something that would have resulted in anything within your install prefix being owned by another user (like root)?

1 Like

KProperty is still on Qt 5 but you are trying to build it with a kdesrc-build configured for Qt6, so CMake is trying to install the package into /KPropertyCore3. It is likely that the app you’re building is also still using Qt5. You should make a new kdesrc-buildrc file and change it to build from the kf5-qt5 branch group.

Hopefully that should fix the error

1 Like

Thanks for the reply. How can I find the package that requires Kproperty?
I run:
~ > kdesrc-build workspace kmail kate akregator kcalc dolphin dolphin-plugins elisa dragon kleopatra spectacle okular kio-extras kio-gdrive gwenview plasma-systemmonitor konsole discover ark merkuro calligra

to build my whole Desktop Environment and the applications I need

It’s calligra. Other packages might require it too but I’m not sure (I only know it’s calligra because I tried to build it a couple of months ago too). I think the easiest way to find out is to go into the root CMakeLists.txt of each package repo and see if it requires KDE Frameworks 5 or 6, i.e. search for find_package(KF5 or find_package(KF6.

1 Like