-
-
Notifications
You must be signed in to change notification settings - Fork 114
Arduino builder builds the same sketch with different size #26
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
It also compiles the SD Card library for some reason. You can see the warnings here: \cc @kriegsman and @focalintent |
Is the builder parsing all files for includes, or only those which are actually used? One of the many examples in FastLED includes the SD library. Maybe arduino-builder is mistakenly seeing that? |
I now got a weird error: I could not reproduce this error once more. This is probably unrelated to this issue but maybe there is a race condition in the code which triggered this error as well. Just that this one is very rare. |
Anything that references the |
and FastLED/FastLED@8021b07 should shut up the FastLED warnings. As for why it's including the SD library, I think @PaulStoffregen is right - arduino-builder is being a bit too liberal in which files it's including in its search for linked libraries. It should be careful about this, however - in the main library, FastLED does conditional inclusion of other library header files - but just because the library has #include<SmartMatrix.h> doesn't mean that said include is actually going to happen (because in that particular example/case, the include only happens if SmartMatrix_h has been defined - which means the end user would have to have included SmartMatrix.h in their .ino file first) |
in beta21 arduino-builder also collected example sketches. this is fixed in 45b744f and available with beta22 and latest IDE nightly. As for not parsing all the files, and only those actually used, I'm afraid I can do nothing about it. Both old and new compiling procedures used to compile every single cpp file, delegating to the linker the task of filtering unused code. So @NicoHood and @PaulStoffregen please ensure you're using the very latest hourly build |
I will try again today. The skipped error never showed up again. However the commit you linked doesnt matter for me since I am using avr and not sam. |
Let me know how your tests go |
Original Problem (Mega compiling with different size) is gone. However the warnings themselves should be fixed. But thats not related to this ;) |
I can't wait for a new issue @NicoHood . File it asap :) |
Very weird bug: Hitting compile several times results in different flash usage, even with no change at all.
Used this IDE for linux64bit (okay I made some changes to the usb code, but this should not matter here. also I compiled this myself, just that you get an idea of the build date).
arduino/Arduino#3896 (comment)
I compiled for Arduino Mega. Uno and leonardo works fine.
Sketch size is between 7238 and 7246. Very useful for debugging and getting the last byte out of the code ;) (not)
The sketch (requires FastLED3.1 release, no dev version or sth like this)
(sketch edited and shrinked after some time)
Arduino builder commands:
It seems this only happens with the mega and the FastLED3.1 library.
\cc @kriegsman and @focalintent
The text was updated successfully, but these errors were encountered: