-
Notifications
You must be signed in to change notification settings - Fork 449
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
Allow compilation in recent ARDUINO ESP32 RELEASES 2.0.1 and 2.0.2… #502
Allow compilation in recent ARDUINO ESP32 RELEASES 2.0.1 and 2.0.2… #502
Conversation
… excluding AudioGeneratorMIDI
I see that "core_version.h" is not available in all contexts (I verified it was in ESP32 and ESP8266). May be this proposal serves as inspiration for some to find a general solution. (Mine works fine locally in my computer) |
I fixed the error arising from "core_version.h" not being available in all contexts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is the GCC version, so why not just use
#if __GNUC__ == 8
// Do not build, GCC8 has a compiler bug
#else
....
That way if V2.0.3 comes out w/the same compiler it's still good.
Oh, and thanks for the PR! |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Should we remove the code now? or make it configable.
Because MIDI works on gcc8.4 patch3. and my esp8266 use gcc8 too. We can't use midi if keep it. This is esp32:
And when esp8266 use 10.3, GNUC is equals 8 too!!!
|
@shuai132, I am not seeing GNUC as 8 in 10.3. Here is my output from the ESP8266 core:
I would be fine adding additional conditions to the
|
Sorry, 10.3 is correct, it's my IDE(clion) issue(host compiler's notice).
BTW:
I have tested it, it works on my esp32 compiler. |
@shuai132 great. Would you like to make the PR adding the |
Thanks,my pleasure, |
… by excluding AudioGeneratorMIDI
This is a temporary solution that drops MIDI support to make this library available in most recent ESP32-Arduino cores, which have a compiler bug that renders this code incompatible.
(Temporary) Fix for:
#498
#464
#440