2022-11-08 01:30 PM
I tried uninstalling the program and reinstalling it but it didn't work. Can somebody help me? I have this output in my console:
19:05:11 **** Incremental Build of configuration Debug for project Test ****
make -j4 all
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F411xE -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o"
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F411xE -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o"
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F411xE -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o"
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F411xE -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o"
cc1: Invalid option `-imultilib'
cc1: Invalid option `-isysroot'
cc1: Invalid option `-MMD'
cc1: Invalid option `-MF'
cc1: Invalid option `-MP'
cc1: Invalid option `-MT'
cc1: warning: unrecognised gcc debugging option: D
cc1: Invalid option `fpu=fpv4-sp-d16'
cc1: Invalid option `float-abi=hard'
cc1: Invalid option `thumb'
cc1: Invalid option `libarch=armv7e-m+fp'
cc1: Invalid option `-auxbase-strip'
cc1: Invalid option `-std=gnu11'
cc1: Invalid option `-fdata-sections'
cc1: Invalid option `-fstack-usage'
ccDrivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o: No such file or directory
1: bad value (armv7e-m+fp) for -march= switch
cc1: bad value (cortex-m4) for -mcpu= switch
cc1: cc1: Invalid option `-imultilib'
cc1: Invalid option `-isysroot'
cc1: Invalid option `-MMD'
cc1: Invalid option `-MF'
cc1: Invalid option `-MP'
cc1: Invalid option `-MT'
cc1: warning: unrecognised gcc debugging option: D
cc1: Invalid option `fpu=fpv4-sp-d16'
cc1: Invalid option `float-abi=hard'
cc1: Invalid option `thumb'
cc1: Invalid option `libarch=armv7e-m+fp'
cc1: Invalid option `-auxbase-strip'
cc1: Invalid option `-std=gnu11'
cc1: Invalid option `-fdata-sections'
cc1: Invalid option `-fstack-usage'
ccDrivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o: No such file or directory
1: bad value (armv7e-m+fp) for -march= switch
cc1: bad value (cortex-m4) for -mcpu= switch
cc1: cc1: Invalid option `-imultilib'
cc1: Invalid option `-isysroot'
cc1: Invalid option `-MMD'
cc1: Invalid option `-MF'
cc1: Invalid option `-MP'
cc1: Invalid option `-MT'
cc1: warning: unrecognised gcc debugging option: D
cc1: Invalid option `fpu=fpv4-sp-d16'
cc1: Invalid option `float-abi=hard'
cc1: Invalid option `thumb'
cc1: Invalid option `libarch=armv7e-m+fp'
cc1: Invalid option `-auxbase-strip'
cc1: Invalid option `-std=gnu11'
cc1: Invalid option `-fdata-sections'
cc1: Invalid option `-fstack-usage'
ccmake: *** [Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk:64: Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o] Error 1
make: *** Waiting for unfinished jobs....
Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o: No such file or directory
1: bad value (armv7e-m+fp) for -march= switch
cc1: bad value (cortex-m4) for -mcpu= switch
cc1: cc1: Invalid option `-imultilib'
cc1: Invalid option `-isysroot'
cc1: Invalid option `-MMD'
cc1: Invalid option `-MF'
cc1: Invalid option `-MP'
cc1: Invalid option `-MT'
cc1: warning: unrecognised gcc debugging option: D
cc1: Invalid option `fpu=fpv4-sp-d16'
cc1: Invalid option `float-abi=hard'
cc1: Invalid option `thumb'
cc1: Invalid option `libarch=armv7e-m+fp'
cc1: Invalid option `-auxbase-strip'
cc1: Invalid option `-std=gnu11'
cc1: Invalid option `-fdata-sections'
cc1: Invalid option `-fstack-usage'
ccDrivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o: No such file or directory
1: bad value (armv7e-m+fp) for -march= switch
cc1: bad value (cortex-m4) for -mcpu= switch
cc1: make: *** [Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk:64: Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o] Error 1
make: *** [Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk:64: Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o] Error 1
make: *** [Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk:64: Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
19:05:12 Build Failed. 5 errors, 0 warnings. (took 690ms)
2022-11-08 08:40 PM
Upload your project
2022-11-09 01:40 AM
Hello @Patryk �?uczak
First let me thank you for posting.
To be able to reproduce this behavior for my side, I will need that you provide me with the steps you made in order to create the project.
Also, when you said, "I tried uninstalling the program and reinstalling it but it didn't work". What program you are referring to?
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-11-11 04:31 AM
Thank you for your answer.
Firstly, when it comes to uninstalling the program, I meant the Stm32CubeIDE.
Seondly, the steps I made in order to create the project are:
In the attachment I've added file with this project.
2022-11-11 04:32 AM
I did in a reply to @Semer CHERNI
2022-11-11 11:21 PM
I've imported your project and clicked the build button. It finished building with no errors.
Not sure if it's important but did you install CubeIDE in the default location or did you change the location?
2022-11-12 06:49 AM
In the first attempt I installed it in the chosen location but after reinstalling I left the default location. I also tried to change my environmental variable called GGC_EXEC_PREFIX to the location where I have arm compiler but it didn't worked.
2022-11-12 02:03 PM
Try to add a pre-build step, there print output of 'echo $PATH` and 'which cc1'.
Do you have a supported Linux or MacOS version?
2022-11-14 03:58 AM
I have a Windows version and I'm using Windows 10.
2022-11-18 03:56 PM
Ok, then "echo %PATH%" and "where cc1"