media-gfx/ttfautohint-1.8.4-r3 fails while emerging at configure stage with the error `Cannot build a test Qt program`. $ emerge -pqv '=media-gfx/ttfautohint-1.8.4-r3::gentoo' [ebuild N ] media-gfx/ttfautohint-1.8.4-r3 USE="qt5" Important part of the error: Info: creating stash file /tmp/portage/portage/media-gfx/ttfautohint-1.8.4-r3/work/ttfautohint-1.8.4/conftest.dir/.qmake.stash checking whether we can build a simple Qt application... ko configure: error: Cannot build a test Qt program Reproducible: Always
Created attachment 864555 [details] emerge --info '=media-gfx/ttfautohint-1.8.4-r3::gentoo'
Created attachment 864556 [details] build.log
Created attachment 864557 [details] environment
> !!! Please attach the following file when seeking support: > !!! /tmp/portage/portage/media-gfx/ttfautohint-1.8.4-r3/work/ttfautohint-1.8.4/config.log Please change the status to UNCONFIRMED once the above has been provided.
Created attachment 864630 [details] config.log
g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_conftest.o moc_conftest.cpp g++ -Wl,-O1 -o conftest.dir conftest.o moc_conftest.o /usr/lib64/libQt5Widgets.so /usr/lib64/libQt5Gui.so /usr/lib64/libQt5Core.so -lGL -pthread /usr/libexec/gcc/x86_64-pc-linux-gnu/ld: /usr/lib64/libQt5Gui.so: undefined reference to `QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)@Qt_5' collect2: error: ld returned 1 exit status Your /usr/lib64/libQt5Gui.so appears to be broken. Please try emerge -v1 /usr/lib64/libQt5Gui.so.
Thanks, that solved the issue.