Created attachment 685893 [details] build.log Steps to reproduce: emerge -C dev-qt/qtsql emerge -1 dev-qt/qtgraphicaleffects
I doubt dev-qt/qtsql would fix those kind of errors.
It doesn't make much sense to me either, but it is what fixes the issue on my machine. However, I was unable to reproduce in a clean stage3 chroot.