From: Denys Dmytriyenko <denis@denix.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-qt5][PATCH] qtbase: Replace -isystem with -I
Date: Thu, 15 Feb 2018 18:41:52 -0500 [thread overview]
Message-ID: <20180215234152.GQ2786@denix.org> (raw)
In-Reply-To: <20180215043848.14310-1-raj.khem@gmail.com>
On Wed, Feb 14, 2018 at 08:38:48PM -0800, Khem Raj wrote:
> Fixes no-x11 builds (eglfs)
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> recipes-qt/qt5/qtbase-native_git.bb | 1 +
> ...mon-gcc-base.conf-Use-I-instead-of-isyste.patch | 36 ++++++++++++++++++++++
> recipes-qt/qt5/qtbase_git.bb | 1 +
> 3 files changed, 38 insertions(+)
> create mode 100644 recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
>
> diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb
> index ac3924e..ffde8ee 100644
> --- a/recipes-qt/qt5/qtbase-native_git.bb
> +++ b/recipes-qt/qt5/qtbase-native_git.bb
> @@ -34,6 +34,7 @@ SRC_URI += "\
> file://0009-Add-OE-specific-specs-for-clang-compiler.patch \
> file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \
> file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \
> + file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \
> "
>
> # common for qtbase-native and nativesdk-qtbase
> diff --git a/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
> new file mode 100644
> index 0000000..44e9009
> --- /dev/null
> +++ b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
> @@ -0,0 +1,36 @@
> +From 61c858474804fd772d612e6c5b4bb6df261d521a Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Wed, 14 Feb 2018 17:08:43 -0800
> +Subject: [PATCH] mkspecs/common/gcc-base.conf: Use -I instead of -isystem
> +
> +-isystem fails to build when code uses include_next on certain files e.g.
> +
> +qtbase/5.10.0+gitAUTOINC+50117d738a-r0/recipe-sysroot/usr/include/c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
> + #include_next <stdlib.h>
> + ^~~~~~~~~~
I'm building qt 5.10.0 in master with gcc 7.3.0 in a no-x11 environment with
eglfs and not seeing this issue. What else is different?
> +compilation terminated.
> +make[2]: *** [Makefile:11592: .obj/qgenericpluginfactory.o] Error 1
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> + mkspecs/common/gcc-base.conf | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
> +index 234f71d495..ee3da023e6 100644
> +--- a/mkspecs/common/gcc-base.conf
> ++++ b/mkspecs/common/gcc-base.conf
> +@@ -46,7 +46,7 @@ QMAKE_CFLAGS_DEBUG += -g
> + QMAKE_CFLAGS_SHLIB += $$QMAKE_CFLAGS_PIC
> + QMAKE_CFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_PIC
> + QMAKE_CFLAGS_APP += $$QMAKE_CFLAGS_PIC
> +-QMAKE_CFLAGS_ISYSTEM = -isystem
> ++QMAKE_CFLAGS_ISYSTEM = -I
> + QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
> + QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
> + QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions
> +--
> +2.16.1
> +
> diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
> index 4f3ade2..cc9bce3 100644
> --- a/recipes-qt/qt5/qtbase_git.bb
> +++ b/recipes-qt/qt5/qtbase_git.bb
> @@ -29,6 +29,7 @@ SRC_URI += "\
> file://0009-Add-OE-specific-specs-for-clang-compiler.patch \
> file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \
> file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \
> + file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \
> file://run-ptest \
> "
>
> --
> 2.16.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
next prev parent reply other threads:[~2018-02-15 23:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-15 4:38 [meta-qt5][PATCH] qtbase: Replace -isystem with -I Khem Raj
2018-02-15 23:41 ` Denys Dmytriyenko [this message]
2018-02-15 23:50 ` Khem Raj
2018-02-16 22:01 ` Denys Dmytriyenko
2018-02-16 22:59 ` Khem Raj
2018-02-16 23:08 ` Denys Dmytriyenko
2018-02-17 2:35 ` Khem Raj
2018-02-21 6:20 ` Khem Raj
2018-02-21 19:55 ` Denys Dmytriyenko
2018-02-21 20:15 ` Khem Raj
2018-02-24 4:40 ` Denys Dmytriyenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180215234152.GQ2786@denix.org \
--to=denis@denix.org \
--cc=openembedded-devel@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.