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 <[email protected]>
> ---
>  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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162702): 
https://lists.openembedded.org/g/openembedded-core/message/162702
Mute This Topic: https://lists.openembedded.org/mt/89469112/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to