* nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
@ 2017-10-03 23:45 Denys Dmytriyenko
2017-10-13 1:21 ` Denys Dmytriyenko
2018-01-17 11:09 ` Patrick Ohly
0 siblings, 2 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2017-10-03 23:45 UTC (permalink / raw)
To: openembedded-devel
Martin, Khem,
Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing bunch of
what seems to be C++11 related errors during do_configure of nativesdk-qtbase.
Target qtbase builds fine and switching to gcc 7.2 seems to resolve it as well.
Any ideas or pointers? Thanks!
Errors are like these:
In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a member of 'std'
static inline bool isnan(double d) { return std::isnan(d); }
^~~
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: note: suggested alternatives:
<built-in>: note: '__builtin_isnan'
In file included from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
from ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20: note: 'qnumeric_std_wrapper::__builtin_isnan'
static inline bool isnan(double d) { return std::isnan(d); }
^
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: At global scope:
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20: error: expected ')' before '(' token
static inline bool isinf(double d) { return std::isinf(d); }
^
In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: error: '__builtin_isfinite' is not a member of 'std'
static inline bool isfinite(double d) { return std::isfinite(d); }
^~~
../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: note: suggested alternatives:
<built-in>: note: '__builtin_isfinite'
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-03 23:45 nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3? Denys Dmytriyenko
@ 2017-10-13 1:21 ` Denys Dmytriyenko
2017-10-13 3:48 ` Khem Raj
2018-01-17 11:09 ` Patrick Ohly
1 sibling, 1 reply; 13+ messages in thread
From: Denys Dmytriyenko @ 2017-10-13 1:21 UTC (permalink / raw)
To: openembedded-devel
Khem,
I tried following on your suggestion to add #include <cmath>, but it is
already there in src/corelib/global/qnumeric_p.h
Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
nativesdk-qtbase fails with this error... Any more ideas? Thanks.
--
Denys
On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> Martin, Khem,
>
> Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing bunch of
> what seems to be C++11 related errors during do_configure of nativesdk-qtbase.
> Target qtbase builds fine and switching to gcc 7.2 seems to resolve it as well.
>
> Any ideas or pointers? Thanks!
>
>
> Errors are like these:
>
> In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a member of 'std'
> static inline bool isnan(double d) { return std::isnan(d); }
> ^~~
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: note: suggested alternatives:
> <built-in>: note: '__builtin_isnan'
> In file included from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> from ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20: note: 'qnumeric_std_wrapper::__builtin_isnan'
> static inline bool isnan(double d) { return std::isnan(d); }
> ^
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: At global scope:
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20: error: expected ')' before '(' token
> static inline bool isinf(double d) { return std::isinf(d); }
> ^
> In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: error: '__builtin_isfinite' is not a member of 'std'
> static inline bool isfinite(double d) { return std::isfinite(d); }
> ^~~
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: note: suggested alternatives:
> <built-in>: note: '__builtin_isfinite'
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 1:21 ` Denys Dmytriyenko
@ 2017-10-13 3:48 ` Khem Raj
2017-10-13 4:02 ` Tim Orling
2017-10-13 17:35 ` Denys Dmytriyenko
0 siblings, 2 replies; 13+ messages in thread
From: Khem Raj @ 2017-10-13 3:48 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: openembedded-devel
On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
> Khem,
>
> I tried following on your suggestion to add #include <cmath>, but it is
> already there in src/corelib/global/qnumeric_p.h
>
> Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
> nativesdk-qtbase fails with this error... Any more ideas? Thanks.
Do you use uninative ? if not then try with uninative.
It seems to be mixing headers from your build host and nativesdk sysroot
there could be several reasons for that. You can also try to build on
a different distro on host may be one which has gcc6 as host gcc.
>
> --
> Denys
>
>
> On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> > Martin, Khem,
> >
> > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing bunch of
> > what seems to be C++11 related errors during do_configure of nativesdk-qtbase.
> > Target qtbase builds fine and switching to gcc 7.2 seems to resolve it as well.
> >
> > Any ideas or pointers? Thanks!
> >
> >
> > Errors are like these:
> >
> > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a member of 'std'
> > static inline bool isnan(double d) { return std::isnan(d); }
> > ^~~
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: note: suggested alternatives:
> > <built-in>: note: '__builtin_isnan'
> > In file included from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> > from ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> > from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20: note: 'qnumeric_std_wrapper::__builtin_isnan'
> > static inline bool isnan(double d) { return std::isnan(d); }
> > ^
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: At global scope:
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20: error: expected ')' before '(' token
> > static inline bool isinf(double d) { return std::isinf(d); }
> > ^
> > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: error: '__builtin_isfinite' is not a member of 'std'
> > static inline bool isfinite(double d) { return std::isfinite(d); }
> > ^~~
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: note: suggested alternatives:
> > <built-in>: note: '__builtin_isfinite'
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 3:48 ` Khem Raj
@ 2017-10-13 4:02 ` Tim Orling
2017-10-13 17:35 ` Denys Dmytriyenko
1 sibling, 0 replies; 13+ messages in thread
From: Tim Orling @ 2017-10-13 4:02 UTC (permalink / raw)
To: Khem Raj, Denys Dmytriyenko; +Cc: openembedded-devel
Or use one of the CROPS docker containers with gcc6
On Thu, Oct 12, 2017 at 8:48 PM Khem Raj <raj.khem@gmail.com> wrote:
> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
> > Khem,
> >
> > I tried following on your suggestion to add #include <cmath>, but it is
> > already there in src/corelib/global/qnumeric_p.h
> >
> > Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
> > nativesdk-qtbase fails with this error... Any more ideas? Thanks.
>
> Do you use uninative ? if not then try with uninative.
> It seems to be mixing headers from your build host and nativesdk sysroot
> there could be several reasons for that. You can also try to build on
> a different distro on host may be one which has gcc6 as host gcc.
>
> >
> > --
> > Denys
> >
> >
> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> > > Martin, Khem,
> > >
> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing
> bunch of
> > > what seems to be C++11 related errors during do_configure of
> nativesdk-qtbase.
> > > Target qtbase builds fine and switching to gcc 7.2 seems to resolve it
> as well.
> > >
> > > Any ideas or pointers? Thanks!
>
>
> > >
> > >
> > > Errors are like these:
> > >
> > > In file included from
> ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> error: '__builtin_isnan' is not a member of 'std'
> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > ^~~
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> note: suggested alternatives:
> > > <built-in>: note: '__builtin_isnan'
> > > In file included from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> > > from
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> > > from
> ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> > > from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:
> note: 'qnumeric_std_wrapper::__builtin_isnan'
> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > ^
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> At global scope:
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:
> error: expected ')' before '(' token
> > > static inline bool isinf(double d) { return std::isinf(d); }
> > > ^
> > > In file included from
> ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> error: '__builtin_isfinite' is not a member of 'std'
> > > static inline bool isfinite(double d) { return std::isfinite(d); }
> > > ^~~
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> note: suggested alternatives:
> > > <built-in>: note: '__builtin_isfinite'
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 3:48 ` Khem Raj
2017-10-13 4:02 ` Tim Orling
@ 2017-10-13 17:35 ` Denys Dmytriyenko
2017-10-13 18:57 ` Khem Raj
1 sibling, 1 reply; 13+ messages in thread
From: Denys Dmytriyenko @ 2017-10-13 17:35 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-devel
On Thu, Oct 12, 2017 at 08:48:25PM -0700, Khem Raj wrote:
> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
> > Khem,
> >
> > I tried following on your suggestion to add #include <cmath>, but it is
> > already there in src/corelib/global/qnumeric_p.h
> >
> > Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
> > nativesdk-qtbase fails with this error... Any more ideas? Thanks.
>
> Do you use uninative ? if not then try with uninative.
> It seems to be mixing headers from your build host and nativesdk sysroot
> there could be several reasons for that. You can also try to build on
> a different distro on host may be one which has gcc6 as host gcc.
Tried uninative - didn't help, same issue.
I'm not so sure host headers are getting in the mix - it's Ubuntu 16.04 with
gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in oe-core/master
works with 7.2, but not 6.3.
I can see if I can try on a host with gcc 6...
> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> > > Martin, Khem,
> > >
> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing bunch of
> > > what seems to be C++11 related errors during do_configure of nativesdk-qtbase.
> > > Target qtbase builds fine and switching to gcc 7.2 seems to resolve it as well.
> > >
> > > Any ideas or pointers? Thanks!
>
>
> > >
> > >
> > > Errors are like these:
> > >
> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a member of 'std'
> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > ^~~
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: note: suggested alternatives:
> > > <built-in>: note: '__builtin_isnan'
> > > In file included from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> > > from ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> > > from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20: note: 'qnumeric_std_wrapper::__builtin_isnan'
> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > ^
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: At global scope:
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20: error: expected ')' before '(' token
> > > static inline bool isinf(double d) { return std::isinf(d); }
> > > ^
> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: error: '__builtin_isfinite' is not a member of 'std'
> > > static inline bool isfinite(double d) { return std::isfinite(d); }
> > > ^~~
> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: note: suggested alternatives:
> > > <built-in>: note: '__builtin_isfinite'
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 17:35 ` Denys Dmytriyenko
@ 2017-10-13 18:57 ` Khem Raj
2017-10-13 19:47 ` Denys Dmytriyenko
0 siblings, 1 reply; 13+ messages in thread
From: Khem Raj @ 2017-10-13 18:57 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: openembeded-devel
On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <denis@denix.org> wrote:
> On Thu, Oct 12, 2017 at 08:48:25PM -0700, Khem Raj wrote:
>> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
>> > Khem,
>> >
>> > I tried following on your suggestion to add #include <cmath>, but it is
>> > already there in src/corelib/global/qnumeric_p.h
>> >
>> > Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
>> > nativesdk-qtbase fails with this error... Any more ideas? Thanks.
>>
>> Do you use uninative ? if not then try with uninative.
>> It seems to be mixing headers from your build host and nativesdk sysroot
>> there could be several reasons for that. You can also try to build on
>> a different distro on host may be one which has gcc6 as host gcc.
>
> Tried uninative - didn't help, same issue.
>
> I'm not so sure host headers are getting in the mix - it's Ubuntu 16.04 with
> gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in oe-core/master
> works with 7.2, but not 6.3.
>
> I can see if I can try on a host with gcc 6...
>
I have gcc 6.4 recipes here
https://github.com/kraj/openembedded-core/tree/kraj/master
https://github.com/kraj/openembedded-core/commit/c5afea428484b8af7449e80db109913b81f40f18
https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf
>
>> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
>> > > Martin, Khem,
>> > >
>> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing bunch of
>> > > what seems to be C++11 related errors during do_configure of nativesdk-qtbase.
>> > > Target qtbase builds fine and switching to gcc 7.2 seems to resolve it as well.
>> > >
>> > > Any ideas or pointers? Thanks!
>>
>>
>> > >
>> > >
>> > > Errors are like these:
>> > >
>> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
>> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a member of 'std'
>> > > static inline bool isnan(double d) { return std::isnan(d); }
>> > > ^~~
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: note: suggested alternatives:
>> > > <built-in>: note: '__builtin_isnan'
>> > > In file included from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
>> > > from ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
>> > > from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
>> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20: note: 'qnumeric_std_wrapper::__builtin_isnan'
>> > > static inline bool isnan(double d) { return std::isnan(d); }
>> > > ^
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: At global scope:
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20: error: expected ')' before '(' token
>> > > static inline bool isinf(double d) { return std::isinf(d); }
>> > > ^
>> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
>> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: error: '__builtin_isfinite' is not a member of 'std'
>> > > static inline bool isfinite(double d) { return std::isfinite(d); }
>> > > ^~~
>> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: note: suggested alternatives:
>> > > <built-in>: note: '__builtin_isfinite'
>> > > --
>> > > _______________________________________________
>> > > Openembedded-devel mailing list
>> > > Openembedded-devel@lists.openembedded.org
>> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 18:57 ` Khem Raj
@ 2017-10-13 19:47 ` Denys Dmytriyenko
2017-10-13 20:34 ` Denys Dmytriyenko
0 siblings, 1 reply; 13+ messages in thread
From: Denys Dmytriyenko @ 2017-10-13 19:47 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
On Fri, Oct 13, 2017 at 11:57:17AM -0700, Khem Raj wrote:
> On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <denis@denix.org> wrote:
> > On Thu, Oct 12, 2017 at 08:48:25PM -0700, Khem Raj wrote:
> >> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
> >> > Khem,
> >> >
> >> > I tried following on your suggestion to add #include <cmath>, but it is
> >> > already there in src/corelib/global/qnumeric_p.h
> >> >
> >> > Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
> >> > nativesdk-qtbase fails with this error... Any more ideas? Thanks.
> >>
> >> Do you use uninative ? if not then try with uninative.
> >> It seems to be mixing headers from your build host and nativesdk sysroot
> >> there could be several reasons for that. You can also try to build on
> >> a different distro on host may be one which has gcc6 as host gcc.
> >
> > Tried uninative - didn't help, same issue.
> >
> > I'm not so sure host headers are getting in the mix - it's Ubuntu 16.04 with
> > gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in oe-core/master
> > works with 7.2, but not 6.3.
> >
> > I can see if I can try on a host with gcc 6...
>
> I have gcc 6.4 recipes here
>
> https://github.com/kraj/openembedded-core/tree/kraj/master
>
> https://github.com/kraj/openembedded-core/commit/c5afea428484b8af7449e80db109913b81f40f18
> https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf
BTW, tried on my Gentoo machine with gcc 6.4 as a host and it worked...
So, it does look like a host contamination in Ubuntu 16.04 with gcc 5.4.
But why didn't uninative help?
> >> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> >> > > Martin, Khem,
> >> > >
> >> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing bunch of
> >> > > what seems to be C++11 related errors during do_configure of nativesdk-qtbase.
> >> > > Target qtbase builds fine and switching to gcc 7.2 seems to resolve it as well.
> >> > >
> >> > > Any ideas or pointers? Thanks!
> >>
> >>
> >> > >
> >> > >
> >> > > Errors are like these:
> >> > >
> >> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> >> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a member of 'std'
> >> > > static inline bool isnan(double d) { return std::isnan(d); }
> >> > > ^~~
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: note: suggested alternatives:
> >> > > <built-in>: note: '__builtin_isnan'
> >> > > In file included from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> >> > > from ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> >> > > from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> >> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20: note: 'qnumeric_std_wrapper::__builtin_isnan'
> >> > > static inline bool isnan(double d) { return std::isnan(d); }
> >> > > ^
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: At global scope:
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20: error: expected ')' before '(' token
> >> > > static inline bool isinf(double d) { return std::isinf(d); }
> >> > > ^
> >> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> >> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: error: '__builtin_isfinite' is not a member of 'std'
> >> > > static inline bool isfinite(double d) { return std::isfinite(d); }
> >> > > ^~~
> >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: note: suggested alternatives:
> >> > > <built-in>: note: '__builtin_isfinite'
> >> > > --
> >> > > _______________________________________________
> >> > > Openembedded-devel mailing list
> >> > > Openembedded-devel@lists.openembedded.org
> >> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 19:47 ` Denys Dmytriyenko
@ 2017-10-13 20:34 ` Denys Dmytriyenko
2017-10-13 22:14 ` Khem Raj
0 siblings, 1 reply; 13+ messages in thread
From: Denys Dmytriyenko @ 2017-10-13 20:34 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
On Fri, Oct 13, 2017 at 03:47:29PM -0400, Denys Dmytriyenko wrote:
> On Fri, Oct 13, 2017 at 11:57:17AM -0700, Khem Raj wrote:
> > On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <denis@denix.org> wrote:
> > > On Thu, Oct 12, 2017 at 08:48:25PM -0700, Khem Raj wrote:
> > >> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
> > >> > Khem,
> > >> >
> > >> > I tried following on your suggestion to add #include <cmath>, but it is
> > >> > already there in src/corelib/global/qnumeric_p.h
> > >> >
> > >> > Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
> > >> > nativesdk-qtbase fails with this error... Any more ideas? Thanks.
> > >>
> > >> Do you use uninative ? if not then try with uninative.
> > >> It seems to be mixing headers from your build host and nativesdk sysroot
> > >> there could be several reasons for that. You can also try to build on
> > >> a different distro on host may be one which has gcc6 as host gcc.
> > >
> > > Tried uninative - didn't help, same issue.
> > >
> > > I'm not so sure host headers are getting in the mix - it's Ubuntu 16.04 with
> > > gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in oe-core/master
> > > works with 7.2, but not 6.3.
> > >
> > > I can see if I can try on a host with gcc 6...
> >
> > I have gcc 6.4 recipes here
> >
> > https://github.com/kraj/openembedded-core/tree/kraj/master
> >
> > https://github.com/kraj/openembedded-core/commit/c5afea428484b8af7449e80db109913b81f40f18
> > https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf
And gcc 6.4 from 2 patches above didn't help on Ubuntu 16.04...
> BTW, tried on my Gentoo machine with gcc 6.4 as a host and it worked...
> So, it does look like a host contamination in Ubuntu 16.04 with gcc 5.4.
> But why didn't uninative help?
>
>
> > >> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> > >> > > Martin, Khem,
> > >> > >
> > >> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing bunch of
> > >> > > what seems to be C++11 related errors during do_configure of nativesdk-qtbase.
> > >> > > Target qtbase builds fine and switching to gcc 7.2 seems to resolve it as well.
> > >> > >
> > >> > > Any ideas or pointers? Thanks!
> > >>
> > >>
> > >> > >
> > >> > >
> > >> > > Errors are like these:
> > >> > >
> > >> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > >> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a member of 'std'
> > >> > > static inline bool isnan(double d) { return std::isnan(d); }
> > >> > > ^~~
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45: note: suggested alternatives:
> > >> > > <built-in>: note: '__builtin_isnan'
> > >> > > In file included from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> > >> > > from ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> > >> > > from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> > >> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20: note: 'qnumeric_std_wrapper::__builtin_isnan'
> > >> > > static inline bool isnan(double d) { return std::isnan(d); }
> > >> > > ^
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: At global scope:
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20: error: expected ')' before '(' token
> > >> > > static inline bool isinf(double d) { return std::isinf(d); }
> > >> > > ^
> > >> > > In file included from ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > >> > > from /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h: In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: error: '__builtin_isfinite' is not a member of 'std'
> > >> > > static inline bool isfinite(double d) { return std::isfinite(d); }
> > >> > > ^~~
> > >> > > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48: note: suggested alternatives:
> > >> > > <built-in>: note: '__builtin_isfinite'
> > >> > > --
> > >> > > _______________________________________________
> > >> > > Openembedded-devel mailing list
> > >> > > Openembedded-devel@lists.openembedded.org
> > >> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >>
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 20:34 ` Denys Dmytriyenko
@ 2017-10-13 22:14 ` Khem Raj
2017-10-13 22:58 ` Denys Dmytriyenko
0 siblings, 1 reply; 13+ messages in thread
From: Khem Raj @ 2017-10-13 22:14 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: openembeded-devel
On Fri, Oct 13, 2017 at 1:34 PM Denys Dmytriyenko <denis@denix.org> wrote:
> On Fri, Oct 13, 2017 at 03:47:29PM -0400, Denys Dmytriyenko wrote:
> > On Fri, Oct 13, 2017 at 11:57:17AM -0700, Khem Raj wrote:
> > > On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <denis@denix.org>
> wrote:
> > > > On Thu, Oct 12, 2017 at 08:48:25PM -0700, Khem Raj wrote:
> > > >> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
> > > >> > Khem,
> > > >> >
> > > >> > I tried following on your suggestion to add #include <cmath>, but
> it is
> > > >> > already there in src/corelib/global/qnumeric_p.h
> > > >> >
> > > >> > Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
> > > >> > nativesdk-qtbase fails with this error... Any more ideas? Thanks.
> > > >>
> > > >> Do you use uninative ? if not then try with uninative.
> > > >> It seems to be mixing headers from your build host and nativesdk
> sysroot
> > > >> there could be several reasons for that. You can also try to build
> on
> > > >> a different distro on host may be one which has gcc6 as host gcc.
> > > >
> > > > Tried uninative - didn't help, same issue.
> > > >
> > > > I'm not so sure host headers are getting in the mix - it's Ubuntu
> 16.04 with
> > > > gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in
> oe-core/master
> > > > works with 7.2, but not 6.3.
> > > >
> > > > I can see if I can try on a host with gcc 6...
> > >
> > > I have gcc 6.4 recipes here
> > >
> > > https://github.com/kraj/openembedded-core/tree/kraj/master
> > >
> > >
> https://github.com/kraj/openembedded-core/commit/c5afea428484b8af7449e80db109913b81f40f18
> > >
> https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf
>
> And gcc 6.4 from 2 patches above didn't help on Ubuntu 16.04...
>
>
Ok I think it could be the c++ abi change that Ubuntu headers might be
having in combination with sdk
Did old OE releases with gcc6 on this host fail in same way ?
>
> > BTW, tried on my Gentoo machine with gcc 6.4 as a host and it worked...
> > So, it does look like a host contamination in Ubuntu 16.04 with gcc 5.4.
> > But why didn't uninative help?
> >
> >
> > > >> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> > > >> > > Martin, Khem,
> > > >> > >
> > > >> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm
> seeing bunch of
> > > >> > > what seems to be C++11 related errors during do_configure of
> nativesdk-qtbase.
> > > >> > > Target qtbase builds fine and switching to gcc 7.2 seems to
> resolve it as well.
> > > >> > >
> > > >> > > Any ideas or pointers? Thanks!
> > > >>
> > > >>
> > > >> > >
> > > >> > >
> > > >> > > Errors are like these:
> > > >> > >
> > > >> > > In file included from
> ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > >> > > from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> error: '__builtin_isnan' is not a member of 'std'
> > > >> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > >> > > ^~~
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> note: suggested alternatives:
> > > >> > > <built-in>: note: '__builtin_isnan'
> > > >> > > In file included from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> > > >> > > from
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> > > >> > > from
> ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> > > >> > > from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:
> note: 'qnumeric_std_wrapper::__builtin_isnan'
> > > >> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > >> > > ^
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> At global scope:
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:
> error: expected ')' before '(' token
> > > >> > > static inline bool isinf(double d) { return std::isinf(d); }
> > > >> > > ^
> > > >> > > In file included from
> ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > >> > > from
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> error: '__builtin_isfinite' is not a member of 'std'
> > > >> > > static inline bool isfinite(double d) { return
> std::isfinite(d); }
> > > >> > > ^~~
> > > >> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> note: suggested alternatives:
> > > >> > > <built-in>: note: '__builtin_isfinite'
> > > >> > > --
> > > >> > > _______________________________________________
> > > >> > > Openembedded-devel mailing list
> > > >> > > Openembedded-devel@lists.openembedded.org
> > > >> > >
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > >>
> > >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 22:14 ` Khem Raj
@ 2017-10-13 22:58 ` Denys Dmytriyenko
2017-10-13 23:05 ` Khem Raj
0 siblings, 1 reply; 13+ messages in thread
From: Denys Dmytriyenko @ 2017-10-13 22:58 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
On Fri, Oct 13, 2017 at 10:14:49PM +0000, Khem Raj wrote:
> On Fri, Oct 13, 2017 at 1:34 PM Denys Dmytriyenko <denis@denix.org> wrote:
>
> > On Fri, Oct 13, 2017 at 03:47:29PM -0400, Denys Dmytriyenko wrote:
> > > On Fri, Oct 13, 2017 at 11:57:17AM -0700, Khem Raj wrote:
> > > > On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <denis@denix.org>
> > wrote:
> > > > > On Thu, Oct 12, 2017 at 08:48:25PM -0700, Khem Raj wrote:
> > > > >> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko wrote:
> > > > >> > Khem,
> > > > >> >
> > > > >> > I tried following on your suggestion to add #include <cmath>, but
> > it is
> > > > >> > already there in src/corelib/global/qnumeric_p.h
> > > > >> >
> > > > >> > Not sure why target qtbase builds fine with oe-core gcc 6.3.0, but
> > > > >> > nativesdk-qtbase fails with this error... Any more ideas? Thanks.
> > > > >>
> > > > >> Do you use uninative ? if not then try with uninative.
> > > > >> It seems to be mixing headers from your build host and nativesdk
> > sysroot
> > > > >> there could be several reasons for that. You can also try to build
> > on
> > > > >> a different distro on host may be one which has gcc6 as host gcc.
> > > > >
> > > > > Tried uninative - didn't help, same issue.
> > > > >
> > > > > I'm not so sure host headers are getting in the mix - it's Ubuntu
> > 16.04 with
> > > > > gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in
> > oe-core/master
> > > > > works with 7.2, but not 6.3.
> > > > >
> > > > > I can see if I can try on a host with gcc 6...
> > > >
> > > > I have gcc 6.4 recipes here
> > > >
> > > > https://github.com/kraj/openembedded-core/tree/kraj/master
> > > >
> > > >
> > https://github.com/kraj/openembedded-core/commit/c5afea428484b8af7449e80db109913b81f40f18
> > > >
> > https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf
> >
> > And gcc 6.4 from 2 patches above didn't help on Ubuntu 16.04...
> >
> >
> Ok I think it could be the c++ abi change that Ubuntu headers might be
> having in combination with sdk
>
> Did old OE releases with gcc6 on this host fail in same way ?
Nope, been using Ubuntu 16.04 with morty a lot w/o any issues, including past
versions of Qt5. This is the first time I see this issue with Qt 5.9...
> > > BTW, tried on my Gentoo machine with gcc 6.4 as a host and it worked...
> > > So, it does look like a host contamination in Ubuntu 16.04 with gcc 5.4.
> > > But why didn't uninative help?
> > >
> > >
> > > > >> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko wrote:
> > > > >> > > Martin, Khem,
> > > > >> > >
> > > > >> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm
> > seeing bunch of
> > > > >> > > what seems to be C++11 related errors during do_configure of
> > nativesdk-qtbase.
> > > > >> > > Target qtbase builds fine and switching to gcc 7.2 seems to
> > resolve it as well.
> > > > >> > >
> > > > >> > > Any ideas or pointers? Thanks!
> > > > >>
> > > > >>
> > > > >> > >
> > > > >> > >
> > > > >> > > Errors are like these:
> > > > >> > >
> > > > >> > > In file included from
> > ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > > >> > > from
> > /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> > In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> > error: '__builtin_isnan' is not a member of 'std'
> > > > >> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > > >> > > ^~~
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> > note: suggested alternatives:
> > > > >> > > <built-in>: note: '__builtin_isnan'
> > > > >> > > In file included from
> > /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> > > > >> > > from
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> > > > >> > > from
> > ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> > > > >> > > from
> > /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:
> > note: 'qnumeric_std_wrapper::__builtin_isnan'
> > > > >> > > static inline bool isnan(double d) { return std::isnan(d); }
> > > > >> > > ^
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> > At global scope:
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:
> > error: expected ')' before '(' token
> > > > >> > > static inline bool isinf(double d) { return std::isinf(d); }
> > > > >> > > ^
> > > > >> > > In file included from
> > ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > > >> > > from
> > /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> > In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> > error: '__builtin_isfinite' is not a member of 'std'
> > > > >> > > static inline bool isfinite(double d) { return
> > std::isfinite(d); }
> > > > >> > > ^~~
> > > > >> > >
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> > note: suggested alternatives:
> > > > >> > > <built-in>: note: '__builtin_isfinite'
> > > > >> > > --
> > > > >> > > _______________________________________________
> > > > >> > > Openembedded-devel mailing list
> > > > >> > > Openembedded-devel@lists.openembedded.org
> > > > >> > >
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > > >>
> > > >
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-13 22:58 ` Denys Dmytriyenko
@ 2017-10-13 23:05 ` Khem Raj
0 siblings, 0 replies; 13+ messages in thread
From: Khem Raj @ 2017-10-13 23:05 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: openembeded-devel
On Fri, Oct 13, 2017 at 3:58 PM Denys Dmytriyenko <denis@denix.org> wrote:
> On Fri, Oct 13, 2017 at 10:14:49PM +0000, Khem Raj wrote:
> > On Fri, Oct 13, 2017 at 1:34 PM Denys Dmytriyenko <denis@denix.org>
> wrote:
> >
> > > On Fri, Oct 13, 2017 at 03:47:29PM -0400, Denys Dmytriyenko wrote:
> > > > On Fri, Oct 13, 2017 at 11:57:17AM -0700, Khem Raj wrote:
> > > > > On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <
> denis@denix.org>
> > > wrote:
> > > > > > On Thu, Oct 12, 2017 at 08:48:25PM -0700, Khem Raj wrote:
> > > > > >> On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko
> wrote:
> > > > > >> > Khem,
> > > > > >> >
> > > > > >> > I tried following on your suggestion to add #include <cmath>,
> but
> > > it is
> > > > > >> > already there in src/corelib/global/qnumeric_p.h
> > > > > >> >
> > > > > >> > Not sure why target qtbase builds fine with oe-core gcc
> 6.3.0, but
> > > > > >> > nativesdk-qtbase fails with this error... Any more ideas?
> Thanks.
> > > > > >>
> > > > > >> Do you use uninative ? if not then try with uninative.
> > > > > >> It seems to be mixing headers from your build host and nativesdk
> > > sysroot
> > > > > >> there could be several reasons for that. You can also try to
> build
> > > on
> > > > > >> a different distro on host may be one which has gcc6 as host
> gcc.
> > > > > >
> > > > > > Tried uninative - didn't help, same issue.
> > > > > >
> > > > > > I'm not so sure host headers are getting in the mix - it's Ubuntu
> > > 16.04 with
> > > > > > gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in
> > > oe-core/master
> > > > > > works with 7.2, but not 6.3.
> > > > > >
> > > > > > I can see if I can try on a host with gcc 6...
> > > > >
> > > > > I have gcc 6.4 recipes here
> > > > >
> > > > > https://github.com/kraj/openembedded-core/tree/kraj/master
> > > > >
> > > > >
> > >
> https://github.com/kraj/openembedded-core/commit/c5afea428484b8af7449e80db109913b81f40f18
> > > > >
> > >
> https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf
> > >
> > > And gcc 6.4 from 2 patches above didn't help on Ubuntu 16.04...
> > >
> > >
> > Ok I think it could be the c++ abi change that Ubuntu headers might be
> > having in combination with sdk
> >
> > Did old OE releases with gcc6 on this host fail in same way ?
>
> Nope, been using Ubuntu 16.04 with morty a lot w/o any issues, including
> past
> versions of Qt5. This is the first time I see this issue with Qt 5.9...
It probably never got tested in previous versions with this particular case
May be try reducing the testcase to small one or see if you can compile
same version of qt with morty
>
>
>
> > > > BTW, tried on my Gentoo machine with gcc 6.4 as a host and it
> worked...
> > > > So, it does look like a host contamination in Ubuntu 16.04 with gcc
> 5.4.
> > > > But why didn't uninative help?
> > > >
> > > >
> > > > > >> > On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko
> wrote:
> > > > > >> > > Martin, Khem,
> > > > > >> > >
> > > > > >> > > Have you tried building Qt 5.9 with gcc 6.3 from oe-core?
> I'm
> > > seeing bunch of
> > > > > >> > > what seems to be C++11 related errors during do_configure of
> > > nativesdk-qtbase.
> > > > > >> > > Target qtbase builds fine and switching to gcc 7.2 seems to
> > > resolve it as well.
> > > > > >> > >
> > > > > >> > > Any ideas or pointers? Thanks!
> > > > > >>
> > > > > >>
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > Errors are like these:
> > > > > >> > >
> > > > > >> > > In file included from
> > > ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > > > >> > > from
> > >
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> > > In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> > > error: '__builtin_isnan' is not a member of 'std'
> > > > > >> > > static inline bool isnan(double d) { return std::isnan(d);
> }
> > > > > >> > > ^~~
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:
> > > note: suggested alternatives:
> > > > > >> > > <built-in>: note: '__builtin_isnan'
> > > > > >> > > In file included from
> > >
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/recipe-sysroot/tmp/sdk/sysroots/x86_64-oe-linux/usr/include/c++/6.3.0/cmath:45:0,
> > > > > >> > > from
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,
> > > > > >> > > from
> > > ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,
> > > > > >> > > from
> > >
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:
> > > note: 'qnumeric_std_wrapper::__builtin_isnan'
> > > > > >> > > static inline bool isnan(double d) { return std::isnan(d);
> }
> > > > > >> > > ^
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> > > At global scope:
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:
> > > error: expected ')' before '(' token
> > > > > >> > > static inline bool isinf(double d) { return std::isinf(d);
> }
> > > > > >> > > ^
> > > > > >> > > In file included from
> > > ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > > > > >> > > from
> > >
> /OE/master/build/tmp-glibc/work/x86_64-nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-r0/git/src/corelib/tools/qarraydata.cpp:42:
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
> > > In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> > > error: '__builtin_isfinite' is not a member of 'std'
> > > > > >> > > static inline bool isfinite(double d) { return
> > > std::isfinite(d); }
> > > > > >> > > ^~~
> > > > > >> > >
> > >
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
> > > note: suggested alternatives:
> > > > > >> > > <built-in>: note: '__builtin_isfinite'
> > > > > >> > > --
> > > > > >> > > _______________________________________________
> > > > > >> > > Openembedded-devel mailing list
> > > > > >> > > Openembedded-devel@lists.openembedded.org
> > > > > >> > >
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > > > >>
> > > > >
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2017-10-03 23:45 nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3? Denys Dmytriyenko
2017-10-13 1:21 ` Denys Dmytriyenko
@ 2018-01-17 11:09 ` Patrick Ohly
2018-01-17 11:20 ` Patrick Ohly
1 sibling, 1 reply; 13+ messages in thread
From: Patrick Ohly @ 2018-01-17 11:09 UTC (permalink / raw)
To: Denys Dmytriyenko, openembedded-devel
On Tue, 2017-10-03 at 19:45 -0400, Denys Dmytriyenko wrote:
> Martin, Khem,
>
> Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing
> bunch of
> what seems to be C++11 related errors during do_configure of
> nativesdk-qtbase.
> Target qtbase builds fine and switching to gcc 7.2 seems to resolve
> it as well.
>
> Any ideas or pointers? Thanks!
>
>
> Errors are like these:
>
> In file included from
> ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> from /OE/master/build/tmp-glibc/work/x86_64-
> nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-
> r0/git/src/corelib/tools/qarraydata.cpp:42:
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/core
> lib/global/qnumeric_p.h: In function 'bool
> qnumeric_std_wrapper::__builtin_isnan(double)':
> ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/core
> lib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a
> member of 'std'
> static inline bool isnan(double d) { return std::isnan(d); }
I'm getting the same error when building qemu 2.8.0 for intel-corei7-64
with gcc 6.3.0.
The reason seems to be that somewhere there's a
#define isnan __builtin_isnan
which doesn't work in C++ because std::__builtin_isnan does not
exist.
I'm still looking for the define... if someone has suggestions, I'm all
ears.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?
2018-01-17 11:09 ` Patrick Ohly
@ 2018-01-17 11:20 ` Patrick Ohly
0 siblings, 0 replies; 13+ messages in thread
From: Patrick Ohly @ 2018-01-17 11:20 UTC (permalink / raw)
To: Denys Dmytriyenko, openembedded-devel
On Wed, 2018-01-17 at 12:09 +0100, Patrick Ohly wrote:
> On Tue, 2017-10-03 at 19:45 -0400, Denys Dmytriyenko wrote:
> > Martin, Khem,
> >
> > Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm
> > seeing
> > bunch of
> > what seems to be C++11 related errors during do_configure of
> > nativesdk-qtbase.
> > Target qtbase builds fine and switching to gcc 7.2 seems to resolve
> > it as well.
> >
> > Any ideas or pointers? Thanks!
> >
> >
> > Errors are like these:
> >
> > In file included from
> > ../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,
> > from /OE/master/build/tmp-glibc/work/x86_64-
> > nativesdk-oe-linux/nativesdk-qtbase/5.9.2+gitAUTOINC+73573fce29-
> > r0/git/src/corelib/tools/qarraydata.cpp:42:
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/co
> > re
> > lib/global/qnumeric_p.h: In function 'bool
> > qnumeric_std_wrapper::__builtin_isnan(double)':
> > ../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/co
> > re
> > lib/global/qnumeric_p.h:104:45: error: '__builtin_isnan' is not a
> > member of 'std'
> > static inline bool isnan(double d) { return std::isnan(d); }
>
> I'm getting the same error when building qemu 2.8.0 for intel-corei7-
> 64
> with gcc 6.3.0.
>
> The reason seems to be that somewhere there's a
> #define isnan __builtin_isnan
> which doesn't work in C++ because std::__builtin_isnan does not
> exist.
>
> I'm still looking for the define... if someone has suggestions, I'm
> all ears.
Seems to be from /usr/include/math.h, which gets included by the
corresponding C++ header /usr/include/c++/6.3.0/cmath.
C++ explicitly states that cmath exposes functionality of math.h inside
the std namespace (https://stackoverflow.com/questions/32606023/when-us
ing-c-headers-in-c-should-we-use-functions-from-std-or-the-global-na),
so the QEMU code is correct.
To me this is starting to look like a bug in the toolchain.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2018-01-17 11:20 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-03 23:45 nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3? Denys Dmytriyenko
2017-10-13 1:21 ` Denys Dmytriyenko
2017-10-13 3:48 ` Khem Raj
2017-10-13 4:02 ` Tim Orling
2017-10-13 17:35 ` Denys Dmytriyenko
2017-10-13 18:57 ` Khem Raj
2017-10-13 19:47 ` Denys Dmytriyenko
2017-10-13 20:34 ` Denys Dmytriyenko
2017-10-13 22:14 ` Khem Raj
2017-10-13 22:58 ` Denys Dmytriyenko
2017-10-13 23:05 ` Khem Raj
2018-01-17 11:09 ` Patrick Ohly
2018-01-17 11:20 ` Patrick Ohly
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.