Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440146 (PR54988) - [qt overlay] dev-qt/qtgui:5 fails to build: "inlining failed"
Summary: [qt overlay] dev-qt/qtgui:5 fails to build: "inlining failed"
Status: RESOLVED FIXED
Alias: PR54988
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR54988
Whiteboard:
Keywords:
: 448870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-29 17:16 UTC by Viktor Bachraty
Modified: 2017-10-03 20:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,6.43 KB, text/plain)
2012-11-05 08:03 UTC, Viktor Bachraty
Details
build.log (build.log,357.20 KB, text/plain)
2012-11-05 08:04 UTC, Viktor Bachraty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Bachraty 2012-10-29 17:16:29 UTC
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
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2012-10-29 19:52:03 UTC
According to the upstream bug, this is already fixed in gcc trunk.

Anyway, assigning to toolchain.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2012-11-05 03:15:17 UTC
Always attach emerge --info and a build log.  I have no idea what gcc version you're using.
Comment 3 Viktor Bachraty 2012-11-05 08:03:06 UTC
Created attachment 328418 [details]
emerge --info
Comment 4 Viktor Bachraty 2012-11-05 08:04:49 UTC
Created attachment 328420 [details]
build.log
Comment 5 Viktor Bachraty 2012-11-05 08:07:18 UTC
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.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2013-01-03 07:29:25 UTC
*** Bug 448870 has been marked as a duplicate of this bug. ***
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2013-02-25 02:49:19 UTC
It looks like there are issues with the patch that was backported.  I'm going to hold off on this until 4.7.3.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2014-09-23 16:36:36 UTC
Any updates on this? Is it confirmed fixed on gcc-4.7.3 and later?
Comment 9 Michael Palimaka (kensington) gentoo-dev 2014-09-23 16:43:57 UTC
It builds for me on amd64 with 4.7.3
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2014-09-23 17:20:32 UTC
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.
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2017-10-03 20:58:23 UTC
(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.