Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366253 - [4.6] x11-libs/qt-core fails to compile on arm
Summary: [4.6] x11-libs/qt-core fails to compile on arm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-05-06 17:38 UTC by Alexander Holler
Modified: 2011-12-06 00:52 UTC (History)
3 users (show)

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


Attachments
patch needed to compile qt on arm (strict_volatile.patch,1.06 KB, patch)
2011-05-06 17:39 UTC, Alexander Holler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Holler 2011-05-06 17:38:45 UTC
To compile qt with gcc 4.6 on ARM a patch is needed to fix an alignment issue.

See http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01477.html

I've attached a ready to use patch.

Reproducible: Always
Comment 1 Alexander Holler 2011-05-06 17:39:50 UTC
Created attachment 272309 [details, diff]
patch needed to compile qt on arm
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2011-05-10 22:04:21 UTC
The bug is in gcc and the attached patch is indeed for gcc -> assigning to toolchain.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2011-06-23 03:33:13 UTC
Is there an upstream PR for this?
Comment 4 Alexander Holler 2011-06-24 21:28:00 UTC
I haven't seen a PR-number for this anywhere, just the message on gcc's ml and the bugs from ubuntu and debian. Don't know if the Linaro-people are filing gcc-bugs or if their stuff gets upstream somehow else.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2011-10-30 19:37:50 UTC
Can you test 4.6.2?
Comment 6 Jean-Francis Roy 2011-11-01 14:58:28 UTC
I ran into this bug with GCC 4.6.1-r1, and I confirm that it's still a problem with GCC 4.6.2. It fails at the exact same place.

I'm going to test the patch and post results.
Comment 7 Jean-Francis Roy 2011-11-02 01:47:22 UTC
I confirm that the patch from comment #1 resolves this issue. I tested the patch against gcc-4.6.2.

However qt-gui-4.7.4 fails for some other issue, I will create another bug for it if I can't find the solution.
Comment 8 Alexander Holler 2011-11-06 17:57:09 UTC
I haven't tried gcc 4.6.2 without the patch, but the patch applied cleanly and I could compile qt-4.7.4 with gcc 4.6.2 (and that patch) without any problems.

qt-gui still doesn't work with -std=gnu++0x (on arm, because qtreal is float and not double), but that is something completely different.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2011-11-09 01:33:05 UTC
I'll do another patchset with this in before we unmask.
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2011-12-06 00:52:41 UTC
Fixed in 4.6.2 p1.1.