* [Buildroot] [PATCH] qt: build using old C++ standart
@ 2016-08-19 16:18 Vlad Zakharov
2016-08-19 17:21 ` Khem Raj
2016-08-19 21:08 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Vlad Zakharov @ 2016-08-19 16:18 UTC (permalink / raw)
To: buildroot
'std::auto_ptr' is deprecated with gcc-6 but is used in qt4 code.
So we have to build using old C++ standart to prevent build failures.
qt4 is not being developed no more, so unfortunately we can't update
obsolete C++ code and have to add this workaround.
Fixes:
http://autobuild.buildroot.net/results/541/54172d55f39b2fcfa5b7fb4d4ee01566678babbc//
and also Qt build for ARC.
Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
---
package/qt/qt.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index 09b8dc2..41cdd1a 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -41,6 +41,11 @@ QT_CFLAGS = $(TARGET_CFLAGS)
QT_CXXFLAGS = $(TARGET_CXXFLAGS)
QT_LDFLAGS = $(TARGET_LDFLAGS)
+# Qt WebKit build fails when gcc-6 is used for build.
+# 'std::auto_ptr' is deprecated with gcc-6
+# So, we have to use old c++ standart to prevent build failure
+QT_CXXFLAGS += -std=gnu++98
+
# 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.6.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] qt: build using old C++ standart
2016-08-19 16:18 [Buildroot] [PATCH] qt: build using old C++ standart Vlad Zakharov
@ 2016-08-19 17:21 ` Khem Raj
2016-08-19 20:01 ` Alexey Brodkin
2016-08-19 21:08 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2016-08-19 17:21 UTC (permalink / raw)
To: buildroot
> On Aug 19, 2016, at 9:18 AM, Vlad Zakharov <Vladislav.Zakharov@synopsys.com> wrote:
>
> 'std::auto_ptr' is deprecated with gcc-6 but is used in qt4 code.
> So we have to build using old C++ standart to prevent build failures.
>
> qt4 is not being developed no more, so unfortunately we can't update
> obsolete C++ code and have to add this workaround.
>
> Fixes:
> http://autobuild.buildroot.net/results/541/54172d55f39b2fcfa5b7fb4d4ee01566678babbc//
> and also Qt build for ARC.
>
> Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
> ---
> package/qt/qt.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/qt/qt.mk b/package/qt/qt.mk
> index 09b8dc2..41cdd1a 100644
> --- a/package/qt/qt.mk
> +++ b/package/qt/qt.mk
> @@ -41,6 +41,11 @@ QT_CFLAGS = $(TARGET_CFLAGS)
> QT_CXXFLAGS = $(TARGET_CXXFLAGS)
> QT_LDFLAGS = $(TARGET_LDFLAGS)
>
> +# Qt WebKit build fails when gcc-6 is used for build.
> +# 'std::auto_ptr' is deprecated with gcc-6
> +# So, we have to use old c++ standart to prevent build failure
> +QT_CXXFLAGS += -std=gnu++98
you might add -Wno-deprecated as well.
> +
> # 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.6.3
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160819/de25c515/attachment.asc>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] qt: build using old C++ standart
2016-08-19 17:21 ` Khem Raj
@ 2016-08-19 20:01 ` Alexey Brodkin
2016-08-19 20:43 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Alexey Brodkin @ 2016-08-19 20:01 UTC (permalink / raw)
To: buildroot
Hi Khem,
On Fri, 2016-08-19 at 10:21 -0700, Khem Raj wrote:
> >
> > On Aug 19, 2016, at 9:18 AM, Vlad Zakharov <Vladislav.Zakharov@synopsys.com> wrote:
> >
> > 'std::auto_ptr' is deprecated with gcc-6 but is used in qt4 code.
> > So we have to build using old C++ standart to prevent build failures.
> >
> > qt4 is not being developed no more, so unfortunately we can't update
> > obsolete C++ code and have to add this workaround.
> >
> > Fixes:
> > http://autobuild.buildroot.net/results/541/54172d55f39b2fcfa5b7fb4d4ee01566678babbc//
> > and also Qt build for ARC.
> >
> > Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
> > ---
> > package/qt/qt.mk | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/package/qt/qt.mk b/package/qt/qt.mk
> > index 09b8dc2..41cdd1a 100644
> > --- a/package/qt/qt.mk
> > +++ b/package/qt/qt.mk
> > @@ -41,6 +41,11 @@ QT_CFLAGS = $(TARGET_CFLAGS)
> > QT_CXXFLAGS = $(TARGET_CXXFLAGS)
> > QT_LDFLAGS = $(TARGET_LDFLAGS)
> >
> > +# Qt WebKit build fails when gcc-6 is used for build.
> > +# 'std::auto_ptr' is deprecated with gcc-6
> > +# So, we have to use old c++ standart to prevent build failure
> > +QT_CXXFLAGS += -std=gnu++98
>
> you might add -Wno-deprecated as well.
Why would we need it if "-std=gnu++98" already fixes the build problem?
-Alexey
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] qt: build using old C++ standart
2016-08-19 20:01 ` Alexey Brodkin
@ 2016-08-19 20:43 ` Khem Raj
0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2016-08-19 20:43 UTC (permalink / raw)
To: buildroot
> On Aug 19, 2016, at 1:01 PM, Alexey Brodkin <Alexey.Brodkin@synopsys.com> wrote:
>
> Hi Khem,
>
> On Fri, 2016-08-19 at 10:21 -0700, Khem Raj wrote:
>>>
>>> On Aug 19, 2016, at 9:18 AM, Vlad Zakharov <Vladislav.Zakharov@synopsys.com> wrote:
>>>
>>> 'std::auto_ptr' is deprecated with gcc-6 but is used in qt4 code.
>>> So we have to build using old C++ standart to prevent build failures.
>>>
>>> qt4 is not being developed no more, so unfortunately we can't update
>>> obsolete C++ code and have to add this workaround.
>>>
>>> Fixes:
>>> http://autobuild.buildroot.net/results/541/54172d55f39b2fcfa5b7fb4d4ee01566678babbc//
>>> and also Qt build for ARC.
>>>
>>> Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
>>> ---
>>> package/qt/qt.mk | 5 +++++
>>> 1 file changed, 5 insertions(+)
>>>
>>> diff --git a/package/qt/qt.mk b/package/qt/qt.mk
>>> index 09b8dc2..41cdd1a 100644
>>> --- a/package/qt/qt.mk
>>> +++ b/package/qt/qt.mk
>>> @@ -41,6 +41,11 @@ QT_CFLAGS = $(TARGET_CFLAGS)
>>> QT_CXXFLAGS = $(TARGET_CXXFLAGS)
>>> QT_LDFLAGS = $(TARGET_LDFLAGS)
>>>
>>> +# Qt WebKit build fails when gcc-6 is used for build.
>>> +# 'std::auto_ptr' is deprecated with gcc-6
>>> +# So, we have to use old c++ standart to prevent build failure
>>> +QT_CXXFLAGS += -std=gnu++98
>>
>> you might add -Wno-deprecated as well.
>
> Why would we need it if "-std=gnu++98" already fixes the build problem?
IIRC there were issues when -werror was on, there still were warnings
on some architectures, may be in BR such a case is not encountered yet.
>
> -Alexey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160819/b81239b8/attachment.asc>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] qt: build using old C++ standart
2016-08-19 16:18 [Buildroot] [PATCH] qt: build using old C++ standart Vlad Zakharov
2016-08-19 17:21 ` Khem Raj
@ 2016-08-19 21:08 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2016-08-19 21:08 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 19 Aug 2016 19:18:43 +0300, Vlad Zakharov wrote:
> 'std::auto_ptr' is deprecated with gcc-6 but is used in qt4 code.
> So we have to build using old C++ standart to prevent build failures.
Nit: we say "standard" and not "standart" in english. I've fixed that
up, and applied your patch to master. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-08-19 21:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-19 16:18 [Buildroot] [PATCH] qt: build using old C++ standart Vlad Zakharov
2016-08-19 17:21 ` Khem Raj
2016-08-19 20:01 ` Alexey Brodkin
2016-08-19 20:43 ` Khem Raj
2016-08-19 21:08 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox