Created attachment 850298 [details] build.log Builds ok with bfd linker but fails with mold. [...] [117/331] cd /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build && /usr/bin/cmake -E cmake_autogen /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/CMakeFiles/cantata_autogen.dir/AutogenInfo.json RelWithDebInfo && /usr/bin/cmake -E touch /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/timestamp && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0 /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0 /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/deps /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/CMakeFiles/d/373f4bc88411846c3648c2bf017830e99e15c8ce2e87ed4299d866add9c04f2e.d FAILED: cantata_autogen/timestamp cantata_autogen/mocs_compilation.cpp /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/timestamp /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/mocs_compilation.cpp cd /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build && /usr/bin/cmake -E cmake_autogen /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/CMakeFiles/cantata_autogen.dir/AutogenInfo.json RelWithDebInfo && /usr/bin/cmake -E touch /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/timestamp && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0 /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0 /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/deps /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/CMakeFiles/d/373f4bc88411846c3648c2bf017830e99e15c8ce2e87ed4299d866add9c04f2e.d AutoMoc subprocess error ------------------------ The moc process failed to compile "SRC:/gui/folderpage.h" into "SRC:_build/cantata_autogen/include/moc_folderpage.cpp" included by "SRC:/gui/folderpage.cpp" Command ------- /usr/lib/qt5/bin/moc -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -I/var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0/3rdparty -I/var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0 -I/var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build -I/usr/include/taglib -I/usr/local/include -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtConcurrent -I/usr/include/qt5/QtSvg -I/usr/include/qt5/QtSql -I/usr/include/qt5/QtDBus -I/usr/include -I/usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12 -I/usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/x86_64-gentoo-linux-musl -I/usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/backward -I/usr/lib/gcc/x86_64-gentoo-linux-musl/12/include --include /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/moc_predefs.h --output-dep-file -o /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0_build/cantata_autogen/include/moc_folderpage.cpp /var/tmp/portage/media-sound/cantata-2.5.0/work/cantata-2.5.0/gui/folderpage.h Output ------ ninja: build stopped: subcommand failed.
Created attachment 850300 [details] emerge --info
This project was archived on Github, so fixes would have to be made downstream or searched in one of the several unofficial forks.
I think something else is the cause. It works fine with mold here, and the command it's failed on doesn't involve the linker. It doesn't even mention mold.
Seems you are correct. Whatever it was, I can't replicate it with current toolchain + mold any longer, it just builds and runs fine. Closing as obsolete.