-
Notifications
You must be signed in to change notification settings - Fork 106
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 Error cmake/GCC #2584
Comments
@twilfredo or @alistair23 might know. I can look at it more when I get access to an Orin system. |
I haven't come across this before, but those options ( |
I tried both arm and aarch64, both ended with the mentioned error |
How did you install |
@alistair23 (I'm a colleague of @marinuswhite) |
If this is Linux on native aarch64 then you'd use
|
Thanks @steven-bellock, that helped greatly. This combination unfortunately is not described in build.md.
Regarding the actual buildIt seems it almost worked. At the end however, I get the following linker error - full logfile (I used openssl als crypto lib, but I hope this shouldn't matter):
I didn't check yet if the other executables work fine - those apparently compiled & linked without errors. |
See #612 for discussion on build parameters and native / cross compilation. Also, https://github.blog/changelog/2023-10-30-accelerate-your-ci-cd-with-arm-based-hosted-runners-in-github-actions/ may come to free GitHub users so we can add that to CI/CD. I'll file an issue for the |
I can confirm that I successfully built it on my NVIDIA Jetson AGX Orin Developer Kit.
Thanks @steven-bellock for the swift fixing! |
Is there anything for this issue? |
The build documentation needs to be clarified, as it is focused on cross-compilation. I can update that. |
Hello,
I'd like to test SPDM on a Nvidia Jetzson Orin (ARM 64, native Ubuntu).
I followed the instruction steps
Cloned the Repository with Sub-modules
installed GCC/ARM GNU bare metal as Compiler
went into the folders
made the build folder
tried "cmake -DARCH=(both aarch64/arm) -DTOOLCHAIN=ARM_GNU -DTARGET=Release -DCRYPTO=mbedtls .."
=> "unkown toolchain" , (installed ARM_GNU successfully following the Instructions)
tried GCC as Toolchain
=> worked
made the sample key
then "make"
=>
gcc: error: unrecognized command line option ‘-maccumulate-outgoing-args’
gcc: error: unrecognized command line option ‘-mno-red-zone’
make[2]: *** [out/cryptlib_mbedtls.out/CMakeFiles/cryptlib_mbedtls.dir/build.make:63: out/cryptlib_mbedtls.out/CMakeFiles/cryptlib_mbedtls.dir/cipher/aead_aes_gcm.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:922: out/cryptlib_mbedtls.out/CMakeFiles/cryptlib_mbedtls.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Tried it several times with different settings, always ends there
May I have overseen something?
Thank you!
The text was updated successfully, but these errors were encountered: