Hello all, I´ve just started trying Mbed CE, I have followed the startup process described in the wiki and for windows/vscode, here I list my cmake-variants.yaml content, the output messages and screen capture.
Basically the errors are related to greentea-client-src, and not found cstddef file.
Sorry but I have no idea what is going on, could you help me please?
Thank you very much
buildType:
default: Develop
choices:
Develop:
short: Develop
long: Emit debug information but also optimize
buildType: Develop
Debug:
short: Debug
long: Emit debug information and don't optimize
buildType: Debug
Release:
short: Release
long: Optimize generated code
buildType: Release
board:
default: NUCLEO_G474RE
choices:
NUCLEO_G474RE:
short: NUCLEO_G474RE
settings:
MBED_TARGET: NUCLEO_G474RE
UPLOAD_METHOD: STM32CUBE
[main] Configuring folder: mbedCE
[driver] Removing c:/mbedCE/build/CMakeCache.txt
[driver] Removing c:\mbedCE\build\CMakeFiles
[proc] Executing command: “C:\Program Files\CMake\bin\cmake.EXE” --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE -Bc:/mbedCE/build -G “MinGW Makefiles”
[cmake] Not searching for unused variables given on the command line.
[cmake] – Found Python3: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0/python3.10.exe (found version “3.10.8”) found components: Interpreter
[cmake] – Checking for Python package intelhex – found
[cmake] – Checking for Python package prettytable – found
[cmake] – Checking for Python package future – found
[cmake] – Checking for Python package jinja2 – found
[cmake] – Checking for Python package mbed_tools – found
[cmake] – Mbed: First CMake run detected, generating configs…
[cmake] mbed_config.cmake has been generated and written to ‘C:\mbedCE\build\mbed_config.cmake’
[cmake] – The C compiler identification is GNU 12.2.0
[cmake] – The CXX compiler identification is GNU 12.2.0
[cmake] – The ASM compiler identification is GNU
[cmake] – Found assembler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe
[cmake] – Detecting C compiler ABI info
[cmake] – Detecting C compiler ABI info - done
[cmake] – Check for working C compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe - skipped
[cmake] – Detecting C compile features
[cmake] – Detecting C compile features - done
[cmake] – Detecting CXX compiler ABI info
[cmake] – Detecting CXX compiler ABI info - done
[cmake] – Check for working CXX compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-g++.exe - skipped
[cmake] – Detecting CXX compile features
[cmake] – Detecting CXX compile features - done
[cmake] – Mbed: Target does not have any upload method configuration. ‘make flash-’ commands will not be available unless configured by the upper-level project.
[cmake] – Detected VS Code IDE, will generate VS Code debug configurations
[cmake] – Mbed: Not building any Mbed OS tests.
[cmake] [ 11%] Performing download step (git clone) for ‘greentea-client-populate’
[cmake] Cloning into ‘greentea-client-src’…
[cmake] HEAD is now at 472aad2 Merge pull request #37 from rwalton-arm/protect_include_ctest
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 22: .: git-sh-setup: file not found
[cmake] CMake Error at greentea-client-subbuild/greentea-client-populate-prefix/tmp/greentea-client-populate-gitclone.cmake:62 (message):
[cmake] Failed to update submodules in: ‘C:/mbedCE/build/_deps/greentea-client-src’
[cmake]
[cmake]
[cmake] mingw32-make.exe[2]: *** [greentea-client-populate-prefix/src/greentea-client-populate-stamp/greentea-client-populate-download] Error 1
[cmake] – Configuring incomplete, errors occurred!
[cmake] See also “C:/mbedCE/build/CMakeFiles/CMakeOutput.log”.
[cmake] See also “C:/mbedCE/build/CMakeFiles/CMakeError.log”.
[cmake] mingw32-make.exe[1]: *** [CMakeFiles/greentea-client-populate.dir/all] Error 2
[cmake] mingw32-make.exe: *** [all] Error 2
[cmake]
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1604 (message):
[cmake] Build step for greentea-client failed: 2
[cmake] Call Stack (most recent call first):
[cmake] C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744:EVAL:2 (__FetchContent_directPopulate)
[cmake] C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744 (cmake_language)
[cmake] C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1958 (FetchContent_Populate)
[cmake] mbed-os/extern/CMakeLists.txt:12 (FetchContent_MakeAvailable)
[cmake]
[cmake]
[proc] The command: “C:\Program Files\CMake\bin\cmake.EXE” --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE -Bc:/mbedCE/build -G “MinGW Makefiles” exited with code: 1 and signal: null