This issue can be avoided with the workaround of setting WITH_CXX_TESTS=n on the make command line.
Note that with the current master branch to get this far you need to work around Issue #749, by either setting RUST_ENABLE=n or by applying the patch in PR #748 to toolchain.mk.
The current toolchain.mk does not download a toolchain for aarch64 on aarch64 hosts, but relies upon buildroot to build one, and it seems that buildroot is building the wrong version (see https://github.com/OP-TEE/build/issues/747#issuecomment-2123573751 for details)
So it seems there are at least three possible solutions:
Find a pre-built compatible toolchain somewhere and download it
Update the build to use a newer toolchain -- such as 13.2.Rel1, available on the Arm GNU Toolchain Downloads page.
Configure buildroot to build a compatible version
I am new to OP-TEE, these toolchains, and to buildroot so I'm definitely looking for advice on how to proceed. If I do find a solution I will submit a PR.
Note: This is a new sub-issue from Issue #747 that addresses one of several problems that occur when trying to build on an aarch64 host.
When building (
cd build; make check
) on an aarch64 host with the currentmaster
branch, the following error occurs:This issue can be avoided with the workaround of setting
WITH_CXX_TESTS=n
on themake
command line.Note that with the current
master
branch to get this far you need to work around Issue #749, by either settingRUST_ENABLE=n
or by applying the patch in PR #748 totoolchain.mk
.For additional history, see:
The current
toolchain.mk
does not download a toolchain for aarch64 on aarch64 hosts, but relies uponbuildroot
to build one, and it seems thatbuildroot
is building the wrong version (see https://github.com/OP-TEE/build/issues/747#issuecomment-2123573751 for details)So it seems there are at least three possible solutions:
buildroot
to build a compatible versionI am new to OP-TEE, these toolchains, and to buildroot so I'm definitely looking for advice on how to proceed. If I do find a solution I will submit a PR.