arduino-builder icon indicating copy to clipboard operation
arduino-builder copied to clipboard

Library architecture mismatch warning is not displayed when compilation fails due to missing include files

Open per1234 opened this issue 8 years ago • 0 comments
trafficstars

Using Arduino IDE 1.8.3 Hourly Build 2017/04/26 01:33

Steps to reproduce:

  1. Install the ArduinoSound library
  2. Compile any example sketch of that library for Arduino/Genuino Uno

The compilation fails but no library architecture mismatch warning is shown:

In file included from E:\Stuff\misc\electronics\arduino\libraries\ArduinoSound\src/ArduinoSound.h:28:0,
                 from E:\Stuff\misc\electronics\arduino\libraries\ArduinoSound\examples\AmplitudeSerialPlotter\AmplitudeSerialPlotter.ino:20:
E:\Stuff\misc\electronics\arduino\libraries\ArduinoSound\src/AmplitudeAnalyzer.h:25:22: fatal error: arm_math.h: No such file or directory
 #include <arm_math.h>
                      ^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.

The expected library architecture mismatch warning:

WARNING: library ArduinoSound claims to run on (samd) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s).

would have provided the user who reported https://github.com/arduino-libraries/ArduinoSound/issues/4 with an important clue to the cause of the error.

Another example of when this warning being displayed would have been helpful: http://forum.arduino.cc/index.php?topic=504220

per1234 avatar May 22 '17 14:05 per1234