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
Created attachment 272309 [details, diff] patch needed to compile qt on arm
The bug is in gcc and the attached patch is indeed for gcc -> assigning to toolchain.
Is there an upstream PR for this?
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.
Can you test 4.6.2?
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.
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.
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.
I'll do another patchset with this in before we unmask.
Fixed in 4.6.2 p1.1.