-
Notifications
You must be signed in to change notification settings - Fork 15
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
No explanation how to build Test Suite #120
Comments
OK, I was able to get this to build by passing in a bunch of -D options. Why they were not found by default on AARCH64 is a mystery still. CMakeLists.txt has one error in it that breaks on ARM64: Essentially, I had to remove two flags to GCC -maccumulate-outgoing-args -mno-red-zone IN the block that starts with The following Diff got me past it. @@ -146,10 +146,11 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
This is the Cache file that got it to run (minus the comments): ARCH:STRING=aarch64 CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line CMAKE_AR:FILEPATH=/usr/bin/ar CMAKE_BUILD_TYPE:STRING=Debug CMAKE_COLOR_MAKEFILE:BOOL=ON CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib CMAKE_C_FLAGS:STRING= CMAKE_C_FLAGS_DEBUG:STRING=-g CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND CMAKE_EXE_LINKER_FLAGS:STRING= CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=/root/SPDM-Responder-Validator/build/CMakeFiles/pkgRedirects CMAKE_INSTALL_PREFIX:PATH=/usr/local CMAKE_LINKER:FILEPATH=/usr/bin/ld CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake CMAKE_MODULE_LINKER_FLAGS:STRING= CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_NM:FILEPATH=/usr/bin/nm CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump CMAKE_PROJECT_DESCRIPTION:STATIC= CMAKE_PROJECT_HOMEPAGE_URL:STATIC= CMAKE_PROJECT_NAME:STATIC=SPDM-Responder-Validator CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib CMAKE_READELF:FILEPATH=/usr/bin/readelf CMAKE_SHARED_LINKER_FLAGS:STRING= CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_SKIP_INSTALL_RPATH:BOOL=OFF CMAKE_SKIP_RPATH:BOOL=OFF CMAKE_STATIC_LINKER_FLAGS:STRING= CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_STRIP:FILEPATH=/usr/bin/strip CMAKE_TAPI:FILEPATH=CMAKE_TAPI-NOTFOUND CMAKE_VERBOSE_MAKEFILE:BOOL=OFF COMPILED_LIBCRYPTO_PATH:STRING=/lib64/libcrypto.so.3 COMPILED_LIBSSL_PATH:STRING=/lib64/libssl.so.3 CRYPTO:STRING=openssl ENABLE_BINARY_BUILD:UNINITIALIZED=1 GCOV:STRING= SPDM-Responder-Validator_BINARY_DIR:STATIC=/root/SPDM-Responder-Validator/build SPDM-Responder-Validator_IS_TOP_LEVEL:STATIC=ON SPDM-Responder-Validator_SOURCE_DIR:STATIC=/root/SPDM-Responder-Validator TARGET:UNINITIALIZED=Debug TOOLCHAIN:STRING=GCC ######################## INTERNAL cache entries######################## CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 |
Usually the explanation would be in the README. Barring that, it would be in the Documentation file.
I tied building with the obvious : mkdir build; cd build; cmake ..
But quickly got into errors like :
CMake Error at CMakeLists.txt:49 (MESSAGE):
Unkown ARCH
Setting the arch gets to:
cmake -DARCH:STRING=aarch64 -DTOOLCHAIN:STRING=gcc ..
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.
#########################
Build Configuration
#########################
ARCH = aarch64
CMake Error at CMakeLists.txt:78 (MESSAGE):
Unkown TOOLCHAIN
Unkown TOOLCHAIN
The text was updated successfully, but these errors were encountered: