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

Comments

Projects
None yet
2 participants
@Seep1959

Seep1959 commented Dec 17, 2015

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

This comment has been minimized.

Member

ivankravets commented Dec 17, 2015

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 ivankravets added this to the 2.6.1 milestone Dec 17, 2015

@ivankravets ivankravets added the bug label Dec 17, 2015

@ivankravets ivankravets self-assigned this Dec 17, 2015

ivankravets added a commit that referenced this issue Dec 18, 2015

ivankravets added a commit that referenced this issue Dec 18, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Dec 18, 2015

@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