* [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc
@ 2018-08-30 16:31 Fabrice Fontaine
2018-08-31 8:09 ` Thomas Petazzoni
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2018-08-30 16:31 UTC (permalink / raw)
To: buildroot
gcc bug internal compiler error: in validate_condition_mode, at
config/rs6000/rs6000.c:180744. Bug is fixed since gcc 7.
Workaround is to set -mno-isel, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 and
https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01036.html
This bug is also raised on BR2_powerpc_8540, BR2_powerpc_8548 and
BR2_powerpc_e5500.
Fixes:
- http://autobuild.buildroot.net/results/9b9d11b3281a72c8f54fc675408acb96d24d8e7e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- apply workaround for BR2_powerpc_8540, BR2_powerpc_8548 and
BR2_powerpc_e5500
- There is no build failure with gcc 7.x toolchain so replace
BR2_TOOLCHAIN_GCC_AT_LEAST_8 by BR2_TOOLCHAIN_GCC_AT_LEAST_7
package/qt/qt.mk | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index 1dcb05d6af..921ff13d29 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -32,6 +32,15 @@ QT_LDFLAGS = $(TARGET_LDFLAGS)
# use an older c++ standard to prevent build failure
QT_CXXFLAGS += -std=gnu++98
+# gcc bug internal compiler error: in validate_condition_mode, at
+# config/rs6000/rs6000.c:180744. Bug is fixed since gcc 7.
+# Workaround is to set -mno-isel, see
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 and
+# https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01036.html
+ifeq ($(BR2_powerpc_8540)$(BR2_powerpc_8548)$(BR2_powerpc_e500mc)$(BR2_powerpc_e5500):$(BR2_TOOLCHAIN_GCC_AT_LEAST_7),y:)
+QT_CXXFLAGS += -mno-isel
+endif
+
# Qt has some assembly function that are not present in thumb1 mode:
# Error: selected processor does not support Thumb mode `swp r3,r7,[r4]'
# so, we desactivate thumb mode
--
2.14.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc
2018-08-30 16:31 [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc Fabrice Fontaine
@ 2018-08-31 8:09 ` Thomas Petazzoni
2018-08-31 8:42 ` Fabrice Fontaine
2018-09-01 12:49 ` Thomas Petazzoni
2018-09-27 21:19 ` Peter Korsgaard
2 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2018-08-31 8:09 UTC (permalink / raw)
To: buildroot
Hello Fabrice,
Thanks for this new iteration!
On Thu, 30 Aug 2018 18:31:46 +0200, Fabrice Fontaine wrote:
> gcc bug internal compiler error: in validate_condition_mode, at
> config/rs6000/rs6000.c:180744. Bug is fixed since gcc 7.
> Workaround is to set -mno-isel, see
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 and
> https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01036.html
>
> This bug is also raised on BR2_powerpc_8540, BR2_powerpc_8548 and
> BR2_powerpc_e5500.
Just curious, how did you figure out that list of affected platforms ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc
2018-08-31 8:09 ` Thomas Petazzoni
@ 2018-08-31 8:42 ` Fabrice Fontaine
0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2018-08-31 8:42 UTC (permalink / raw)
To: buildroot
Dear Thomas,
Le ven. 31 ao?t 2018 ? 10:10, Thomas Petazzoni <thomas.petazzoni@bootlin.com>
a ?crit :
> Hello Fabrice,
>
> Thanks for this new iteration!
>
> On Thu, 30 Aug 2018 18:31:46 +0200, Fabrice Fontaine wrote:
> > gcc bug internal compiler error: in validate_condition_mode, at
> > config/rs6000/rs6000.c:180744. Bug is fixed since gcc 7.
> > Workaround is to set -mno-isel, see
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 and
> > https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01036.html
> >
> > This bug is also raised on BR2_powerpc_8540, BR2_powerpc_8548 and
> > BR2_powerpc_e5500.
>
> Just curious, how did you figure out that list of affected platforms ?
>
As mentioned in your last email, the link was giving this list:
Target: e500v2 (I was able to reproduce with e500mc, e5500 targets as well).
So I tested these additional architectures and I confirm that they're
affected by this bug.
I also checked e500v1 (8540) and it failed.
There was no issue with e6500 so I think the bug is only affecting e5xxx
but I haven't tested all the powerpc architectures.
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Best Regards,
Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180831/ae3ed4bc/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc
2018-08-30 16:31 [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc Fabrice Fontaine
2018-08-31 8:09 ` Thomas Petazzoni
@ 2018-09-01 12:49 ` Thomas Petazzoni
2018-09-27 21:19 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-09-01 12:49 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 30 Aug 2018 18:31:46 +0200, Fabrice Fontaine wrote:
> gcc bug internal compiler error: in validate_condition_mode, at
> config/rs6000/rs6000.c:180744. Bug is fixed since gcc 7.
> Workaround is to set -mno-isel, see
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 and
> https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01036.html
>
> This bug is also raised on BR2_powerpc_8540, BR2_powerpc_8548 and
> BR2_powerpc_e5500.
>
> Fixes:
> - http://autobuild.buildroot.net/results/9b9d11b3281a72c8f54fc675408acb96d24d8e7e
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2 (after review of Thomas Petazzoni):
> - apply workaround for BR2_powerpc_8540, BR2_powerpc_8548 and
> BR2_powerpc_e5500
> - There is no build failure with gcc 7.x toolchain so replace
> BR2_TOOLCHAIN_GCC_AT_LEAST_8 by BR2_TOOLCHAIN_GCC_AT_LEAST_7
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc
2018-08-30 16:31 [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc Fabrice Fontaine
2018-08-31 8:09 ` Thomas Petazzoni
2018-09-01 12:49 ` Thomas Petazzoni
@ 2018-09-27 21:19 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2018-09-27 21:19 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> gcc bug internal compiler error: in validate_condition_mode, at
> config/rs6000/rs6000.c:180744. Bug is fixed since gcc 7.
> Workaround is to set -mno-isel, see
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 and
> https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01036.html
> This bug is also raised on BR2_powerpc_8540, BR2_powerpc_8548 and
> BR2_powerpc_e5500.
> Fixes:
> - http://autobuild.buildroot.net/results/9b9d11b3281a72c8f54fc675408acb96d24d8e7e
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1 -> v2 (after review of Thomas Petazzoni):
> - apply workaround for BR2_powerpc_8540, BR2_powerpc_8548 and
> BR2_powerpc_e5500
> - There is no build failure with gcc 7.x toolchain so replace
> BR2_TOOLCHAIN_GCC_AT_LEAST_8 by BR2_TOOLCHAIN_GCC_AT_LEAST_7
Committed to 2018.02.x and 2018.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-09-27 21:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-30 16:31 [Buildroot] [PATCH v2,1/1] qt: fix build on powerpc_e500mc Fabrice Fontaine
2018-08-31 8:09 ` Thomas Petazzoni
2018-08-31 8:42 ` Fabrice Fontaine
2018-09-01 12:49 ` Thomas Petazzoni
2018-09-27 21:19 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox