asir66 opened a new issue, #249: URL: https://github.com/apache/teaclave-trustzone-sdk/issues/249
# Summary In `docs/emulate-and-dev-in-docker-std.md`, the documented Docker image tag (4.5.0) is outdated. When using this image to build the TA in std mode, running make common examples fails with a Rust libc import error. This error occurs because the outdated container environment does not properly enable the --features=std flag, which leads to executing the #[cfg(not(feature = "std"))] branch in [optee-utee-sys/src/lib.rs](https://github.com/apache/teaclave-trustzone-sdk/blob/f67a5ddcde3e5693db4cb6fee5214bc568280e74/optee-utee/optee-utee-sys/src/lib.rs#L56). The issue does not occur in no-std mode, and updating to the latest Docker image (e.g. 4.7.0) fixes it. # Files affected - [/trustzone-sdk-docs/emulate-and-dev-in-docker.md](https://github.com/apache/teaclave-trustzone-sdk/blob/main/docs/emulate-and-dev-in-docker.md) - [/trustzone-sdk-docs/emulate-and-dev-in-docker-std.md](https://github.com/apache/teaclave-trustzone-sdk/blob/main/docs/emulate-and-dev-in-docker-std.md) # Current behavior Documentation instructs users to pull: ```bash docker pull teaclave/teaclave-trustzone-emulator-std-optee-4.5.0-expand-memory:latest ``` Running `make` in std mode inside this container results in: ```bash error[E0432]: unresolved imports `libc::size_t`, `libc::intmax_t` --> /root/teaclave_sdk_src/optee-utee/optee-utee-sys/src/lib.rs:58:20 | 58 | pub use libc::{size_t, intmax_t}; | ^^^^^^ ^^^^^^^^ no `intmax_t` in the root | | | no `size_t` in the root ``` --- this issue may also be related to #248 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
