Deviot: build_flags error in platformio.ini
I have the following build flags set in my .ini file:
build_flags = -larm_cortexM4l_math -lm -Wl,-u,_printf_float
But every time I upload, the commas get expanded and a space is added leaving it like this:
build_flags = -larm_cortexM4l_math -lm -Wl, -u, _printf_float
(extra spaces added for readability)
Which is wrong syntax since gcc expects no spaces after the commas in the -Wl
flag (I have used these flags before, with Deviot 1.2.4 and PlatformIO 2.11.2) and therefore build fails.
I’ve tested this with the Atom PlatformIO IDE and the expansion does not occur (IDE 1.4.0 and PlatformIO 3.0.1).
The error:
*** [.pioenvs/teensy31/firmware.elf] Implicit dependency
/Users/gianpaolo/.platformio/platforms/teensy/builder/_printf_float’ not found, needed by target .pioenvs/teensy31/firmware.elf'.
System is OSX 10.11.6 Deviot 1.2.5 PlatformIO 3.0.1 Board: Teensy 3.2
Thanks!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (8 by maintainers)
Commits related to this issue
- Fixed problem adding whitespaces in platformio.ini file when flags are used (Issue: https://github.com/gepd/Deviot/issues/63) — committed to gepd/Deviot by gepd 8 years ago
- Force to create the temp folder when it doesn't exist (issue: https://github.com/gepd/Deviot/issues/63) — committed to gepd/Deviot by gepd 8 years ago
- Fixed problem adding whitespaces in platformio.ini file when flags are used (Issue: https://github.com/gepd/Deviot/issues/63) — committed to limbocode/Deviot by gepd 8 years ago
This issue was finally fixed with: https://github.com/gepd/Deviot/commit/ef012b106773689536287d7b3db338ccdf42d5ae
There not need to change anyting
Re-open if there is any issue related to this
Thanks for the report. I’ve reproduced the issue, I’ll try to find a solution without manually changing the name
Can you check if this commit is in your code?