Skip to content

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

Open
@per1234

Description

@per1234

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 arduino-libraries/ArduinoSound#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions