-
-
Notifications
You must be signed in to change notification settings - Fork 220
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 errors xtensa-lx106-elf-gcc: error: unrecognized command line option '-std=c17' #224
Comments
ref. esp8266/Arduino#6294 (comment) Current installation instructions expect Arduino IDE: |
OK, I got 1 step further, but apparently it is not enough. In my platformio.ini:
So it does install something...
Build error:
|
You need to use the OS-specific .zip / tarball from releases, see my link:
|
But that's not usable. |
Like I said, list of toolchains is provided in the platform ( This list is in the Core repo, but it is for the Arduino IDE package: platform_packages = ... simply overrides the package from the platform.json by name, but I am not sure if it is modifiable via scripting. What I was suggesting is to find a solution of integrating it with PIO (...moving manifest & platform to the esp8266/Arduino repo?), avoiding such weird configuration where you end up the maintainer of the package list. |
Well at least I now have it up and running on my Windows environment. |
True, but hopefully this is something temporary. I wonder if platformio could try to read a specific file inside of the selected "framework" package, which will list the additional package files; i.e., adding itself to the in platform.json's "packageRepositories" list. Or, add platform_repositories = ... URLs in addition to the existing platform_packages = ..., so we could add those directly via platformio.ini But, this becomes an issue for the https://github.com/platformio/platformio-core/issues |
Hi guys, I've just uploaded GCC v10.1.0 to our CDN, so you should be able to override the default toolchain in your platformio.ini: [env:nodemcuv2]
platform = espressif8266
framework = arduino
board = nodemcuv2
monitor_speed = 115200
platform_packages =
toolchain-xtensa @ ~2.100100.0 Please let me know if it works, thanks! |
Apart from the build issues with GCC10.1 I still need to fix, it both installs on Windows 10 (64 bit) and the Ubuntu20.04 I run on Linux for Windows subsystem. |
Is there anything else I can help you with? |
Not right now, so unless someone else finds an environment where the toolchain cannot be installed, I would say this issue can be closed. |
When upstream changes to a newer version (e.g. 10.2) while still in development, will it somehow be tracked and uploaded to the PIO registry? By watching https://github.com/earlephilhower/esp-quick-toolchain/releases automatically or otherwise. btw any thoughts on the |
Hi @mcspr
Unfortunately, there is no easy way to achieve that. Only stable/critical updates are uploaded to PlatformIO CDN.
It might be a good idea to open a feature request in the |
@mcspr since earlephilhower added a package.json you can easily build your own.
|
@Jason2866 Yes, I had noticed that! My only issue is besides the manifest, we also drag python code included in the platform when we fork it. The idea here is to allow to override the manifest.json through .ini directly, while still using the original Meaning, something like: [env:test]
platform = espressif8266
framework = arduino
board = d1_mini
platform_repositories =
my_own_manifest_with_toolchain_xtensa.json ; e.g. esp8266/Arduino CI could ship / convert existing ArduinoIDE files without much hassle
platform_packages =
framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
toolchain-xtensa @ ~2.100200.0 ; future 10.2 edit: also see platformio/platformio-core#3612 |
@mcspr yes, that would be a nice feature. |
After updating similar to xoseperez/espurna@8510f77 in my project i am getting many errors including declaration of byte.
AND, It is happening only when i am using platfomio, with Arduino It is compiling without any problem.
|
@arihantdaga as a random guess - do you have |
Latest code base of esp8266/Arduino cannot be built anymore.
Apparently we're using the wrong compiler.
What can be done to be able to compile the latest "master" branch of esp8266/Arduino?
The text was updated successfully, but these errors were encountered: