platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
405 stars 312 forks source link

Clion "error: macro names must be identifiers" #618

Closed Benni77 closed 2 years ago

Benni77 commented 2 years ago

Configuration

Operating system: Manjaro Linux x86_64 5.14.21-2-MANJARO

PlatformIO Version (platformio --version): PlatformIO Core, version 5.3.0b5

IDE: CLion 2021.3.4

Description of problem

Steps to Reproduce

  1. Follow Instruction on docs.platformio to setup CLion with PlatformIO.
  2. Open CLion + create new project for portenta_h7_m7
  3. Manually configure project profiles in CLion. Toolchains: Default; CMake: portenta_h7_m7
  4. Setup Project config, like mentioned in docs. (Add Debug & Upload)
  5. Re-init project
  6. -> ERORR

Actual Results

/home/benjo/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/213.7172.20/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=portenta_h7_m7 -DCMAKE_MAKE_PROGRAM=/home/benjo/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/213.7172.20/bin/ninja/linux/ninja -G Ninja /home/benjo/CLionProjects/newProj
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /sbin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /sbin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/benjo/CLionProjects/newProj/cmake-build-portenta_h7_m7

Cannot get compiler information:
    Compiler exited with error code 1: /home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-g++ -xc++ -DARDUINO=10810 -DARDUINO_ARCH_MBED -DARDUINO_PORTENTA_H7_M7 -DARM_MATH_CM7 -DBT_UART_NO_3M_SUPPORT -DCM4_BOOT_BY_APPLICATION -DCOMPONENT_4343W_FS=1 -DCOMPONENT_CYW43XXX=1 -DCOMPONENT_FLASHIAP=1 -DCOMPONENT_QSPIF=1 -DCOMPONENT_WHD=1 -DCORE_CM7 -DCORE_MAJOR=3 -DCORE_MINOR=0 -DCORE_PATCH=1 -DCYW43XXX_UNBUFFERED_UART -DDEVICE_ANALOGIN=1 -DDEVICE_ANALOGOUT=1 -DDEVICE_CAN=1 -DDEVICE_CRC=1 -DDEVICE_EMAC=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_LPTICKER=1 -DDEVICE_MPU=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_QSPI=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_TRNG=1 -DDEVICE_USBDEVICE=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DEXTRA_IDLE_STACK_REQUIRED -DFEATURE_BLE=1 -DMBEDTLS_FS_IO -DMBEDTLS_SHA1_C -DMBED_BUILD_TIMESTAMP=1648633310.1874359 -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 -DMBED_TICKLESS -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DNO_ATOMIC_64_SUPPORT -DPLATFORMIO=50300 -DQSPI_NO_SAMPLE_SHIFT -DRPMSG_BUFFER_SIZE=100 -DSTM32H747xx -DTARGET_CORDIO -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_LIKE_CORTEX_M7 -DTARGET_LIKE_MBED -DTARGET_M7 -DTARGET_MCU_STM32 -DTARGET_MCU_STM32H7 -DTARGET_MCU_STM32H747xI -DTARGET_NAME=PORTENTA_H7_M7 -DTARGET_PORTENTA_H7 -DTARGET_PORTENTA_H7_M7 -DTARGET_RELEASE -DTARGET_RTOS_M4_M7 -DTARGET_STM -DTARGET_STM32H7 -DTARGET_STM32H747xI -DTARGET_STM32H747xI_CM7 -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSB_DYNAMIC_CONFIGURATION -DUSE_ARDUINO_PINOUT -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DVIRTIO_MASTER_ONLY -D__CMSIS_RTOS -D__CORTEX_M7 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -Wvla -fno-rtti -std=gnu++14 -DAPPLICATION_ADDR=0x8040000 -DAPPLICATION_RAM_ADDR=0x24000000 -DAPPLICATION_RAM_SIZE=0x80000 -DAPPLICATION_SIZE=0xc0000 -DMBED_RAM1_SIZE=0x80000 -DMBED_RAM1_START=0x24000000 -DMBED_RAM_SIZE=0x80000 -DMBED_RAM_START=0x24000000 -DMBED_ROM_SIZE=0x100000 -DMBED_ROM_START=0x8000000 -DMBED_TRAP_ERRORS_ENABLED=1 -Os -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -c -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -mthumb -iprefix/home/benjo/.platformio/packages/framework-arduino-mbed/cores/arduino -iwithprefixbefore/mbed -iwithprefixbefore/mbed/cmsis -iwithprefixbefore/mbed/cmsis/CMSIS_5 -
...
iwithprefixbefore/mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_STM32H747xI_CM7 -nostdlib -D-DCM4_BINARY_START=0x08100000 -std=gnu++14 -fpch-preprocess -v -dD -E
    Using built-in specs.
    COLLECT_GCC=/home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-g++
    Target: arm-none-eabi
    Configured with: /tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/src/gcc/configure --target=arm-none-eabi --prefix=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/install-native --libexecdir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/install-native/lib --infodir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/install-native/share/doc/gcc-arm-none-eabi/info --mandir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/install-native/share/doc/gcc-arm-none-eabi/man --htmldir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/install-native/share/doc/gcc-arm-none-eabi/html --pdfdir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/install-native/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib --with-headers=yes --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/install-native/arm-none-eabi --build=x86_64-linux-gnu --host=x86_64-linux-gnu --with-gmp=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/build-native/host-libs/usr --with-mpfr=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/build-native/host-libs/usr --with-mpc=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/build-native/host-libs/usr --with-isl=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/build-native/host-libs/usr --with-libelf=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-633_20171130_1512067137/build-native/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for Arm Embedded Processors 7-2017-q4-major' --with-multilib-list=rmprofile
    Thread model: single
    gcc version 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 
    COLLECT_GCC_OPTIONS='-D' 'ARDUINO=10810' '-D' 'ARDUINO_ARCH_MBED' '-D' 'ARDUINO_PORTENTA_H7_M7' '-D' 'ARM_MATH_CM7' '-D' 'BT_UART_NO_3M_SUPPORT' '-D' 'CM4_BOOT_BY_APPLICATION' '-D' 'COMPONENT_4343W_FS=1' '-D' 'COMPONENT_CYW43XXX=1' '-D' 'COMPONENT_FLASHIAP=1' '-D' 'COMPONENT_QSPIF=1' '-D' 'COMPONENT_WHD=1' '-D' 'CORE_CM7' '-D' 'CORE_MAJOR=3' '-D' 'CORE_MINOR=0' '-D' 'CORE_PATCH=1' '-D' 'CYW43XXX_UNBUFFERED_UART' '-D' 'DEVICE_ANALOGIN=1' '-D' 'DEVICE_ANALOGOUT=1' '-D' 'DEVICE_CAN=1' '-D' 'DEVICE_CRC=1' '-D' 'DEVICE_EMAC=1' '-D' 'DEVICE_FLASH=1' '-D' 'DEVICE_I2C=1' '-D' 'DEVICE_I2CSLAVE=1' '-D' 'DEVICE_I2C_ASYNCH=1' '-D' 'DEVICE_INTERRUPTIN=1' '-D' 'DEVICE_LPTICKER=1' '-D' 'DEVICE_MPU=1' '-D' 'DEVICE_PORTIN=1' '-D' 'DEVICE_PORTINOUT=1' '-D' 'DEVICE_PORTOUT=1' '-D' 'DEVICE_PWMOUT=1' '-D' 'DEVICE_QSPI=1' '-D' 'DEVICE_RESET_REASON=1' '-D' 'DEVICE_RTC=1' '-D' 'DEVICE_SERIAL=1' '-D' 'DEVICE_SERIAL_FC=1' '-D' 'DEVICE_SLEEP=1' '-D' 'DEVICE_SPI=1' '-D' 'DEVICE_SPISLAVE=1' '-D' 'DEVICE_SPI_ASYNCH=1' '-D' 'DEVICE_STDIO_MESSAGES=1' '-D' 'DEVICE_TRNG=1' '-D' 'DEVICE_USBDEVICE=1' '-D' 'DEVICE_USTICKER=1' '-D' 'DEVICE_WATCHDOG=1' '-D' 'EXTRA_IDLE_STACK_REQUIRED' '-D' 'FEATURE_BLE=1' '-D' 'MBEDTLS_FS_IO' '-D' 'MBEDTLS_SHA1_C' '-D' 'MBED_BUILD_TIMESTAMP=1648633310.1874359' '-D' 'MBED_NO_GLOBAL_USING_DIRECTIVE=1' '-D' 'MBED_TICKLESS' '-D' 'METAL_INTERNAL' '-D' 'METAL_MAX_DEVICE_REGIONS=2' '-D' 'NO_ATOMIC_64_SUPPORT' '-D' 'PLATFORMIO=50300' '-D' 'QSPI_NO_SAMPLE_SHIFT' '-D' 'RPMSG_BUFFER_SIZE=100' '-D' 'STM32H747xx' '-D' 'TARGET_CORDIO' '-D' 'TARGET_CORTEX' '-D' 'TARGET_CORTEX_M' '-D' 'TARGET_LIKE_CORTEX_M7' '-D' 'TARGET_LIKE_MBED' '-D' 'TARGET_M7' '-D' 'TARGET_MCU_STM32' '-D' 'TARGET_MCU_STM32H7' '-D' 'TARGET_MCU_STM32H747xI' '-D' 'TARGET_NAME=PORTENTA_H7_M7' '-D' 'TARGET_PORTENTA_H7' '-D' 'TARGET_PORTENTA_H7_M7' '-D' 'TARGET_RELEASE' '-D' 'TARGET_RTOS_M4_M7' '-D' 'TARGET_STM' '-D' 'TARGET_STM32H7' '-D' 'TARGET_STM32H747xI' '-D' 'TARGET_STM32H747xI_CM7' '-D' 'TOOLCHAIN_GCC' '-D' 'TOOLCHAIN_GCC_ARM' '-D' 'TRANSACTION_QUEUE_SIZE_SPI=2' '-D' 'USB_DYNAMIC_CONFIGURATION' '-D' 'USE_ARDUINO_PINOUT' '-D' 'USE_FULL_LL_DRIVER' '-D' 'USE_HAL_DRIVER' '-D' 'VIRTIO_MASTER_ONLY' '-D' '__CMSIS_RTOS' '-D' '__CORTEX_M7' '-D' '__FPU_PRESENT=1' '-D' '__MBED_CMSIS_RTOS_CM' '-D' '__MBED__=1' '-Wvla' '-fno-rtti' '-std=gnu++14' '-D' 'APPLICATION_ADDR=0x8040000' '-D' 'APPLICATION_RAM_ADDR=0x24000000' '-D' 'APPLICATION_RAM_SIZE=0x80000' '-D' 'APPLICATION_SIZE=0xc0000' '-D' 'MBED_RAM1_SIZE=0x80000' '-D' 'MBED_RAM1_START=0x24000000' '-D' 'MBED_RAM_SIZE=0x80000' '-D' 'MBED_RAM_START=0x24000000' '-D' 'MBED_ROM_SIZE=0x100000' '-D' 'MBED_ROM_START=0x8000000' '-D' 'MBED_TRAP_ERRORS_ENABLED=1' '-Os' '-Wall' '-Wextra' '-Wno-missing-field-initializers' '-Wno-unused-parameter' '-c' '-fdata-sections' '-ffunction-sections' '-fmessage-length=0' '-fomit-frame-pointer' '-funsigned-char' '-mcpu=cortex-m7' '-mfloat-abi=softfp' '-mfpu=fpv5-d16' '-mthumb' '-iprefix' '/home/benjo/.platformio/packages/framework-arduino-mbed/cores/arduino' '-iwithprefixbefore' '/mbed' '-iwithprefixbefore' '/mbed/cmsis' '-iwithprefixbefore' '/mbed/cmsis/CMSIS_5' '-iwithprefixbefore' '/mbed/cmsis/CMSIS_5/CMSIS' '-iwithprefixbefore' '/mbed/cmsis/CMSIS_5/CMSIS/RTOS2' '-iwithprefixbefore' '/mbed/cmsis/CMSIS_5/CMSIS/RTOS2/Include' '-iwithprefixbefore' '/mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/interface' '-iwithprefixbefore' 
...
'/mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_STM32H747xI_CM7' '-nostdlib' '-D' '-DCM4_BINARY_START=0x08100000' '-std=gnu++14' '-fpch-preprocess' '-v' '-dD' '-E' '-D' '___CIDR_DEFINITIONS_END'
     /home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/cc1plus -E -quiet -v -imultilib thumb/v7e-m/fpv5/softfp -iprefix /home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/ -isysroot /home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/../arm-none-eabi -D__USES_INITFINI__ -D ARDUINO=10810 -D ARDUINO_ARCH_MBED -D ARDUINO_PORTENTA_H7_M7 -D ARM_MATH_CM7 -D BT_UART_NO_3M_SUPPORT -D CM4_BOOT_BY_APPLICATION -D COMPONENT_4343W_FS=1 -D COMPONENT_CYW43XXX=1 -D COMPONENT_FLASHIAP=1 -D COMPONENT_QSPIF=1 -D COMPONENT_WHD=1 -D CORE_CM7 -D CORE_MAJOR=3 -D CORE_MINOR=0 -D CORE_PATCH=1 -D CYW43XXX_UNBUFFERED_UART -D DEVICE_ANALOGIN=1 -D DEVICE_ANALOGOUT=1 -D DEVICE_CAN=1 -D DEVICE_CRC=1 -D DEVICE_EMAC=1 -D DEVICE_FLASH=1 -D DEVICE_I2C=1 -D DEVICE_I2CSLAVE=1 -D DEVICE_I2C_ASYNCH=1 -D DEVICE_INTERRUPTIN=1 -D DEVICE_LPTICKER=1 -D DEVICE_MPU=1 -D DEVICE_PORTIN=1 -D DEVICE_PORTINOUT=1 -D DEVICE_PORTOUT=1 -D DEVICE_PWMOUT=1 -D DEVICE_QSPI=1 -D DEVICE_RESET_REASON=1 -D DEVICE_RTC=1 -D DEVICE_SERIAL=1 -D DEVICE_SERIAL_FC=1 -D DEVICE_SLEEP=1 -D DEVICE_SPI=1 -D DEVICE_SPISLAVE=1 -D DEVICE_SPI_ASYNCH=1 -D DEVICE_STDIO_MESSAGES=1 -D DEVICE_TRNG=1 -D DEVICE_USBDEVICE=1 -D DEVICE_USTICKER=1 -D DEVICE_WATCHDOG=1 -D EXTRA_IDLE_STACK_REQUIRED -D FEATURE_BLE=1 -D MBEDTLS_FS_IO -D MBEDTLS_SHA1_C -D MBED_BUILD_TIMESTAMP=1648633310.1874359 -D MBED_NO_GLOBAL_USING_DIRECTIVE=1 -D MBED_TICKLESS -D METAL_INTERNAL -D METAL_MAX_DEVICE_REGIONS=2 -D NO_ATOMIC_64_SUPPORT -D PLATFORMIO=50300 -D QSPI_NO_SAMPLE_SHIFT -D RPMSG_BUFFER_SIZE=100 -D STM32H747xx -D TARGET_CORDIO -D TARGET_CORTEX -D TARGET_CORTEX_M -D TARGET_LIKE_CORTEX_M7 -D TARGET_LIKE_MBED -D TARGET_M7 -D TARGET_MCU_STM32 -D TARGET_MCU_STM32H7 -D TARGET_MCU_STM32H747xI -D TARGET_NAME=PORTENTA_H7_M7 -D TARGET_PORTENTA_H7 -D TARGET_PORTENTA_H7_M7 -D TARGET_RELEASE -D TARGET_RTOS_M4_M7 -D TARGET_STM -D TARGET_STM32H7 -D TARGET_STM32H747xI -D TARGET_STM32H747xI_CM7 -D TOOLCHAIN_GCC -D TOOLCHAIN_GCC_ARM -D TRANSACTION_QUEUE_SIZE_SPI=2 -D USB_DYNAMIC_CONFIGURATION -D USE_ARDUINO_PINOUT -D USE_FULL_LL_DRIVER -D USE_HAL_DRIVER -D VIRTIO_MASTER_ONLY -D __CMSIS_RTOS -D __CORTEX_M7 -D __FPU_PRESENT=1 -D __MBED_CMSIS_RTOS_CM -D __MBED__=1 -D APPLICATION_ADDR=0x8040000 -D APPLICATION_RAM_ADDR=0x24000000 -D APPLICATION_RAM_SIZE=0x80000 -D APPLICATION_SIZE=0xc0000 -D MBED_RAM1_SIZE=0x80000 -D MBED_RAM1_START=0x24000000 -D MBED_RAM_SIZE=0x80000 -D MBED_RAM_START=0x24000000 -D MBED_ROM_SIZE=0x100000 -D MBED_ROM_START=0x8000000 -D MBED_TRAP_ERRORS_ENABLED=1 -D -DCM4_BINARY_START=0x08100000 -D ___CIDR_DEFINITIONS_END -iprefix /home/benjo/.platformio/packages/framework-arduino-mbed/cores/arduino -iwithprefixbefore /mbed -iwithprefixbefore /mbed/cmsis -iwithprefixbefore /mbed/cmsis/CMSIS_5 -iwithprefixbefore /mbed/cmsis/CMSIS_5/CMSIS -iwithprefixbefore /mbed/cmsis/CMSIS_5/CMSIS/RTOS2 -iwithprefixbefore /mbed/cmsis/CMSIS_5/CMSIS/RTOS2/Include -iwithprefixbefore 
...
iwithprefixbefore /mbed/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source -iwithprefixbefore 
/mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/resources/firmware/COMPONENT_4343W_FS -iwithprefixbefore /mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/resources/nvram -iwithprefixbefore /mbed/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_STM32H747xI_CM7 /tmp/compiler-file2493242467203082620 -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -mthumb -std=gnu++14 -std=gnu++14 -Wvla -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -fpch-preprocess -Os -dD
    ignoring nonexistent directory "/home/benjo/.platformio/packages/framework-arduino-mbed/cores/arduino../../../../arm-none-eabi/include/c++/7.2.1"
    ignoring nonexistent directory "/home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/../arm-none-eabi/usr/local/include"
    ignoring nonexistent directory "/home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/../arm-none-eabi/usr/include"
    #include "..." search starts here:
    #include <...> search starts here:
     /home/benjo/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed
    ...
     /home/benjo/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/../../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include
    End of search list.
    <command-line>:0:1: error: macro names must be identifiers

Expected Results

If problems with PlatformIO Build System:

The content of platformio.ini, right after init:

[env:portenta_h7_m7]
platform = ststm32
board = portenta_h7_m7
framework = arduino

Source file to reproduce issue, right after init. Arduino.h file not found:

#include <Arduino.h>
void setup() {
// write your initialization code here
}

void loop() {
// write your code here
}

Additional info

Update

maxgerhardt commented 2 years ago

The problem with

'-D' '-DCM4_BINARY_START=0x08100000' '-

should be fixed in the latest dev version as discussed in https://github.com/platformio/builder-framework-arduino-core-mbed/issues/6#issuecomment-1155373617

Benni77 commented 2 years ago

The problem with

'-D' '-DCM4_BINARY_START=0x08100000' '-

should be fixed in the latest dev version as discussed in platformio/builder-framework-arduino-core-mbed#6 (comment)

Yes it works perfectly :) Thank you!