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

Dynamic link related errors #776

Open
jiaeryang opened this issue Feb 18, 2025 · 2 comments
Open

Dynamic link related errors #776

jiaeryang opened this issue Feb 18, 2025 · 2 comments

Comments

@jiaeryang
Copy link

I am compiling according to the tutorial on rpi3 platform. When executing the make command, I encountered the following error:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 12.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /optee/out-br/per-package/optee_test_ext/host/bin/aarch64-linux-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenSSL: /optee/out-br/per-package/optee_test_ext/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libcrypto.so (found version "3.1.4")
-- Found Python: /optee/out-br/per-package/optee_test_ext/host/bin/python3.11 (found version "3.11.6") found components: Interpreter
-- Configuring done (0.6s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:

BUILD_DOC
BUILD_DOCS
BUILD_EXAMPLE
BUILD_EXAMPLES
BUILD_TEST
BUILD_TESTING
BUILD_TESTS

-- Build files have been written to: /optee/out-br/build/optee_test_ext-1.0

optee_test_ext 1.0 Building
GIT_DIR=. PATH="/optee/out-br/per-package/optee_test_ext/host/bin:/optee/out-br/per-package/optee_test_ext/host/sbin:/optee/toolchains/aarch64/bin:/root/.vscode-server/cli/servers/Stable-e249dada235c2083c83813bd65b7f4707fb97b76/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /optee/toolchains/aarch64/bin/cmake --build /optee/out-br/build/optee_test_ext-1.0/ -j3 --
[ 94%] Built target xtest
[100%] Built target f07bfc66-958c-4a15-99c0-260e4e7375dd.plugin
Building /optee/out-br/build/optee_test_ext-1.0/ta/os_test_lib/Makefile
make[3]: Nothing to be done for 'all'.
Building /optee/out-br/build/optee_test_ext-1.0/ta/os_test_lib_dl/Makefile
make[3]: Nothing to be done for 'all'.
Building /optee/out-br/build/optee_test_ext-1.0/ta/os_test/Makefile
GEN out/dyn_list
LD out/5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.elf
/optee/build/../toolchains/aarch64/bin/aarch64-linux-ld.bfd: /optee/toolchains/aarch64/bin/../lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/libgcc_eh.a(unwind-dw2-fde-dip.o): in function _Unwind_Find_FDE': /optee/out-aarch64-sdk/build/host-gcc-final-12.3.0/build/aarch64-buildroot-linux-gnu/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:512: undefined reference to _dl_find_object'
make[3]: *** [/optee/optee_os/out/arm/export-ta_arm64/mk/link.mk:123: out/5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.elf] Error 1
make[2]: *** [package/pkg-generic.mk:284: /optee/out-br/build/optee_test_ext-1.0/.stamp_built] Error 2
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/optee/out-br'
make: *** [common.mk:341: buildroot] Error 2

I am running code on a Mac using a virtual machine. Can someone help solve this bug? Thank you.
If more output information is needed, I am more than happy to provide it.

@jforissier
Copy link
Contributor

Hi @jiaeryang,

Please try building with make -j$(nproc) WITH_CXX_TESTS=n.

Which version of OP-TEE are you using? The latest should build and run on an Arm64 host without adding WITH_CXX_TESTS=n (we do have a CI job doing just that).

@jiaeryang
Copy link
Author

Hi @jiaeryang,

Please try building with make -j$(nproc) WITH_CXX_TESTS=n.

Which version of OP-TEE are you using? The latest should build and run on an Arm64 host without adding WITH_CXX_TESTS=n (we do have a CI job doing just that).

Thank you very much. The Raspberry Pi image has been successfully generated using the command you provided. The OP-TEE version I am using is 4.2.0.

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

2 participants