Ok, this is not specific to the host OS. It is toolchain-specific though - it doesn't fail with the external Arm toolchain, but fails with the toolchain built by OE, i.e. Poky, etc.
On Wed, Jan 04, 2023 at 03:54:05PM -0500, Denys Dmytriyenko wrote: > Not being able to reproduce the issue here: > > $ MACHINE=am64xx-evm bitbake optee-os > > Builds just fine. > > Any more pointers - host OS/version, etc? I'm building Dunfell in Ubuntu > 18.04 > container, but can try a newer one if that's the culprit. > > > On Wed, Jan 04, 2023 at 07:18:50PM +0000, Jose Quaresma wrote: > > Friendly ping :) > > > > thanks > > > > Jose Quaresma via lists.yoctoproject.org <quaresma.jose= > > [email protected]> escreveu no dia terça, 13/12/2022 à(s) > > 18:38: > > > > > f8182afd optee: Upgrade to upstream 3.17.0 > > > removes this patch but this is still required > > > > > > Currently building with am62xx-evm/am64xx-evm machine fails with: > > > > > > | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or > > > directory > > > | make: *** [ldelf/link.mk:60: out/arm-plat-k3/ldelf/ldelf.elf] Error 1 > > > | make: *** Waiting for unfinished jobs.... > > > > > > Signed-off-by: Jose Quaresma <[email protected]> > > > --- > > > ...ow-setting-sysroot-for-libgcc-lookup.patch | 34 +++++++++++++++++++ > > > recipes-security/optee/optee-os_%.bbappend | 6 +++- > > > 2 files changed, 39 insertions(+), 1 deletion(-) > > > create mode 100644 > > > recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch > > > > > > diff --git > > > a/recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch > > > b/recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch > > > new file mode 100644 > > > index 00000000..17005396 > > > --- /dev/null > > > +++ > > > b/recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch > > > @@ -0,0 +1,34 @@ > > > +From 0bab935695ebcf0c533b49896ab18ff33d4a47d1 Mon Sep 17 00:00:00 2001 > > > +From: Ross Burton <[email protected]> > > > +Date: Tue, 26 May 2020 14:38:02 -0500 > > > +Subject: [PATCH] allow setting sysroot for libgcc lookup > > > + > > > +Explicitly pass the new variable LIBGCC_LOCATE_CFLAGS variable when > > > searching > > > +for the compiler libraries as there's no easy way to reliably pass > > > --sysroot > > > +otherwise. > > > + > > > +Upstream-Status: Pending [https://github.com/OP-TEE/optee_os/issues/4188] > > > +Signed-off-by: Ross Burton <[email protected]> > > > +--- > > > + mk/gcc.mk | 6 +++--- > > > + 1 file changed, 3 insertions(+), 3 deletions(-) > > > + > > > +diff --git a/mk/gcc.mk b/mk/gcc.mk > > > +index adc77a24..81bfa78a 100644 > > > +--- a/mk/gcc.mk > > > ++++ b/mk/gcc.mk > > > +@@ -13,11 +13,11 @@ nostdinc$(sm) := -nostdinc -isystem $(shell > > > $(CC$(sm)) \ > > > + -print-file-name=include 2> /dev/null) > > > + > > > + # Get location of libgcc from gcc > > > +-libgcc$(sm) := $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \ > > > ++libgcc$(sm) := $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) > > > $(CFLAGS$(arch-bits-$(sm))) \ > > > + -print-libgcc-file-name 2> /dev/null) > > > +-libstdc++$(sm) := $(shell $(CXX$(sm)) > > > $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \ > > > ++libstdc++$(sm) := $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) > > > $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \ > > > + -print-file-name=libstdc++.a 2> /dev/null) > > > +-libgcc_eh$(sm) := $(shell $(CXX$(sm)) > > > $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \ > > > ++libgcc_eh$(sm) := $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) > > > $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \ > > > + -print-file-name=libgcc_eh.a 2> /dev/null) > > > + > > > + # Define these to something to discover accidental use > > > diff --git a/recipes-security/optee/optee-os_%.bbappend > > > b/recipes-security/optee/optee-os_%.bbappend > > > index 751dc3d0..e8af0124 100644 > > > --- a/recipes-security/optee/optee-os_%.bbappend > > > +++ b/recipes-security/optee/optee-os_%.bbappend > > > @@ -1,6 +1,10 @@ > > > +FILESEXTRAPATHS_prepend_ti-soc := "${THISDIR}/${PN}:" > > > + > > > PV_ti-soc = "3.19.0+git${SRCPV}" > > > SRCREV_ti-soc = "d6c5d0037b46f46caf71d67d7825d4b722cbcddf" > > > -SRC_URI_ti-soc = "git://github.com/OP-TEE/optee_os.git;protocol=https" > > > +SRC_URI_ti-soc = "git://github.com/OP-TEE/optee_os.git;protocol=https \ > > > + file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \ > > > +" > > > > > > DEPENDS_append_ti-soc = " python3-cryptography-native" > > > > > > -- > > > 2.38.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15545): https://lists.yoctoproject.org/g/meta-ti/message/15545 Mute This Topic: https://lists.yoctoproject.org/mt/96057453/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
