Closed StoneBam closed 1 year ago
C:\git\testprojekt\build>arm-none-eabi-as --version
GNU assembler (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.16)) 2.37.20220122
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `arm-none-eabi'.
CMakeOutput.log
The system is: Windows - 10.0.19044 - AMD64
CMakeError.log
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Checking whether the ASM compiler is Clang using "--version" did not match "(clang version)":
Checking whether the ASM compiler is AppleClang using "--version" did not match "(Apple LLVM version)":
Checking whether the ASM compiler is ARMClang using "--version" did not match "armclang":
Checking whether the ASM compiler is HP using "-V" did not match "HP C":
Checking whether the ASM compiler is Intel using "--version" did not match "(ICC)":
Checking whether the ASM compiler is IntelLLVM using "--version" did not match "(Intel[^
]+oneAPI)":
Checking whether the ASM compiler is SunPro using "-V" did not match "Sun C":
Checking whether the ASM compiler is XL using "-qversion" did not match "XL C":
Checking whether the ASM compiler is MSVC using "-?" did not match "Microsoft":
Checking whether the ASM compiler is TI using "-h" did not match "Texas Instruments":
Checking whether the ASM compiler is IAR using "" did not match "IAR Assembler":
Checking whether the ASM compiler is ARMCC using "" did not match "(ARM Compiler)|(ARM Assembler)|(Arm Compiler)":
Checking whether the ASM compiler is NASM using "-v" did not match "(NASM version)":
Checking whether the ASM compiler is YASM using "--version" did not match "(yasm)":
Checking whether the ASM compiler is ADSP using "-version" did not match "Analog Devices":
Checking whether the ASM compiler is QCC using "-V" did not match "gcc_nto":
Any chance the compiler was also installed somewhere under C:\Program Files\
?
Sometimes there are issues when paths are not properly quoted throughout the whole build system.
Please move the compiler to a place where the path doesn't contain whitespace, such as C:\armgcc\
, and check if the error persists.
It does now work for me. Of course I tell you what I have done to come to this point:
C:/toochainpath/11.2_2022.02/bin
set(ARMGCC_TOOLCHAIN_PATH "C:/toochainpath/11.2_2022.02/bin")
and include(cubemx.cmake/arm-gcc.cmake)
in CMakeLists.txt
LANGUAGES C CXX ASM
to project(testproject)
-> project(testproject LANGUAGES C CXX ASM)
STARTUP "${CMAKE_CURRENT_LIST_DIR}/startup_stm32f334x8.s"
to cubemx_targetFinally applied the fix, sorry for the long wait.
GNU ARM Toolchain 11.2 on Windows, bin directory in PATH, normal example template.
Toolchain located in "C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin"