Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374019 - qt-gui-4.7.2-r1 does not compile on x86 with mstackrealign CFLAG and gcc-4.4
Summary: qt-gui-4.7.2-r1 does not compile on x86 with mstackrealign CFLAG and gcc-4.4
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal minor (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 09:25 UTC by Till Korten
Modified: 2011-11-13 20:52 UTC (History)
0 users

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


Attachments
compile log (x11-libs:qt-gui-4.7.2:20110704-075408.log,956.63 KB, text/plain)
2011-07-04 09:25 UTC, Till Korten
Details
emerge --info (emerge--info.txt,5.25 KB, text/plain)
2011-07-04 09:28 UTC, Till Korten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Korten 2011-07-04 09:25:34 UTC
Created attachment 279025 [details]
compile log

trying to compile qt-gui-4.7.2 on x86 with the following CFLAGS on an Athlon 330:
CFLAGS="-O2 -march=native -msse3 -mfpmath=sse -mstackrealign -pipe"

with these cflags it works nicely:
CFLAGS="-O2 -march=native -msse3 -mfpmath=sse -pipe"

however if I permanently disable mstackrealign, I get the infamous mozilla segfaults due to misaligned stacks (see bug #270120 and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838 ).

In these bugs it is also suggested that this error only occurs with the sse CFLAGS enabled, however I think for performance reasons it is better to disable mstackrealign than sse.

Therefore, I suggest to disable the mstackrealign flag in the qt-gui ebuild.
I also had the same problem with qt-scripts-4.6.3.

I attached the compile log and emerge --info
Comment 1 Till Korten 2011-07-04 09:28:04 UTC
Created attachment 279029 [details]
emerge --info
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2011-11-13 15:29:45 UTC
Can you try with a more recent gcc please (e.g. 4.5.3-r1)?
Comment 3 Till Korten 2011-11-13 16:15:37 UTC
unfortunately, I migrated to new hardware (Core i3) and amd64 in the meantime. Therefore, I cannot test on the x86 platform. With 64 bit gcc 4.5.3-r1, qt-gui compiles fine (provided I use make -j1).

I hope someone else can test with a newer gcc and x86.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2011-11-13 20:52:24 UTC
Ok, I'm closing then. If someone else can reproduce this bug on x86 with a newer gcc, please leave a comment here and I'll reopen. Thanks.