Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails when platformio trys to compile and the build path contains spaces. #387

Closed
Seep1959 opened this issue Dec 17, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@Seep1959
Copy link

On windows platformio seems to by default keep toolchains, ldscripts, and library's in "C:\Users<Username>.platformio . When the username contains a space, platformio fails when attempting to compile do to the path being split at the space. Here is my terminal output when I run "platformio run".

On line 252 and 253 you can see

arm-none-eabi-gcc: error: C:\Users\Firstname: No such file or directory
arm-none-eabi-gcc: error: LastName.platformio\packages\framework-libopencm3\lib\stm32\f4\stm32f405x6.ld: No such file or directory

Instead of the path being

"C:\Users\Firstname Lastname.platformio\packages\framework-libopencm3\lib\stm32\f4\stm32f405x6.ld"

it is split to become

"C:\Users\Firstname" and "Lastname.platformio\packages\framework-libopencm3\lib\stm32\f4\stm32f405x6.ld"

causing it to fail building.

I am running on windows 8.1 64bit, platformio version 2.6.0, and python version 2.7.11

If anyone knows a temporary work around, possibly storing .platformio in a different directory. I would really appreciate it.

@ivankravets
Copy link
Member

I'll look on it. Temporary solution http://docs.platformio.org/en/latest/faq.html#windows-unicodedecodeerror-ascii-codec-can-t-decode-byte

Regards, Ivan Kravets

  • Ph.D, Researcher and Software Architect
  • "Creativity comes from talent and never from knowledge" (c)
    http://www.ikravets.com

On 18 Dec. 2015 р., at 01:08, Seep1959 notifications@github.com wrote:

On windows platformio seems to by default keep toolchains, ldscrips, and librarys in "C:\Users\platformio When the username contains a space, platformio fails when attempting to compile do to the path being split at the space Here is my terminal output when I run "platformio run"

On line 252 and 253 you can see

arm-none-eabi-gcc: error: C:\Users\Firstname: No such file or directory
arm-none-eabi-gcc: error: LastName\platformio\packages\framework-libopencm3\lib\stm32\f4\stm32f405x6ld: No such file or directory

Instead of the path being

"C:\Users\Firstname Lastname\platformio\packages\framework-libopencm3\lib\stm32\f4\stm32f405x6ld"

it is split to become

"C:\Users\Firstname" and "Lastname\platformio\packages\framework-libopencm3\lib\stm32\f4\stm32f405x6ld"

causing it to fail building

I am running on windows 81 64bit, platformio version 262, and python version 2711

If anyone knows a temporary work around, possibly storing platformio in a different directory I would really appreciate it


Reply to this email directly or view it on GitHub.

@ivankravets
Copy link
Member

@Seep1959 PlatformIO 2.6.1 is released! Please upgrade https://github.com/platformio/platformio/releases/tag/v2.6.1

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

No branches or pull requests

2 participants