Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues on aarch64 Linux hosts #135

Open
msgilligan opened this issue May 22, 2024 · 3 comments
Open

Build issues on aarch64 Linux hosts #135

msgilligan opened this issue May 22, 2024 · 3 comments

Comments

@msgilligan
Copy link
Contributor

I've been trying to build OP-TEE with Rust on an aarch64 Linux host. (Mostly Debian Bookworm in a VM on MacBook M1)

I've run into at least three issues so far and made a PR for one of them:

751 is not Rust-related, and is easily worked around with WITH_CXX_TESTS=n, but 752 is Rust-related and if anyone has any ideas on how to fix it, I would greatly appreciate hearing them.

@msgilligan
Copy link
Contributor Author

We are making progress on this issue. Two of the three sub-issues above are now solved. Only OP-TEE/build#752 remains.

@msgilligan
Copy link
Contributor Author

msgilligan commented May 29, 2024

I have reproduced this issue by following the instructions in this project's README.md on an aarch64 Linux (Debian) machine.

See Related PR #137.

msgilligan added a commit to msgilligan/incubator-teaclave-trustzone-sdk that referenced this issue May 29, 2024
msgilligan added a commit to msgilligan/incubator-teaclave-trustzone-sdk that referenced this issue May 29, 2024
msgilligan added a commit to msgilligan/incubator-teaclave-trustzone-sdk that referenced this issue May 30, 2024
@msgilligan
Copy link
Contributor Author

msgilligan commented Jun 5, 2024

I have created a multi-architecture Dockerfile/containerFile that works correctly under AMD64 (x86_64) and exhibits the linker error we have been seeing under ARM64 (aarch64) and uploaded it in a gist:
https://gist.github.com/msgilligan/a36d61953d2caf60d33d233fed281c7b

Note that the exact error is ld.bfd: cannot find -lgcc_s: No such file or directory (In some earlier test configurations that I used the _s wasn't present.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant