# Ninja dependency cycle?

**URL:** <https://discuss.kde.org/t/ninja-dependency-cycle/31383>\
**Category:** Development\
**Tags:** kde-builder\
**Created:** [March 11, 2025, 10:21pm UTC](https://discuss.kde.org/t/ninja-dependency-cycle/31383 "2025-03-11T22:21:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Hands](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/paul_hands/32/2679_2.png) [@Paul\_Hands](https://discuss.kde.org/u/Paul_Hands)\
**Post date:** [March 11, 2025, 10:21pm UTC](https://discuss.kde.org/t/ninja-dependency-cycle/31383/1 "2025-03-11T22:21:01Z")

</div>

After a 3 month hiatus, I’m finally getting back to KDE building. Trying to use kde-builder to make gwenview, I run into an error I haven’t a clue about. The build of kconfig fails with…

> # kde-builder running: ‘ninja’
> 
> # from directory: /local-12T/kde/build/kconfig
> 
> # with environment: /local-12T/kde/build/kconfig/kde-builder.env
> 
> ninja: error: dependency cycle: autotests/kconfig\_compiler/test14qml\_autogen/timestamp → autotests/kconfig\_compiler/.rcc/qmlcache/test14qml\_qmlcache\_loader.cpp → autotests/kconfig\_compiler/test14qml\_autogen → autotests/kconfig\_compiler/CMakeFiles/test14qml\_autogen → autotests/kconfig\_compiler/test14qml\_autogen/timestamp
> 
> # exit code was: 256

Anyone have any idea as to where to start?

---

<div class="post-metadata">

**Author:** ![Duha](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/duha/32/32926_2.png) [@Duha](https://discuss.kde.org/u/Duha)\
**Post date:** [March 14, 2025, 5:42pm UTC](https://discuss.kde.org/t/ninja-dependency-cycle/31383/2 "2025-03-14T17:42:22Z")

</div>

Have you tried rebuilding with --refresh-build ? That solves most build issues for me.

---

<div class="post-metadata">

**Author:** ![Paul\_Hands](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/paul_hands/32/2679_2.png) [@Paul\_Hands](https://discuss.kde.org/u/Paul_Hands)\
**Post date:** [March 14, 2025, 7:23pm UTC](https://discuss.kde.org/t/ninja-dependency-cycle/31383/3 "2025-03-14T19:23:34Z")

</div>

Yes, --refresh-build was at least part of the answer.

The full answer was to also to let kde-builder build Qt for you, as the version that cones with kubuntu 24.10 is a 6.6.x build. The latest kde-builder sources need at least a 6.7.x build.

I’m thinking of adding this to the documentation for the getting started section, as well troubleshooting

---

<div class="post-metadata">

**Author:** ![meven](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/meven/32/1748_2.png) [@meven](https://discuss.kde.org/u/meven)\
**Post date:** [March 14, 2025, 7:28pm UTC](https://discuss.kde.org/t/ninja-dependency-cycle/31383/4 "2025-03-14T19:28:12Z")

</div>

> [@Paul\_Hands](#):
>
> The full answer was to also to let kde-builder build Qt for you, as the version that cones with kubuntu 24.10 is a 6.6.x build. The latest kde-builder sources need at least a 6.7.x build.

I was using KUbuntu 24.10 until recently but that’s not just Qt you will have to compile additionnaly, wayland, wayland-protocols and libdisplay-info at least if you compile all plasma-desktop.

> [@Paul\_Hands](#):
>
> I’m thinking of adding this to the documentation for the getting started section, as well troubleshooting

Great idea!

Except the documentation already mentions it: [Basic troubleshooting | Developer](https://develop.kde.org/docs/getting-started/building/kde-builder-failure/#old-cache)
