apache / incubator-teaclave-trustzone-sdk

Teaclave TrustZone SDK enables safe, functional, and ergonomic development of trustlets.
https://teaclave.apache.org
Apache License 2.0
203 stars 58 forks source link

(Solved) Failed to build example #100

Closed winston-wen closed 1 year ago

winston-wen commented 1 year ago

Running <repo>/Makefile fails at aarch64-none-linux-gnu/bin/ld: cannot find -lteec . I've added the directory which contains libteec.* to LIBRARY_PATH and LD_LIBRARY_PATH.

DemesneGH commented 1 year ago

Hi @winston-wen Could you provide more details such as your operations and the outputs? Thanks!

winston-wen commented 1 year ago

今天在一个全新的阿里云节点上重新运行 这个教程 ,能正常编译。

昨天遵循 这个教程,在make example的时候遇到了cannot find -lteec的错误,分别进入每个example去make,也遇到相同的错误。小改一下Makefile,给cargo加了-vv选项,发现cargo调rustc、rustc调gcc的时候传了两个libteec链接参数,分别是 -L <repo>/optee/optee_client/out/libteec-lteec

我苦思冥想,尝试了许多方法,找不到-lteec是从哪传的,所以提了这个issue。现在看来,很可能是我编译其他项目时污染了全局配置。

DemesneGH commented 1 year ago

@winston-wen 好的,我先暂时close这个issue,如有问题可以reopen,谢谢!