Skip to contentSkip to conversation

nativesdk-qtbase 5.9.2 C++11 errors with gcc 6.3?

DISCUSSION Denys Dmytriyenko 4 participants 13 messages Oct 3, 2017 – Jan 17, 2018

lore
Share & tools
lore
#0 lore raw

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'

#1 lore raw

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.

Signature · 1 line
Denys
Quoted 43 lines · Denys Dmytriyenko

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'

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#2 lore raw
Quoted 7 lines · Denys Dmytriyenko

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.

Quoted 51 lines
Signature · 2 lines
-- 
Denys
Quoted 45 lines · Denys Dmytriyenko

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'

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#3 lore raw

Or use one of the CROPS docker containers with gcc6

Quoted 100 lines · Khem Raj
Quoted 7 lines · Denys Dmytriyenko

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.

Quoted 9 lines

--
Denys

Quoted 3 lines · Denys Dmytriyenko

Martin, Khem,

Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm seeing

bunch of

Quoted 1 line
Quoted 1 line

what seems to be C++11 related errors during do_configure of

nativesdk-qtbase.

Quoted 1 line
Quoted 1 line

Target qtbase builds fine and switching to gcc 7.2 seems to resolve it

as well.

Quoted 9 lines
Quoted 9 lines

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,

Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':

Quoted 1 line
Quoted 1 line

../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'

Quoted 3 lines
Quoted 3 lines

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:

Quoted 2 lines
Quoted 2 lines

<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,

Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,

Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,

Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:
note: 'qnumeric_std_wrapper::__builtin_isnan'

Quoted 3 lines
Quoted 3 lines

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:

Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:
error: expected ')' before '(' token

Quoted 3 lines
Quoted 3 lines

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,

Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':

Quoted 1 line
Quoted 1 line

../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'

Quoted 3 lines
Quoted 3 lines

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:

Quoted 6 lines
Quoted 6 lines

<built-in>: note: '__builtin_isfinite'
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
In reply to Khem Raj
Quoted 6 lines · Khem Raj
Quoted 5 lines · Denys Dmytriyenko

Khem,

I tried following on your suggestion to add #include <cmath>, but it is already there in src/corelib/global/qnumeric_p.h

Quoted 7 lines
Quoted 2 lines

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...

Quoted 47 lines
Quoted 46 lines · Denys Dmytriyenko
Quoted 45 lines

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'

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#5 lore raw
Quoted 15 lines · Denys Dmytriyenko
Quoted 6 lines · Khem Raj
Quoted 5 lines · Denys Dmytriyenko

Khem,

I tried following on your suggestion to add #include <cmath>, but it is already there in src/corelib/global/qnumeric_p.h

Quoted 7 lines
Quoted 2 lines

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.

Quoted 8 lines

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

Quoted 48 lines
Quoted 48 lines
Quoted 47 lines · Denys Dmytriyenko
Quoted 45 lines

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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 22 lines · Khem Raj
Quoted 21 lines · Denys Dmytriyenko
Quoted 6 lines · Khem Raj
Quoted 5 lines · Denys Dmytriyenko

Khem,

I tried following on your suggestion to add #include <cmath>, but it is already there in src/corelib/global/qnumeric_p.h

Quoted 7 lines
Quoted 2 lines

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.

Quoted 8 lines
Quoted 1 line

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?

Quoted 48 lines
Quoted 47 lines
Quoted 47 lines
Quoted 46 lines · Denys Dmytriyenko
Quoted 45 lines

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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#7 lore raw
Quoted 23 lines · Denys Dmytriyenko
Quoted 22 lines · Khem Raj
Quoted 21 lines · Denys Dmytriyenko
Quoted 6 lines · Khem Raj
Quoted 5 lines · Denys Dmytriyenko

Khem,

I tried following on your suggestion to add #include <cmath>, but it is already there in src/corelib/global/qnumeric_p.h

Quoted 7 lines
Quoted 2 lines

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.

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

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...

Quoted 58 lines

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?

Quoted 48 lines
Quoted 47 lines
Quoted 47 lines
Quoted 46 lines · Denys Dmytriyenko
Quoted 45 lines

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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#8 lore raw
Quoted 34 lines · Denys Dmytriyenko
Quoted 2 lines · Denys Dmytriyenko
Quoted 1 line · Khem Raj

On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines · Khem Raj
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines

Khem,

I tried following on your suggestion to add #include <cmath>, but

it is

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

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

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

there could be several reasons for that. You can also try to build

on

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

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

Quoted 1 line
Quoted 1 line
Quoted 1 line

gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in

oe-core/master

Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

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

Quoted 10 lines
Quoted 3 lines
Quoted 3 lines

https://github.com/kraj/openembedded-core/tree/kraj/master

https://github.com/kraj/openembedded-core/commit/c5afea428484b8af7449e80db109913b81f40f18

Quoted 1 line
Quoted 1 line

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 ?

Quoted 91 lines
Quoted 10 lines

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?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines

Martin, Khem,

Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm

seeing bunch of

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

what seems to be C++11 related errors during do_configure of

nativesdk-qtbase.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Target qtbase builds fine and switching to gcc 7.2 seems to

resolve it as well.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../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'

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

<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,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:
note: 'qnumeric_std_wrapper::__builtin_isnan'

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:
error: expected ')' before '(' token

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../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'

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

static inline bool isfinite(double d) { return

std::isfinite(d); }

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
                                                ^~~

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
note: suggested alternatives:

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

<built-in>: note: '__builtin_isfinite'
--
_______________________________________________
Openembedded-devel mailing list
[email protected]

http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw
Quoted 43 lines · Khem Raj
Quoted 41 lines · Denys Dmytriyenko
Quoted 2 lines · Denys Dmytriyenko
Quoted 1 line · Khem Raj

On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines · Khem Raj
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines

Khem,

I tried following on your suggestion to add #include <cmath>, but

it is

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

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

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

there could be several reasons for that. You can also try to build

on

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

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

Quoted 1 line
Quoted 1 line
Quoted 1 line

gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in

oe-core/master

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

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

Quoted 1 line
Quoted 1 line

https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf

Quoted 7 lines
Quoted 3 lines

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...

Quoted 90 lines
Quoted 90 lines
Quoted 9 lines

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?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines

Martin, Khem,

Have you tried building Qt 5.9 with gcc 6.3 from oe-core? I'm

seeing bunch of

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

what seems to be C++11 related errors during do_configure of

nativesdk-qtbase.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Target qtbase builds fine and switching to gcc 7.2 seems to

resolve it as well.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

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,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../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'

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

<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,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:
note: 'qnumeric_std_wrapper::__builtin_isnan'

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:
error: expected ')' before '(' token

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:
In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../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'

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

static inline bool isfinite(double d) { return

std::isfinite(d); }

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
                                                ^~~

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:
note: suggested alternatives:

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

<built-in>: note: '__builtin_isfinite'
--
_______________________________________________
Openembedded-devel mailing list
[email protected]

http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#10 lore raw
Quoted 57 lines · Denys Dmytriyenko
Quoted 1 line · Khem Raj

On Fri, Oct 13, 2017 at 1:34 PM Denys Dmytriyenko <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines · Denys Dmytriyenko
Quoted 2 lines · Khem Raj
Quoted 1 line

On Fri, Oct 13, 2017 at 10:35 AM, Denys Dmytriyenko <

[email protected]>

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines · Khem Raj
Quoted 1 line

On Fri, Oct 13, 2017 at 01:21:10AM +0000, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Khem,

I tried following on your suggestion to add #include <cmath>,

but

Quoted 4 lines
Quoted 4 lines

it is

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

already there in src/corelib/global/qnumeric_p.h

Not sure why target qtbase builds fine with oe-core gcc

6.3.0, but

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

nativesdk-qtbase fails with this error... Any more ideas?

Thanks.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Do you use uninative ? if not then try with uninative. It seems to be mixing headers from your build host and nativesdk

sysroot

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

there could be several reasons for that. You can also try to

build

Quoted 2 lines
Quoted 2 lines

on

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

a different distro on host may be one which has gcc6 as host

gcc.

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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

Quoted 1 line
Quoted 1 line
Quoted 1 line

gcc 5.4 on it, while switching between gcc 6.3 and gcc 7.2 in

oe-core/master

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

works with 7.2, but not 6.3.

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

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

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

https://github.com/kraj/openembedded-core/commit/e0c1d5bab99f6fd75fea5f89cecb7dcffdbae3bf

Quoted 4 lines
Quoted 4 lines

And gcc 6.4 from 2 patches above didn't help on Ubuntu 16.04...

Quoted 8 lines
Quoted 4 lines

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

Quoted 115 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

BTW, tried on my Gentoo machine with gcc 6.4 as a host and it

worked...

Quoted 1 line
Quoted 1 line
Quoted 1 line

So, it does look like a host contamination in Ubuntu 16.04 with gcc

5.4.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

But why didn't uninative help?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Tue, Oct 03, 2017 at 07:45:35PM -0400, Denys Dmytriyenko

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Martin, Khem,

Have you tried building Qt 5.9 with gcc 6.3 from oe-core?

I'm

Quoted 11 lines
Quoted 11 lines

seeing bunch of

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

what seems to be C++11 related errors during do_configure of

nativesdk-qtbase.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Target qtbase builds fine and switching to gcc 7.2 seems to

resolve it as well.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Any ideas or pointers? Thanks!

Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Errors are like these:

In file included from

../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:

Quoted 3 lines
Quoted 3 lines

In function 'bool qnumeric_std_wrapper::__builtin_isnan(double)':

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:

Quoted 2 lines
Quoted 2 lines

error: '__builtin_isnan' is not a member of 'std'

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

static inline bool isnan(double d) { return std::isnan(d);

}

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
                                             ^~~

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:45:

Quoted 4 lines
Quoted 4 lines

note: suggested alternatives:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

<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,

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:56,

Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:104:20:

Quoted 2 lines
Quoted 2 lines

note: 'qnumeric_std_wrapper::__builtin_isnan'

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

static inline bool isnan(double d) { return std::isnan(d);

}

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
                    ^

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:

Quoted 3 lines
Quoted 3 lines

At global scope:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:105:20:

Quoted 2 lines
Quoted 2 lines

error: expected ')' before '(' token

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

static inline bool isinf(double d) { return std::isinf(d);

}

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
                    ^

In file included from

../include/QtCore/5.9.2/QtCore/private/qnumeric_p.h:1:0,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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:

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:

Quoted 3 lines
Quoted 3 lines

In function 'bool qnumeric_std_wrapper::__builtin_isfinite(double)':

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:

Quoted 6 lines
Quoted 6 lines

error: '__builtin_isfinite' is not a member of 'std'

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

static inline bool isfinite(double d) { return

std::isfinite(d); }

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
                                                ^~~

../include/QtCore/5.9.2/QtCore/private/../../../../../../git/src/corelib/global/qnumeric_p.h:106:48:

Quoted 16 lines
Quoted 16 lines

note: suggested alternatives:

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

<built-in>: note: '__builtin_isfinite'
--
_______________________________________________
Openembedded-devel mailing list
[email protected]

http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#11 lore raw
In reply to Denys Dmytriyenko
Quoted 14 lines · Denys Dmytriyenko

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:

Quoted 12 lines

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.

Signature · 6 lines
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.
#12 lore raw
Quoted 35 lines · Patrick Ohly
Quoted 15 lines · Denys Dmytriyenko

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:

Quoted 14 lines

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.

Quoted 7 lines

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.

Signature · 6 lines
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.