You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user@ubuntu:$ git clone https://github.com/DMTF/spdm-emu.git
[...]
user@ubuntu:$ cd spdm-emu
user@ubuntu:~/spdm-emu$ git submodule update --init --recursive
[...]
user@ubuntu:~/spdm-emu$ mkdir build
user@ubuntu:~/spdm-emu$ cd build
user@ubuntu:~/spdm-emu/build$ cmake -DARCH=aarch64 -DTOOLCHAIN=GCC -DTARGET=Release -DCRYPTO=openssl ..
-- The C compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
#########################
## Build Configuration ##
#########################
CMAKE_GENERATOR = Unix Makefiles
ARCH = aarch64
TOOLCHAIN = GCC
GCOV = OFF
TARGET = Release
CRYPTO = openssl
ENABLE_BINARY_BUILD=0; Building openssl library from source.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/conti/spdm-emu/build
user@ubuntu:~/spdm-emu/build$ make copy_sample_key
Scanning dependencies of target copy_sample_key
Built target copy_sample_key
user@ubuntu:~/spdm-emu/build$ make
Scanning dependencies of target cryptlib_openssl
[ 0%] Building C object out/cryptlib_openssl.out/CMakeFiles/cryptlib_openssl.dir/cipher/aead_aes_gcm.c.o
gcc: error: unrecognized command line option ‘-maccumulate-outgoing-args’
gcc: error: unrecognized command line option ‘-mno-red-zone’
make[2]: *** [out/cryptlib_openssl.out/CMakeFiles/cryptlib_openssl.dir/build.make:63: out/cryptlib_openssl.out/CMakeFiles/cryptlib_openssl.dir/cipher/aead_aes_gcm.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:899: out/cryptlib_openssl.out/CMakeFiles/cryptlib_openssl.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Judging by @alistair23 's reply in that issue (DMTF/libspdm#2584 (comment)), -maccumulate-outgoing-args and -mno-red-zone should not even be used for the aarch64 build!?
Is my cmake command wrong, or is that a bug?
I previously used exactly the same cmake command line in my separate clone of libspdm and there the lib builds without issues.
Thanks!
The text was updated successfully, but these errors were encountered:
My platform
NVIDIA Jetson AGX Orin Developer Kit
The issue
Based on the discussion in our libspdm issue (#2584) - especially the reply by @steven-bellock (https://github.com/DMTF/libspdm/issues/2584#issuecomment-1964454990) -, I issued the following commands in order to build the spdm-emu project:
Judging by @alistair23 's reply in that issue (DMTF/libspdm#2584 (comment)),
-maccumulate-outgoing-args
and-mno-red-zone
should not even be used for theaarch64
build!?Is my
cmake
command wrong, or is that a bug?I previously used exactly the same
cmake
command line in my separate clone of libspdm and there the lib builds without issues.Thanks!
The text was updated successfully, but these errors were encountered: