Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Khem Raj <raj.khem@gmail.com>, openembedded-core@lists.openembedded.org
Cc: Jose Quaresma <quaresma.jose@gmail.com>
Subject: Re: [OE-core] [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS
Date: Thu, 03 Mar 2022 22:53:30 +0000	[thread overview]
Message-ID: <3912ca5523901721837cd3200b9c685cd5561313.camel@linuxfoundation.org> (raw)
In-Reply-To: <20220301041346.1703440-1-raj.khem@gmail.com>

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



  reply	other threads:[~2022-03-03 22:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-01  4:13 [PATCH] libical: Pass TOOLCHAIN_OPTIONS via CFLAGS Khem Raj
2022-03-03 22:53 ` Richard Purdie [this message]
2022-03-03 23:05   ` [OE-core] " Khem Raj
2022-03-03 23:15     ` Richard Purdie
2022-03-04  8:38       ` Jose Quaresma

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=3912ca5523901721837cd3200b9c685cd5561313.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=quaresma.jose@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox