Hi,
I would like to use mbedtls with my stm32f7 project - so I have to build these lib by arm-gcc.
I am trying do this, but still have problem.
my command to building: CC
CC=/home/jareeeeczek/Arczbit/Firmware/ProgramingRelated/ARM_GCC/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On …/
and my erros:
"none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc cmake -
DUSE_SHARED_MBEDTLS_LIBRARY=On ../
-- The C compiler identification is GNU 10.2.1
-- Check for working C compiler:
/home/jareeeeczek/Arczbit/Firmware/ProgramingRelated/ARM_GCC/gcc-arm-none-eabi-10-2020-q4
-major/bin/arm-none-eabi-gcc
-- Check for working C compiler:
/home/jareeeeczek/Arczbit/Firmware/ProgramingRelated/ARM_GCC/gcc-arm-none-eabi-10-2020-q4
-major/bin/arm-none-eabi-gcc -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
/home/jareeeeczek/Arczbit/Firmware/ProgramingRelated/ARM_GCC/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/jareeeeczek/Arczbit/Projects/Parkometr/software/FreeRtos/FreeRTOS-Plus/ThirdParty/mbedtls/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_7c8c5/fast && /usr/bin/make -f CMakeFiles/cmTC_7c8c5.dir/build.make CMakeFiles/cmTC_7c8c5.dir/build
make[1]: Entering directory '/home/jareeeeczek/Arczbit/Projects/Parkometr/software/FreeRtos/FreeRTOS-Plus/ThirdParty/mbedtls/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7c8c5.dir/testCCompiler.c.o
/home/jareeeeczek/Arczbit/Firmware/ProgramingRelated/ARM_GCC/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_7c8c5.dir/testCCompiler.c.o -c /home/jareeeeczek/Arczbit/Projects/Parkometr/software/FreeRtos/FreeRTOS-Plus/ThirdParty/mbedtls/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_7c8c5"
arm-none-eabi-gcc: error: unrecognized command-line option '-rdynamic'
Anyone has idea why arm-gcc has problem with building test program?
my host is Ubuntu.
Best regards,
Arek