-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
time.cpp:27:14: fatal error: sys/_tz_structs.h: No such file or directory #7792
Comments
The toolchain needs an update |
PIO needs to be explicitly told about the toolchain-xtensa package version when on Some discussion here:
environment should have: platform_packages =
platformio/framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
mcspr/toolchain-xtensa @ 5.100200.201223 Documentation needs an update, both https://docs.platformio.org/en/latest/platforms/espressif8266.html and README. idk about referring to the |
@mcspr The Linux package seems to have wrong permissions in the package. |
same here
|
@proddy it is NOT a Arduino ESP8266 issue. It is a PlatformIO issue. mcspr already opened a issue in platformio github |
I'm going to close this since it seems the consensus is it's a PIO issue and might already have been taken care of. If there's a core-proper problem we can reopen and figure it out. |
Not really.... The fix mentioned here is -for now- the fix. Just to give an impression of "not being fixed" (and for those ending up here when searching for the build error)
|
Fair enough, thanks for the pointer for others. But if you're getting something like...
then there's definitely nothing we can do here to fix that. Hopefully PIO will be able to fix things... |
I can compile this repo in C++17 mode (since that's already the default in the This include file is nowhere to be found in the Xtensa GCC 10.1.0 package (at least the one server by PlatformIO from official sources from e.g. here). Since it still compiles it must have been moved into headers that are already included (otherwise there would be a build failure). So I think the Arduino core shouldn't include a compiler and compiler-version specific / internal Or it could be you're using another package version / source for the xtensa compiler that actually has that file? Where is that sourced from? Full
|
@maxgerhardt the toolchain provided from Platformio you mentioned is to old to be used with actual Arduino stage. The needed toolchain is here https://github.com/earlephilhower/esp-quick-toolchain/releases/tag/3.0.0-newlib4.0.0-gnu22 |
Thanks, confirmed working with that direct toolchain and a new clean clone of the current repo.
Since I did not see that a PlatformIO issue was opened between 24th December and now regarding the toolchain update, I opened it at platformio/platform-espressif8266#242. The version in the current repo is the second-latest availalbe version in relation to the repo you posted above. Edit: Per linked issue it's also much simpler to use @mcspr's toolchain version for 10.2.0 with
no file modifications necessary. |
I am using Arduino to program my esp8266 and I am getting the same thing so how is it not an Arduino ESP8266 issue? |
@crwhite57 you have to install as described here https://github.com/esp8266/Arduino#using-git-version |
So are you saying to install the latest version of Arduino? If so, I have the newest version you can get. If not, Please explain. |
In what sketch are you getting this error? Any, like also the blinky sketch? That error should only appear if you are using a very recent Arduino-ESP8266 core version but an older compiler that doesn't have this file (in the right place). |
I am getting in any sketch I do a check on. I can't find where to get that
file.
…On Sat, Apr 3, 2021 at 3:22 PM Maximilian Gerhardt ***@***.***> wrote:
In what sketch are you getting this error? Any, like also the blinky
sketch?
That error should only appear if you are using a very recent
Arduino-ESP8266 core version but an older compiler that doesn't have this
file (in the right place).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7792 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATM2LSUYNIM6ORHDNYU47OLTG5THTANCNFSM4VHS32IQ>
.
|
And did you install Arduino-ESP8266 in the Arduino IDE via the board manager URL or somehow else? |
Yes, I put that in and set my board to the lion Wemos d1 mini. I have also
tried it by setting it as a Wemos D1 R2.
…On Sat, Apr 3, 2021 at 4:10 PM Maximilian Gerhardt ***@***.***> wrote:
And did you install Arduino-ESP8266 in the Arduino IDE via the board
manager URL
<https://github.com/esp8266/Arduino#installing-with-boards-manager> or
somehow else?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7792 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATM2LSXO6QHRW2YMN5WDTVDTG5Y27ANCNFSM4VHS32IQ>
.
|
This issue is caused y a mismatching toolchain and source code. There are several ways to install this core and the matching toolchain:
Overwriting an installation with another one's source code is unsupported and leads to issues. |
Ok, thanks.
…On Sat, Apr 3, 2021 at 4:53 PM david gauchard ***@***.***> wrote:
This issue is caused y a mismatching toolchain and source code.
There are several ways to install this core and the matching toolchain:
- arduino board manager will install the right toolchain
- git version gets its toolchain via the script get.py in tools/
- PlatformIO <https://github.com/esp8266/Arduino#using-platformio>
Overwriting an installation with another one's source code *is
unsupported and lead to issues*.
When using the Arduino IDE, ehe issue often disappears by completely
removing the esp8266/arduino installation and restarting from scratch. By
completely is meant that arduino15/package/esp8266 directory must be is
removed too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7792 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATM2LSX2HLSOZOGNXU7QMR3TG553JANCNFSM4VHS32IQ>
.
|
I am having the same problem but i did note that i could not find the time.h file |
Basic Infos
Platform
Settings in IDE
Problem Description
In my builds where I use the latest git of esp8266/Arduino, I get this build error:
This is when building in Windows as well as building in Linux.
The text was updated successfully, but these errors were encountered: