Emerging qt-gui live ebuild fails with the following error: ../../include/QtGui/5.0.0/QtGui/private/../../../../../../qt-gui-5.9999/src/gui/painting/qdrawhelper_p.h:637:31: sorry, unimplemented: inlining failed in call to 'uint PREMUL(uint)': target specific option mismatch It is known bug of GCC which prevents qt-gui from compiling: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54988 I have a dirty workaround until a fixed GCC will be in the portage - remove the always_inline attributes in src/gui/painting/qdrawhelper_p.h --- qdrawhelper_p.h.old 2012-10-29 17:38:57.000000000 +0100 +++ qdrawhelper_p.h 2012-10-29 18:08:49.000000000 +0100 @@ -73,8 +73,8 @@ # define Q_STATIC_INLINE_FUNCTION static __forceinline # define Q_DECL_RESTRICT #elif defined(Q_CC_GNU) -# define Q_STATIC_TEMPLATE_FUNCTION static __attribute__((always_inline)) -# define Q_STATIC_INLINE_FUNCTION static inline __attribute__((always_inline)) +# define Q_STATIC_TEMPLATE_FUNCTION static +# define Q_STATIC_INLINE_FUNCTION static inline # define Q_DECL_RESTRICT __restrict__ #else # define Q_STATIC_TEMPLATE_FUNCTION static Reproducible: Always Steps to Reproduce: emerge -av \=x11-libs/qt-gui-5.9999::qt qt overlay has to be added Actual Results: emerge fails Expected Results: package using git source builds
According to the upstream bug, this is already fixed in gcc trunk. Anyway, assigning to toolchain.
Always attach emerge --info and a build log. I have no idea what gcc version you're using.
Created attachment 328418 [details] emerge --info
Created attachment 328420 [details] build.log
My version is 4.6.3, but the upstream bug has been filled for 4.7.2 so I assume all older versions must be affected.
*** Bug 448870 has been marked as a duplicate of this bug. ***
It looks like there are issues with the patch that was backported. I'm going to hold off on this until 4.7.3.
Any updates on this? Is it confirmed fixed on gcc-4.7.3 and later?
It builds for me on amd64 with 4.7.3
The original bug report was for x86, and it's related to the usage of -fpmath=sse (enabled via a #pragma in src/gui/painting/qdrawhelper.cpp). However the code triggering the bug has been removed in qtbase commit cd652500af18671e0d64b30d51c79a0c45b973a3, so this is no longer relevant for qt. It's still a valid compiler bug I believe, so I'm leaving this open for toolchain to deal with it.
(In reply to Davide Pesavento from comment #10) > The original bug report was for x86, and it's related to the usage of > -fpmath=sse (enabled via a #pragma in src/gui/painting/qdrawhelper.cpp). > > However the code triggering the bug has been removed in qtbase commit > cd652500af18671e0d64b30d51c79a0c45b973a3, so this is no longer relevant for > qt. It's still a valid compiler bug I believe, so I'm leaving this open for > toolchain to deal with it. Meh. Not much we can do here.