<div><br><div class="gmail_quote"><div>On Wed, Apr 26, 2017 at 9:50 AM Martin Kelly <<a href="mailto:mkelly@xevo.com">mkelly@xevo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/25/2017 05:44 PM, Khem Raj wrote:<br>
><br>
><br>
> On 4/20/17 5:04 PM, Martin Kelly wrote:<br>
>> Hi,<br>
>><br>
>> After compiling a package with GCC 6, I noticed the following error,<br>
>> which is a known issue:<br>
>><br>
>> <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129" rel="noreferrer" target="_blank">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129</a><br>
>><br>
>> The problem is caused by adding -isystem /usr/include, which breaks the<br>
>> GCC 6's #include_next. I see that Khem Raj already removed this for the<br>
>> nativesdk [1], but it seems we need a similar fix for other packages, as<br>
>> we are still adding -isystem in meta/conf/bitbake.conf:<br>
>><br>
>> [snip]<br>
>> BUILDSDK_CPPFLAGS = "-isystem${STAGING_INCDIR}"<br>
>> [snip]<br>
><br>
> You must be not using master since it has been fixed by<br>
> <a href="http://git.openembedded.org/openembedded-core/commit/meta/conf/bitbake.conf?id=88ec93d152762aedeaa231d2732e9d4b9843795a" rel="noreferrer" target="_blank">http://git.openembedded.org/openembedded-core/commit/meta/conf/bitbake.conf?id=88ec93d152762aedeaa231d2732e9d4b9843795a</a><br>
><br>
<br>
The bug is referenced is actually exactly that commit (just in poky<br>
rather than oe-core); it looks like I mistyped, as I should have said:<br>
<br>
[snip]<br>
export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}"<br>
[snip]</blockquote><div><br></div><div>Those are used for building native packages only</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
That said, after further root causing the issue, I found that -isystem<br>
/usr/include was *not* coming from BUILD_CPPFLAGS but instead from QMake<br>
translating -I /usr/include into -isystem /usr/include, as is mentioned<br>
in this Qt bug:<br>
<br>
<a href="https://bugreports.qt.io/browse/QTBUG-53375" rel="noreferrer" target="_blank">https://bugreports.qt.io/browse/QTBUG-53375</a><br>
<br>
So, AFAICT, what I referenced in bitbake is not really an issue, and the<br>
real problem is related to QMake.<br>
</blockquote></div></div>