/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /usr/lib64/libQt6QmlBuiltins.a: No such file or directory collect2: error: ld returned 1 exit status make: *** [Makefile:621: kiwix-desktop] Error 1
https://www.portagefilelist.de/?fs=libQt6QmlBuiltins.a eix -I dev-qt/qtdeclarative [I] dev-qt/qtdeclarative Installed versions: 5.15.16(5/5.15)^t(05:41:40 30.12.2024)(jit vulkan widgets -debug -gles2-only -localstorage -test) 6.8.1(6/6.8.1)^t(23:33:31 30.12.2024)(jit network opengl sql ssl svg vulkan widgets -accessibility -qmlls)
I cannot reproduce this, it builds fine for me. And it does not seem to require libQt6QmlBuiltins in my case. Please post the full build.log and emerge --info, maybe someone spots the problem.
Created attachment 915613 [details] build.log
Created attachment 915614 [details] emerge --info
I tried without -flto*, the error persisted.
I recently had the same error with "dev-python/pyqt6-webengine". It turned out that I needed to rebuild "dev-qt/qtwebengine" after the qt6 6.8 update (I use a live ebuild for qtwebengine). All packages built successfully after that. Since "www-misc/kiwix-desktop" also depends on "dev-qt/qtwebengine", it might be worth trying to rebuild it (it does take a long time to rebuild unfortunately).
I upgraded to dev-qt/qtwebengine-6.8.1-r1 and it helped. Prior to this, other parts of dev-qt/* of a similar version were updated earlier, with the exception of the qtwebengine, due to https://bugs .gentoo.org/947696 and --keep-going