* [PATCH] arm/optee-test: don't attempt to build with musl
@ 2020-11-02 16:09 Ross Burton
2020-11-03 2:12 ` [meta-arm] " Jon Mason
0 siblings, 1 reply; 2+ messages in thread
From: Ross Burton @ 2020-11-02 16:09 UTC (permalink / raw)
To: meta-arm
optee-test doesn't build on musl (or bionic) because libstdc++.a under musl
depends on libc providing the pthread functions, but TAs are built without
a libc.
Until this is fixed upstream (see https://github.com/OP-TEE/optee_test/issues/458)
simply refuse to build optee-test with musl.
Change-Id: If73fd43683e19e2943bf54f4027806786fb1dc7d
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
meta-arm/recipes-security/optee/optee-test.inc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta-arm/recipes-security/optee/optee-test.inc b/meta-arm/recipes-security/optee/optee-test.inc
index 467e687..eb11a12 100644
--- a/meta-arm/recipes-security/optee/optee-test.inc
+++ b/meta-arm/recipes-security/optee/optee-test.inc
@@ -8,6 +8,10 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa"
inherit python3native
require optee.inc
+# Linking fails on musl due to C++/threads
+# https://github.com/OP-TEE/optee_test/issues/458#issuecomment-720540834
+COMPATIBLE_HOST_libc-musl = 'null'
+
DEPENDS = "optee-client optee-os python3-pycryptodomex-native"
SRC_URI = "git://github.com/OP-TEE/optee_test.git \
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-arm] [PATCH] arm/optee-test: don't attempt to build with musl
2020-11-02 16:09 [PATCH] arm/optee-test: don't attempt to build with musl Ross Burton
@ 2020-11-03 2:12 ` Jon Mason
0 siblings, 0 replies; 2+ messages in thread
From: Jon Mason @ 2020-11-03 2:12 UTC (permalink / raw)
To: Ross Burton; +Cc: meta-arm
On Mon, Nov 02, 2020 at 04:09:55PM +0000, Ross Burton wrote:
> optee-test doesn't build on musl (or bionic) because libstdc++.a under musl
> depends on libc providing the pthread functions, but TAs are built without
> a libc.
>
> Until this is fixed upstream (see https://github.com/OP-TEE/optee_test/issues/458)
> simply refuse to build optee-test with musl.
>
> Change-Id: If73fd43683e19e2943bf54f4027806786fb1dc7d
> Signed-off-by: Ross Burton <ross.burton@arm.com>
Applied to master.
Thanks,
Jon
> ---
> meta-arm/recipes-security/optee/optee-test.inc | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta-arm/recipes-security/optee/optee-test.inc b/meta-arm/recipes-security/optee/optee-test.inc
> index 467e687..eb11a12 100644
> --- a/meta-arm/recipes-security/optee/optee-test.inc
> +++ b/meta-arm/recipes-security/optee/optee-test.inc
> @@ -8,6 +8,10 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa"
> inherit python3native
> require optee.inc
>
> +# Linking fails on musl due to C++/threads
> +# https://github.com/OP-TEE/optee_test/issues/458#issuecomment-720540834
> +COMPATIBLE_HOST_libc-musl = 'null'
> +
> DEPENDS = "optee-client optee-os python3-pycryptodomex-native"
>
> SRC_URI = "git://github.com/OP-TEE/optee_test.git \
> --
> 2.25.1
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-03 2:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 16:09 [PATCH] arm/optee-test: don't attempt to build with musl Ross Burton
2020-11-03 2:12 ` [meta-arm] " Jon Mason
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.