Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Paths with spaces #39

Open
m1ke02 opened this issue May 21, 2020 · 2 comments
Open

Paths with spaces #39

m1ke02 opened this issue May 21, 2020 · 2 comments

Comments

@m1ke02
Copy link

m1ke02 commented May 21, 2020

Hi!

In the readme you state that paths to compiler and build tools can contain spaces.
But for me build command generated by the script does not work (ran it both through VSCode task and manualy under Build Tools shell):

$ make "GCC_PATH=C:/Programs/GNU MCU Eclipse/ARM Embedded GCC/bin" -j6
make: *** [Makefile:156: build/main.o] Error 127
make: *** Waiting for unfinished jobs....
make: *** [Makefile:156: build/stm32f4xx_it.o] Error 127
c:/programs/gnu mcu eclipse/build tools/2.12-20190422-1053/bin/sh: C:/Programs/GNU: not found

Under Build Tools shell It can be fixed by adding extra quotes to GCC_PATH:
$ make "GCC_PATH='C:/Programs/GNU MCU Eclipse/ARM Embedded GCC/bin'" -j6
... Build succesful

But build task ran from VSCode does not work even after adding quotes to GCC_PATH in tasks.json:

> Executing task in folder Stm32CubeGCC: & 'C:/Programs/GNU MCU Eclipse/Build Tools/2.12-20190422-1053/bin/make.exe' GCC_PATH='C:/Programs/GNU MCU Eclipse/ARM Embedded GCC/bin' -j6 <

mkdir build
C:/Programs/GNU MCU Eclipse/ARM Embedded GCC/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_HAL_DRIVER -DSTM32F429xx -IInc -IDrivers/STM32F4xx_HAL_Driver/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F4xx/Include -IDrivers/CMSIS/Include -IDrivers/CMSIS/Include -Og -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/main.d" -Wa,-a,-ad,-alms=build/main.lst Src/main.c -o build/main.o
C:/Programs/GNU MCU Eclipse/ARM Embedded GCC/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_HAL_DRIVER -DSTM32F429xx -IInc -IDrivers/STM32F4xx_HAL_Driver/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F4xx/Include -IDrivers/CMSIS/Include -IDrivers/CMSIS/Include -Og -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/stm32f4c:/programs/gnu mcu eclipse/build tools/2.12-20190422-1053/bin/sh: xx_it.d" -Wa,-C:/Programs/GNU: not found
a,-ad,-alms=build/stm32f4xx_it.lst Src/stm32f4xx_it.c -o build/stm32f4xx_it.o
make: *** [Makefile:156: build/main.o] Error 127
make: *** Waiting for unfinished jobs....
c:/programs/gnu mcu eclipse/build tools/2.12-20190422-1053/bin/sh: C:/Programs/GNU: not found
make: *** [Makefile:156: build/stm32f4xx_it.o] Error 127
The terminal process terminated with exit code: 1

Default shell set to PowerShell

@schperplata
Copy link
Member

Default shell set to PowerShell

Did you try to use cmd.exe instead of power shell?

@m1ke02
Copy link
Author

m1ke02 commented May 21, 2020

Did you try to use cmd.exe instead of power shell?

Yes, tried with no luck.
cmd.exe does not interpret single quote as a quote at all, just as a regular character.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants