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

test_size_of_spdm_* build fails on aarch64 #2596

Closed
steven-bellock opened this issue Feb 28, 2024 · 1 comment · Fixed by #2597
Closed

test_size_of_spdm_* build fails on aarch64 #2596

steven-bellock opened this issue Feb 28, 2024 · 1 comment · Fixed by #2597
Assignees
Labels
bug Something isn't working build Build system

Comments

@steven-bellock
Copy link
Contributor

steven-bellock commented Feb 28, 2024

From #2584.

With -DARCH=aarch64 -DTOOLCHAIN=GCC

/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crt1.o: in function `__wrap_main':
(.text+0x38): undefined reference to `main'
collect2: error: ld returned 1 exit status

This is because

elseif(TOOLCHAIN STREQUAL "AARCH64_GCC")
SET(CMAKE_EXE_LINKER_FLAGS "-nostdlib -flto -Wl,--entry,ModuleEntryPoint,--undefined=__stack_chk_fail,--undefined=__stack_chk_guard,--undefined=memcpy")
endif()
does not include GCC.

@steven-bellock steven-bellock added bug Something isn't working build Build system labels Feb 28, 2024
@steven-bellock steven-bellock self-assigned this Feb 28, 2024
steven-bellock added a commit to steven-bellock/libspdm that referenced this issue Feb 28, 2024
@steven-bellock
Copy link
Contributor Author

Might as well add CLANG.

steven-bellock added a commit that referenced this issue Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Build system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant