cancel
Showing results for 
Search instead for 
Did you mean: 

In tryiing a simple "LED flasher" tutorial building for a Nucleo L432KC, get "machine/_default_types.h" build error in Eclipse

mike_whittaker
Associate

19:02:43 **** Incremental Build of configuration Release for project asyncout ****

make all

Building file: ../Src/main.c

Invoking: MCU GCC Compiler

C:\Users\mikew-dell\STMicroelectronics\projects\asyncout\Release

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32L432xx -I"C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Inc" -I"C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/STM32L4xx_HAL_Driver/Inc" -I"C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/STM32L4xx_HAL_Driver/Inc/Legacy" -I"C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/CMSIS/Include" -Og -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"Src/main.d" -MT"Src/main.o" -o "Src/main.o" "../Src/main.c"

In file included from c:\users\mikew-dell\.eclipse\org.eclipse.platform_4.8.0_109843802_win32_win32_x86_64\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825\tools\compiler\lib\gcc\arm-none-eabi\7.3.1\include\stdint.h:9:0,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/CMSIS/Include/core_cm4.h:34,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l432xx.h:145,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l4xx.h:130,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_def.h:30,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_rcc.h:29,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Inc/stm32l4xx_hal_conf.h:224,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h:30,

                from C:/Users/mikew-dell/STMicroelectronics/projects/asyncout/Inc/main.h:31,

                from ../Src/main.c:22:

c:\users\mikew-dell\.eclipse\org.eclipse.platform_4.8.0_109843802_win32_win32_x86_64\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825\tools\compiler\arm-none-eabi\include\stdint.h:12:10: fatal error: machine/_default_types.h: No such file or directory

 #include <machine/_default_types.h>

         ^~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

Src/subdir.mk:33: recipe for target 'Src/main.o' failed

make: *** [Src/main.o] Error 1

Software versions:

STM32 CubeMX v 5.2.0

Eclipse:

Eclipse GCC Cross Compiler Support

Version: 9.5.0.201806170908

Build id: @build@

System Workbench for STM32 - OpenOCD (for Windows 32bits)

Version: 1.17.0.201812190825

Build id: @build@

Eclipse Help

Version: 2.2.200.v20180611-0500

Build id: I20180611-0500

I tried adding the include path explicitly to the project build properties​, to avail.

0 REPLIES 0