Re: #stm32 build failure #stm32


Nick Stoughton
 

Which version of which toolchain are you using, and which version of zephyr?
-- 
Nick


On Tue, Aug 31, 2021 at 11:34 AM <alt.mcarter@...> wrote:
I'm trying to build a project. I'm getting:
 48%] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
cc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
cc: error: unrecognized argument in option '-mabi=aapcs'
cc: note: valid arguments to '-mabi=' are: ms sysv
cc: error: unrecognized command-line option '-mthumb'
gmake[2]: *** [zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/build.make:75: zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2814: zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
FATAL ERROR: command exited with status 2: /home/pi/.local/bin/cmake --build /home/pi/zephyrproject/my_blinky/build
Here's my CMakeLists.txt file:
cmake_minimum_required(VERSION 3.20.0)
set(BOARD blackpill_f411ce)
#include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(zblinky)
target_sources(app PRIVATE main.c)
What is going wrong?

Join users@lists.zephyrproject.org to automatically receive all group messages.