* [Buildroot] [PATCH] qt5base: fix build error
@ 2016-03-24 11:30 yegorslists at googlemail.com
2016-03-24 13:47 ` Julien CORJON
0 siblings, 1 reply; 2+ messages in thread
From: yegorslists at googlemail.com @ 2016-03-24 11:30 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Apply upstream patch, that disables c++ standard compiler flags
unconditionally for host builds.
Fixes:
http://autobuild.buildroot.net/results/895/8958cfb71efdd3ce32b2145237e865ca8a6a6a7f/
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
...tandard-compiler-flags-for-the-host-build.patch | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch
diff --git a/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch b/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch
new file mode 100644
index 0000000..54e4db8
--- /dev/null
+++ b/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch
@@ -0,0 +1,44 @@
+From e69e69519661954716d59bfa5bbd0626515cfda9 Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Thu, 3 Mar 2016 15:17:31 +0100
+Subject: [PATCH] Disable c++ standard compiler flags for the host build
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+There is no test for c++ standard support for the host build
+(only for the target compiler/build) which leads to trouble
+in some cross compiling environments (old host compiler, new
+cross compiler):
+
+ g++: error: unrecognized command line option ?-std=c++1z?
+
+So disable c++ standard compiler flags unconditionally for host builds.
+
+Task-number: QTBUG-51644
+Change-Id: Ifb3042e125fe199a7e081740d1171d26ccacf0c5
+Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
+Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
+---
+ mkspecs/features/default_post.prf | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
+index cd8d885..561c8f4 100644
+--- a/mkspecs/features/default_post.prf
++++ b/mkspecs/features/default_post.prf
+@@ -95,7 +95,10 @@ breakpad {
+ !isEmpty(QMAKE_STRIP):QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\n\\t)$$quote($$QMAKE_STRIP $$DEBUGFILENAME)
+ }
+
+-c++11|c++14|c++1z {
++# Disable special compiler flags for host builds (needs to be changed for 5.7
++# to fall back to c++11 because since 5.7 c++11 is required everywhere,
++# including host builds).
++if(!host_build|!cross_compile):if(c++11|c++14|c++1z) {
+ c++1z: cxxstd = CXX1Z
+ else: c++14: cxxstd = CXX14
+ else: cxxstd = CXX11
+--
+2.1.4
+
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] qt5base: fix build error
2016-03-24 11:30 [Buildroot] [PATCH] qt5base: fix build error yegorslists at googlemail.com
@ 2016-03-24 13:47 ` Julien CORJON
0 siblings, 0 replies; 2+ messages in thread
From: Julien CORJON @ 2016-03-24 13:47 UTC (permalink / raw)
To: buildroot
Dear Yegor,
Please have a more precise commit log than just "fix build error"
(e.g. qt5base: disable c++ standard compiler flags for the host build)
Le 24/03/2016 12:30, yegorslists at googlemail.com a ?crit :
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Apply upstream patch, that disables c++ standard compiler flags
> unconditionally for host builds.
>
> Fixes:
> http://autobuild.buildroot.net/results/895/8958cfb71efdd3ce32b2145237e865ca8a6a6a7f/
It also fix :
http://autobuild.buildroot.net/results/cc8b6f3713bd1140a4e8fef378525df1f1c88130/
http://autobuild.buildroot.net/results/3e9/3e96a9cf50671d845a664ca711c18f2a883a4737/
http://autobuild.buildroot.net/results/c16/c16066a111c475667eaa01c080e7207dc9cc4cf2/
http://autobuild.buildroot.net/results/af9/af95d158f38becc1004f5b59777afee740c0deae/
http://autobuild.buildroot.net/results/b5e/b5e7ba0c36fb8bff4037fcba89217bdcd840c9a0/
Otherwise you can add my
Reviewed-by: Julien Corjon <corjon.j@ecagroup.com>
Regards,
Julien
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> ...tandard-compiler-flags-for-the-host-build.patch | 44 ++++++++++++++++++++++
> 1 file changed, 44 insertions(+)
> create mode 100644 package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch
>
> diff --git a/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch b/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch
> new file mode 100644
> index 0000000..54e4db8
> --- /dev/null
> +++ b/package/qt5/qt5base/0001-Disable-c-standard-compiler-flags-for-the-host-build.patch
> @@ -0,0 +1,44 @@
> +From e69e69519661954716d59bfa5bbd0626515cfda9 Mon Sep 17 00:00:00 2001
> +From: Peter Seiderer <ps.report@gmx.net>
> +Date: Thu, 3 Mar 2016 15:17:31 +0100
> +Subject: [PATCH] Disable c++ standard compiler flags for the host build
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +There is no test for c++ standard support for the host build
> +(only for the target compiler/build) which leads to trouble
> +in some cross compiling environments (old host compiler, new
> +cross compiler):
> +
> + g++: error: unrecognized command line option ?-std=c++1z?
> +
> +So disable c++ standard compiler flags unconditionally for host builds.
> +
> +Task-number: QTBUG-51644
> +Change-Id: Ifb3042e125fe199a7e081740d1171d26ccacf0c5
> +Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
> +Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> +---
> + mkspecs/features/default_post.prf | 5 ++++-
> + 1 file changed, 4 insertions(+), 1 deletion(-)
> +
> +diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
> +index cd8d885..561c8f4 100644
> +--- a/mkspecs/features/default_post.prf
> ++++ b/mkspecs/features/default_post.prf
> +@@ -95,7 +95,10 @@ breakpad {
> + !isEmpty(QMAKE_STRIP):QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\n\\t)$$quote($$QMAKE_STRIP $$DEBUGFILENAME)
> + }
> +
> +-c++11|c++14|c++1z {
> ++# Disable special compiler flags for host builds (needs to be changed for 5.7
> ++# to fall back to c++11 because since 5.7 c++11 is required everywhere,
> ++# including host builds).
> ++if(!host_build|!cross_compile):if(c++11|c++14|c++1z) {
> + c++1z: cxxstd = CXX1Z
> + else: c++14: cxxstd = CXX14
> + else: cxxstd = CXX11
> +--
> +2.1.4
> +
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-24 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-24 11:30 [Buildroot] [PATCH] qt5base: fix build error yegorslists at googlemail.com
2016-03-24 13:47 ` Julien CORJON
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox