# Compile error in kcoreaddons

**URL:** <https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609>\
**Category:** Help\
**Tags:** kde-builder\
**Created:** [December 30, 2024, 8:47pm UTC](https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609 "2024-12-30T20:47:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas\_hoe](https://discuss.kde.org/letter_avatar_proxy/v4/letter/t/d78d45/32.png) [@thomas\_hoe](https://discuss.kde.org/u/thomas_hoe)\
**Post date:** [December 30, 2024, 8:47pm UTC](https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609/1 "2024-12-30T20:47:53Z")

</div>

Hello,

I just wanted to do some coding in a KDE application. Therefore I started to set up my development environment using kde-builder.  
I followed the instructions defined on the /kde-builder web page.  
While compilation of kcoreaddons I get a build aboard.  
The error message is:  
/usr/include/qt6/QtCore/qglobal.h:13:12: fatal: ‘type\_traits’ file not found  
When I search for this header file I get these results:  
/usr/i686-w64-mingw32/sys-root/mingw/include/c++/type\_traits  
/usr/i686-w64-mingw32/sys-root/mingw/include/c++/bits/cpp\_type\_traits.h  
/usr/i686-w64-mingw32/sys-root/mingw/include/c++/experimental/type\_traits  
/usr/i686-w64-mingw32/sys-root/mingw/include/c++/ext/type\_traits.h  
/usr/i686-w64-mingw32/sys-root/mingw/include/c++/tr1/type\_traits  
/usr/i686-w64-mingw32/sys-root/mingw/include/c++/tr2/type\_traits  
/usr/include/c++/14/type\_traits  
/usr/include/c++/14/bits/cpp\_type\_traits.h  
/usr/include/c++/14/experimental/type\_traits  
/usr/include/c++/14/ext/type\_traits.h  
/usr/include/c++/14/tr1/type\_traits  
/usr/include/c++/14/tr2/type\_traits  
/usr/include/qt6/QtCore/q20type\_traits.h  
/usr/include/qt6/QtCore/qxptype\_traits.h  
/usr/lib64/python3.13/site-packages/pyarrow/src/arrow/python/type\_traits.h  
/usr/x86\_64-w64-mingw32/sys-root/mingw/include/c++/type\_traits  
/usr/x86\_64-w64-mingw32/sys-root/mingw/include/c++/bits/cpp\_type\_traits.h  
/usr/x86\_64-w64-mingw32/sys-root/mingw/include/c++/experimental/type\_traits  
/usr/x86\_64-w64-mingw32/sys-root/mingw/include/c++/ext/type\_traits.h  
/usr/x86\_64-w64-mingw32/sys-root/mingw/include/c++/tr1/type\_traits  
/usr/x86\_64-w64-mingw32/sys-root/mingw/include/c++/tr2/type\_traits

Could somebody give advice how to proceed?

Regards  
Thomas

---

<div class="post-metadata">

**Author:** ![thomas\_hoe](https://discuss.kde.org/letter_avatar_proxy/v4/letter/t/d78d45/32.png) [@thomas\_hoe](https://discuss.kde.org/u/thomas_hoe)\
**Post date:** [January 1, 2025, 2:14pm UTC](https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609/2 "2025-01-01T14:14:34Z")

</div>

A temporary solution is to not fulfill the dependency to Shiboken6.  
These are the packages that I do not consider:  
shiboken6-0:6.8.0-2.fc41.x86\_64  
python3-pyside6-0:6.8.0-2.fc41.x86\_64  
python3-shiboken6-0:6.8.0-2.fc41.x86\_64  
python3-pyside6-devel-0:6.8.0-2.fc41.x86\_64  
python3-shibokepyside6-tools-0:6.8.0-2.fc41.x86\_64  
pyside6-tools-0:6.8.0-2.fc41.x86\_64

---

<div class="post-metadata">

**Author:** ![Panagiotis\_Chagias](https://discuss.kde.org/user_avatar/discuss.kde.org/panagiotis_chagias/32/15728_2.png) [@Panagiotis\_Chagias](https://discuss.kde.org/u/Panagiotis_Chagias)\
**Post date:** [January 1, 2025, 10:09pm UTC](https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609/3 "2025-01-01T22:09:07Z")

</div>

have you installed the shiboken6 package?

---

<div class="post-metadata">

**Author:** ![johnandmegh](https://discuss.kde.org/user_avatar/discuss.kde.org/johnandmegh/32/767_2.png) [@johnandmegh](https://discuss.kde.org/u/johnandmegh)\
**Post date:** [May 16, 2025, 11:38pm UTC](https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609/4 "2025-05-16T23:38:29Z")

</div>

Hi - I’m getting a similar error, and have all the shiboken6-related packages installed on Fedora KDE 42:

```auto
$ dnf list --installed | grep shiboken
python3-shiboken6.x86_64 6.9.0-1.fc42 updates
python3-shiboken6-devel.x86_64 6.9.0-1.fc42 updates
shiboken6.x86_64 6.9.0-1.fc42 updates

```

But I get this in the logs:

```auto
qt.shiboken: (kcoreaddons) Unable to start clang++: Child process set up failed: execve: No such file or directory
/usr/include/qt6/QtCore/qglobal.h:13:12: fatal error: 'type_traits' file not found
(kcoreaddons) Errors in /tmp/bindings_REsoZh.hpp:
/usr/include/qt6/QtCore/qglobal.h:13:12: fatal: 'type_traits' file not found
   /tmp/bindings_REsoZh.hpp:1:10: note: in file included from /tmp/bindings_REsoZh.hpp:1:
   /home/johnkizer/kde/src/kcoreaddons/python/bindings.h:6:10: note: in file included from /home/johnkizer/kde/src/kcoreaddons/python/bindings.h:6:
   /usr/include/qt6/QtCore/QPluginLoader:1:10: note: in file included from /usr/include/qt6/QtCore/QPluginLoader:1:
   /usr/include/qt6/QtCore/qpluginloader.h:7:10: note: in file included from /usr/include/qt6/QtCore/qpluginloader.h:7:
...
(kcoreaddons) Clang: 1 diagnostic messages:
  /usr/include/qt6/QtCore/qglobal.h:13:12: fatal: 'type_traits' file not found
   /tmp/bindings_REsoZh.hpp:1:10: note: in file included from /tmp/bindings_REsoZh.hpp:1:
   /home/johnkizer/kde/src/kcoreaddons/python/bindings.h:6:10: note: in file included from /home/johnkizer/kde/src/kcoreaddons/python/bindings.h:6:
   /usr/include/qt6/QtCore/QPluginLoader:1:10: note: in file included from /usr/include/qt6/QtCore/QPluginLoader:1:
   /usr/include/qt6/QtCore/qpluginloader.h:7:10: note: in file included from /usr/include/qt6/QtCore/qpluginloader.h:7:
...
Keeping temporary file: /tmp/bindings_REsoZh.hpp
shiboken: Error running ApiExtractor.

```

The most relevant-seeming thing I could find was [this Qt bug report](https://bugreports.qt.io/browse/PYSIDE-787), but that says it was fixed in Qt 6.7. If anyone has any ideas, that would be awesome 🙂

---

<div class="post-metadata">

**Author:** ![dlee](https://discuss.kde.org/user_avatar/discuss.kde.org/dlee/32/20667_2.png) [@dlee](https://discuss.kde.org/u/dlee)\
**Post date:** [May 19, 2025, 11:52pm UTC](https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609/5 "2025-05-19T23:52:48Z")

</div>

Hello @johnandmegh

I’d been struggling with the exact same issue for a week!  
`kde-builder` works as expected on VM on a fresh F42, however not in a host.

In my case I was able to make it work installing `clang`.

Although, this error disappeared, the next one was introduced.  
I can’t find logs, but the issue solved by installing a `build` package for pip3.

I feel like there is something with the path to `gcc`, though I can’t make it work using env’s or submitting parameters e.g. `DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}`

---

<div class="post-metadata">

**Author:** ![johnandmegh](https://discuss.kde.org/user_avatar/discuss.kde.org/johnandmegh/32/767_2.png) [@johnandmegh](https://discuss.kde.org/u/johnandmegh)\
**Post date:** [May 19, 2025, 11:57pm UTC](https://discuss.kde.org/t/compile-error-in-kcoreaddons/27609/6 "2025-05-19T23:57:52Z")

</div>

Thank you for bringing this back up! I totally forgot to follow-up here, but I did get some advice in the Matrix chat rooms on this one that included `clang`, just like you mentioned, and also `python3-build` - with those, everything in `workspace` built (except for krdp, but I expected that given the FreeRDP 2 vs 3 difference).

There’s a merge request in the repository where those distribution dependencies are managed, currently being reviewed to figure out how to solve appropriately: [https://invent.kde.org/sysadmin/repo-metadata/-/merge\_requests/565](https://invent.kde.org/sysadmin/repo-metadata/-/merge_requests/565)

Thanks!
