Skip to content

How to handle persistant inclusions of not wanted libraries. #1295

@HiroP0

Description

@HiroP0

Description
espressif ESP32 (Board: Dev Module or M5Stack) provides logging by macros reacting to the "Core Debug Level" board setting.
(https://dl.espressif.com/dl/package_esp32_index.json, v1.0.7)

Once a log level is set FreeRTOS library gets included, but the builds fail due to an unresolved dependency to <avr/io.h>. Setting log level back to none and detaching FreeRTOS library enables successful builds again. Arduino IDE builds successfully. (Issue persits with Sloeber independently from whether Arduino IDE is installed or not).
So ESP32 default logging does not work.

To Reproduce

Source ino:

#include "Arduino.h"
void setup() {
log_e("Baaad.");
}
void loop() {}

  1. Create ESP32 project, "Core Debug Level" None
  2. Use full source ino from above
  3. Build --> successful
  4. Set Project>Preferences>Ardunio: "Core Debug Level": "Error"
  5. Build -->FreeRTOS gets included
  6. See error:

....
\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src" -MMD -MP -MF"libraries\FreeRTOS\src\croutine.c.d" -MT"libraries\FreeRTOS\src\croutine.c.o" -D__IN_ECLIPSE__=1 "E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\croutine.c" -o "libraries\FreeRTOS\src\croutine.c.o"
In file included from E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\Arduino_FreeRTOS.h:57:0,
from E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\croutine.c:27:
E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\FreeRTOSConfig.h:30:20: fatal error: avr/io.h: No such file or directory
compilation terminated.
libraries\FreeRTOS\src\subdir.mk:49: recipe for target 'libraries\FreeRTOS\src\croutine.c.o' failed
make: *** [libraries\FreeRTOS\src\croutine.c.o] Error 1
"E:/dev/eclipse/arduinoPlugin/tools/make/make all" terminated with exit code 2. Build might be incomplete.

18:15:39 Build Failed. 3 errors, 0 warnings. (took 1s.266ms)

Expected behavior
Successful build & logging.

ProjectSettings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions