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

Cannot build on PlatformIO #326

Closed
clabnet opened this issue Oct 9, 2019 · 11 comments
Closed

Cannot build on PlatformIO #326

clabnet opened this issue Oct 9, 2019 · 11 comments

Comments

@clabnet
Copy link

clabnet commented Oct 9, 2019

Using PlatformIO, version 4.0.3 on VSCODE.
I have tried on generic, relayboard and debug environment.
There are many build errors, one of the mayor recurrence is :

In file included from c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\locale_facets_nonio.h:1903:0,
                 from c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\locale:41,
                 from c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\regex:45,
                 from .pio\libdeps\relayboard\ESP Async WebServer_ID306\src/WebHandlerImpl.h:25,
                 from .pio\libdeps\relayboard\ESP Async WebServer_ID306\src/ESPAsyncWebServer.h:461,
                 from .pio\libdeps\relayboard\ESP Async WebServer_ID306\src\AsyncEventSource.h:29,
                 from .pio\libdeps\relayboard\ESP Async WebServer_ID306\src\AsyncEventSource.cpp:21:
c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\locale_facets_nonio.tcc: In member function 'virtual _InIter std::time_get<_CharT, _InIter>::do_get_year(std::time_get<_CharT, _InIter>::iter_type, std::time_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, tm*) const':
c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\locale_facets_nonio.tcc:1131:6: error: invalid use of incomplete type 'struct tm'

I think is missing one dependency on my platform, but I'm not able to solve it.

@omersiar
Copy link
Collaborator

omersiar commented Oct 9, 2019

Yeah, currently I can not build either. Let me find out what's happening on the core side.

@clabnet
Copy link
Author

clabnet commented Oct 9, 2019

Here https://pastebin.com/2SsJUSrZ the complete build log.

@clabnet
Copy link
Author

clabnet commented Oct 9, 2019

Can you add please .pio on .gitignore file ?

@clabnet
Copy link
Author

clabnet commented Oct 9, 2019

Please can you change env_default with default_envs

[platformio]
default_envs = generic

on platformio.ini, because env_default is deprecated.

omersiar added a commit that referenced this issue Oct 9, 2019
@omersiar
Copy link
Collaborator

omersiar commented Oct 9, 2019

Please see 5775cd0

@omersiar
Copy link
Collaborator

omersiar commented Oct 9, 2019

Everything is now OK according to Travis. Thanks 👍

@omersiar omersiar closed this as completed Oct 9, 2019
@clabnet
Copy link
Author

clabnet commented Oct 9, 2019

Sorry, I cannot build, same errors.

@omersiar
Copy link
Collaborator

omersiar commented Oct 9, 2019

Please do clean cache and .pio folder

@omersiar
Copy link
Collaborator

omersiar commented Oct 9, 2019

And this fix is just on dev branch.

@clabnet
Copy link
Author

clabnet commented Oct 9, 2019

Always build errors. :o(
On dev branch:

  • cleared PIO cache folder (C:\Users\Claudio.platformio.cache)
  • cleared PIO packages folder (C:\Users\Claudio.platformio\packages)

I checked all library version, are the same of Travis log.

The last build error log here:
https://pastebin.com/M41Z3U9R

The first error occurred is:

In file included from c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\locale_facets_nonio.h:39:0,
                  from c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\locale:41,
                  from c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\regex:45,
                  from .pio\libdeps\generic\ESP Async WebServer_ID306\src/WebHandlerImpl.h:25,
                  from .pio\libdeps\generic\ESP Async WebServer_ID306\src/ESPAsyncWebServer.h:461,
                  from src\main.cpp:34:
 c:\users\claudio\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\**c++\4.8.2**\ctime:64:11: error: '::clock' has not been declared
    using ::clock;

Can be a different version of c++ compiler ???

@omersiar
Copy link
Collaborator

omersiar commented Oct 9, 2019

It should not, btw I use pure python version of PlatformIO, no Visual Code extension.

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

No branches or pull requests

2 participants