question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build_flags error in platformio.ini

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gepdcommented, Sep 8, 2017

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

1reaction
gepdcommented, Sep 23, 2016

Thanks for the report. I’ve reproduced the issue, I’ll try to find a solution without manually changing the name

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build options — PlatformIO v6.1 documentation
Dynamic build flags¶. PlatformIO allows users to run an external command/script which outputs build flags into STDOUT by prepending the shell command with...
Read more >
Setting variables in code using build_flags
Hey folks, I'm using platformio.org to build a new project and I want to insert my WiFi SSID/Password via build flags.
Read more >
Need some help with platformio.ini build_flags
adding some build_flags for access in my program, but I am getting some errors. I thought we didn't need to do anything special...
Read more >
DTEXT_CONST="Some string of text"
What is the proper, current method for defining a constant expression for text? e.g. platformio.ini build_flags = -DWIFI_PASS=“My\ pass'word”.
Read more >
Dumb question about build_flags
In: platformio.ini. I have: [platformio] env_default = esp01 [env:esp01] platform = espressif8266 framework = arduino board = esp01 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found