-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Build errors xtensa-lx106-elf-gcc: error: unrecognized command line option '-std=c17' #7481
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
Comments
That would mean its using the wrong compiler. You probably have other releases installed and its finding that compiler first. |
Any idea how to fix that? |
On linux I had remnants of an old arduino-ide install left over in ~/.arduino15 and ~/.arduino15/packages. rm'ing them solved it. |
Well I'm not using Arduino IDE, but PlatformIO, which usually does a good job in separating things per build env declared in the platformio.ini file. |
And Makefiles do that even better for me, Find your conflicting compiler and youll solve your problem |
Strictly speaking, you may be right, but the problem is that it is all installed "automagically" by PlatformIO and even though I may be able to fix it for my specific build environment. |
That would indicate a platformIO issue then. Maybe ask there since the latest git master and releases here are working fine and have nothing to do with any "staging" releases. |
Well something has changed here, as it was working well and some merge to the "master" branch included some build flags what made it cause to no longer build. It could very well be PlatformIO related, but I am simply not sure. |
The merge was switching to gcc-10 here, which works fine if you use the correct compiler. |
Guess you got pointed in the right direction eh? |
Not sure, I opened an issue at the PlatformIO repo: platformio/platform-espressif8266#224 So we'll see if I got redirected again to the right repo as that happens quite often with these kind of issues. :( |
Sounds to me like platformIO just needs gcc-10 installed. Hope it works out. |
After deleting the esp8266 board package using the Board manager there were still files in my folder |
Basic Infos
Platform
Settings in IDE
Problem Description
Trying to build the 'staging' version of the esp8266/Arduino code and my compiler keeps complaining about not recognizing the
-std=c17
flag.xtensa-lx106-elf-gcc: error: unrecognized command line option '-std=c17'
Tried in PlatformIO several things, like changing the
platform
version.The current version I'm having (which is not working):
So my question is, what should be done to make it compile in Windows?
By the way, tried it in Linux and without any extras installed (not tested any) it will also not compile there.
The text was updated successfully, but these errors were encountered: