* [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS @ 2022-03-01 4:13 Khem Raj 2022-03-03 22:53 ` [OE-core] " Richard Purdie 0 siblings, 1 reply; 5+ messages in thread From: Khem Raj @ 2022-03-01 4:13 UTC (permalink / raw) To: openembedded-core; +Cc: Khem Raj This ensures that right sysroot is used during build, otherwise we see warnings in build about using wrong sysroot and it fails explicitly with clang x86_64-yoe-linux-ld: warning: library search path "/usr/lib/gcc/x86_6 4-pc-linux-gnu/11.2.0/../../../../lib64" is unsafe for cross-compilation x86_64-yoe-linux-ld: cannot find /usr/lib/clang/14.0.0/lib/linux/libc lang_rt.builtins-x86_64.a: No such file or directory Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta/recipes-support/libical/libical_3.0.14.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-support/libical/libical_3.0.14.bb b/meta/recipes-support/libical/libical_3.0.14.bb index 717eb11e125..879ad8ed595 100644 --- a/meta/recipes-support/libical/libical_3.0.14.bb +++ b/meta/recipes-support/libical/libical_3.0.14.bb @@ -18,6 +18,8 @@ UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" inherit cmake pkgconfig gobject-introspection vala +CFLAGS += "${TOOLCHAIN_OPTIONS}" + DEPENDS += "libical-native" PACKAGECONFIG ??= "icu glib" -- 2.35.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS 2022-03-01 4:13 [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS Khem Raj @ 2022-03-03 22:53 ` Richard Purdie 2022-03-03 23:05 ` Khem Raj 0 siblings, 1 reply; 5+ messages in thread From: Richard Purdie @ 2022-03-03 22:53 UTC (permalink / raw) To: Khem Raj, openembedded-core; +Cc: Jose Quaresma On Mon, 2022-02-28 at 20:13 -0800, Khem Raj wrote: > This ensures that right sysroot is used during build, otherwise we see > warnings in build about using wrong sysroot and it fails explicitly with > clang > > x86_64-yoe-linux-ld: warning: library search path "/usr/lib/gcc/x86_6 > 4-pc-linux-gnu/11.2.0/../../../../lib64" is unsafe for cross-compilation > > x86_64-yoe-linux-ld: cannot find /usr/lib/clang/14.0.0/lib/linux/libc > lang_rt.builtins-x86_64.a: No such file or directory > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > --- > meta/recipes-support/libical/libical_3.0.14.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/recipes-support/libical/libical_3.0.14.bb b/meta/recipes-support/libical/libical_3.0.14.bb > index 717eb11e125..879ad8ed595 100644 > --- a/meta/recipes-support/libical/libical_3.0.14.bb > +++ b/meta/recipes-support/libical/libical_3.0.14.bb > @@ -18,6 +18,8 @@ UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" > > inherit cmake pkgconfig gobject-introspection vala > > +CFLAGS += "${TOOLCHAIN_OPTIONS}" > + > DEPENDS += "libical-native" > > PACKAGECONFIG ??= "icu glib" I gave this (and the cmake patch) a go and whilst it mostly worked, it doesn't work on arm (qemuarm or beaglebone): https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/4855 https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/3774 https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/4829 https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/3715 https://autobuilder.yoctoproject.org/typhoon/#/builders/47/builds/4825 Any ideas? Cheers, Richard ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS 2022-03-03 22:53 ` [OE-core] " Richard Purdie @ 2022-03-03 23:05 ` Khem Raj 2022-03-03 23:15 ` Richard Purdie 0 siblings, 1 reply; 5+ messages in thread From: Khem Raj @ 2022-03-03 23:05 UTC (permalink / raw) To: Richard Purdie Cc: Patches and discussions about the oe-core layer, Jose Quaresma On Thu, Mar 3, 2022 at 2:53 PM Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > > On Mon, 2022-02-28 at 20:13 -0800, Khem Raj wrote: > > This ensures that right sysroot is used during build, otherwise we see > > warnings in build about using wrong sysroot and it fails explicitly with > > clang > > > > x86_64-yoe-linux-ld: warning: library search path "/usr/lib/gcc/x86_6 > > 4-pc-linux-gnu/11.2.0/../../../../lib64" is unsafe for cross-compilation > > > > x86_64-yoe-linux-ld: cannot find /usr/lib/clang/14.0.0/lib/linux/libc > > lang_rt.builtins-x86_64.a: No such file or directory > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > --- > > meta/recipes-support/libical/libical_3.0.14.bb | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/meta/recipes-support/libical/libical_3.0.14.bb b/meta/recipes-support/libical/libical_3.0.14.bb > > index 717eb11e125..879ad8ed595 100644 > > --- a/meta/recipes-support/libical/libical_3.0.14.bb > > +++ b/meta/recipes-support/libical/libical_3.0.14.bb > > @@ -18,6 +18,8 @@ UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" > > > > inherit cmake pkgconfig gobject-introspection vala > > > > +CFLAGS += "${TOOLCHAIN_OPTIONS}" > > + > > DEPENDS += "libical-native" > > > > PACKAGECONFIG ??= "icu glib" > > > I gave this (and the cmake patch) a go and whilst it mostly worked, it doesn't > work on arm (qemuarm or beaglebone): > > https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/4855 > https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/3774 > https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/4829 > https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/3715 > https://autobuilder.yoctoproject.org/typhoon/#/builders/47/builds/4825 > > Any ideas? I think we need to check why CC is being passed here from env explicitly when invoking g-ir-scanner-wrapper, which is bare compiler without TOOLCHAIN_OPTIONS and this cmd seems to not respect CFLAGS | [95/112] cd /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical && /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot-native/usr/bin/cmake -E env "CC='/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc'" /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot/usr/bin/g-ir-scanner-wrapper --c-include=libical/ical.h --pkg-export libical --identifier-prefix=ical -I/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/libical-3.0.14/src/libical /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical/ical.h --namespace=ICal --nsversion=3.0 --no-libtool --library=ical --include=GObject-2.0 -L/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/lib --output /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical/ICal-3.0.gir --accept-unprefixed I will take a look later today. btw. is this the only failure left ? > > Cheers, > > Richard > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS 2022-03-03 23:05 ` Khem Raj @ 2022-03-03 23:15 ` Richard Purdie 2022-03-04 8:38 ` Jose Quaresma 0 siblings, 1 reply; 5+ messages in thread From: Richard Purdie @ 2022-03-03 23:15 UTC (permalink / raw) To: Khem Raj; +Cc: Patches and discussions about the oe-core layer, Jose Quaresma On Thu, 2022-03-03 at 15:05 -0800, Khem Raj wrote: > On Thu, Mar 3, 2022 at 2:53 PM Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > > > On Mon, 2022-02-28 at 20:13 -0800, Khem Raj wrote: > > > This ensures that right sysroot is used during build, otherwise we see > > > warnings in build about using wrong sysroot and it fails explicitly with > > > clang > > > > > > x86_64-yoe-linux-ld: warning: library search path "/usr/lib/gcc/x86_6 > > > 4-pc-linux-gnu/11.2.0/../../../../lib64" is unsafe for cross-compilation > > > > > > x86_64-yoe-linux-ld: cannot find /usr/lib/clang/14.0.0/lib/linux/libc > > > lang_rt.builtins-x86_64.a: No such file or directory > > > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > > --- > > > meta/recipes-support/libical/libical_3.0.14.bb | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/meta/recipes-support/libical/libical_3.0.14.bb b/meta/recipes-support/libical/libical_3.0.14.bb > > > index 717eb11e125..879ad8ed595 100644 > > > --- a/meta/recipes-support/libical/libical_3.0.14.bb > > > +++ b/meta/recipes-support/libical/libical_3.0.14.bb > > > @@ -18,6 +18,8 @@ UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" > > > > > > inherit cmake pkgconfig gobject-introspection vala > > > > > > +CFLAGS += "${TOOLCHAIN_OPTIONS}" > > > + > > > DEPENDS += "libical-native" > > > > > > PACKAGECONFIG ??= "icu glib" > > > > > > I gave this (and the cmake patch) a go and whilst it mostly worked, it doesn't > > work on arm (qemuarm or beaglebone): > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/4855 > > https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/3774 > > https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/4829 > > https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/3715 > > https://autobuilder.yoctoproject.org/typhoon/#/builders/47/builds/4825 > > > > Any ideas? > > I think we need to check why CC is being passed here from env > explicitly when invoking g-ir-scanner-wrapper, which is bare compiler > without TOOLCHAIN_OPTIONS and this cmd seems to not > respect CFLAGS > > > [95/112] cd /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical > && /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot-native/usr/bin/cmake > -E env "CC='/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc'" > /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot/usr/bin/g-ir-scanner-wrapper > --c-include=libical/ical.h --pkg-export libical > --identifier-prefix=ical > -I/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/libical-3.0.14/src/libical > /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical/ical.h > --namespace=ICal --nsversion=3.0 --no-libtool --library=ical > --include=GObject-2.0 > -L/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/lib > --output /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical/ICal-3.0.gir > --accept-unprefixed > > I will take a look later today. Thanks, I'll be asleep shortly I hope! :) > > btw. is this the only failure left ? > For that patch in core, yes, I think so. Cheers, Richard > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS 2022-03-03 23:15 ` Richard Purdie @ 2022-03-04 8:38 ` Jose Quaresma 0 siblings, 0 replies; 5+ messages in thread From: Jose Quaresma @ 2022-03-04 8:38 UTC (permalink / raw) To: Richard Purdie; +Cc: Khem Raj, Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 4253 bytes --] Richard Purdie <richard.purdie@linuxfoundation.org> escreveu no dia quinta, 3/03/2022 à(s) 23:15: > On Thu, 2022-03-03 at 15:05 -0800, Khem Raj wrote: > > On Thu, Mar 3, 2022 at 2:53 PM Richard Purdie > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > On Mon, 2022-02-28 at 20:13 -0800, Khem Raj wrote: > > > > This ensures that right sysroot is used during build, otherwise we > see > > > > warnings in build about using wrong sysroot and it fails explicitly > with > > > > clang > > > > > > > > x86_64-yoe-linux-ld: warning: library search path "/usr/lib/gcc/x86_6 > > > > 4-pc-linux-gnu/11.2.0/../../../../lib64" is unsafe for > cross-compilation > > > > > > > > x86_64-yoe-linux-ld: cannot find /usr/lib/clang/14.0.0/lib/linux/libc > > > > lang_rt.builtins-x86_64.a: No such file or directory > > > > > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > > > --- > > > > meta/recipes-support/libical/libical_3.0.14.bb | 2 ++ > > > > 1 file changed, 2 insertions(+) > > > > > > > > diff --git a/meta/recipes-support/libical/libical_3.0.14.bb > b/meta/recipes-support/libical/libical_3.0.14.bb > > > > index 717eb11e125..879ad8ed595 100644 > > > > --- a/meta/recipes-support/libical/libical_3.0.14.bb > > > > +++ b/meta/recipes-support/libical/libical_3.0.14.bb > > > > @@ -18,6 +18,8 @@ UPSTREAM_CHECK_URI = " > https://github.com/libical/libical/releases" > > > > > > > > inherit cmake pkgconfig gobject-introspection vala > > > > > > > > +CFLAGS += "${TOOLCHAIN_OPTIONS}" > > > > + > > > > DEPENDS += "libical-native" > > > > > > > > PACKAGECONFIG ??= "icu glib" > > > > > > > > > I gave this (and the cmake patch) a go and whilst it mostly worked, it > doesn't > > > work on arm (qemuarm or beaglebone): > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/4855 > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/106/builds/3774 > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/4829 > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/3715 > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/47/builds/4825 > > > > > > Any ideas? > > > > I think we need to check why CC is being passed here from env > > explicitly when invoking g-ir-scanner-wrapper, which is bare compiler > > without TOOLCHAIN_OPTIONS and this cmd seems to not > > respect CFLAGS > I will take a look in the weekend. Jose > > > > > [95/112] cd > /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical > > && > /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot-native/usr/bin/cmake > > -E env > "CC='/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc'" > > > /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/recipe-sysroot/usr/bin/g-ir-scanner-wrapper > > --c-include=libical/ical.h --pkg-export libical > > --identifier-prefix=ical > > > -I/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/libical-3.0.14/src/libical > > > /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical/ical.h > > --namespace=ICal --nsversion=3.0 --no-libtool --library=ical > > --include=GObject-2.0 > > > -L/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/lib > > --output > /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/libical/3.0.14-r0/build/src/libical/ICal-3.0.gir > > --accept-unprefixed > > > > I will take a look later today. > > Thanks, I'll be asleep shortly I hope! :) > > > > > btw. is this the only failure left ? > > > > For that patch in core, yes, I think so. > > Cheers, > > Richard > > > > > -- Best regards, José Quaresma [-- Attachment #2: Type: text/html, Size: 6688 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-03-04 8:38 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-03-01 4:13 [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS Khem Raj 2022-03-03 22:53 ` [OE-core] " Richard Purdie 2022-03-03 23:05 ` Khem Raj 2022-03-03 23:15 ` Richard Purdie 2022-03-04 8:38 ` Jose Quaresma
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox