Skip to content

V5.0 testing - ESP32-C3 includes are missing in the Eclipse Project Explorer view #1672

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

Closed
ArminJo opened this issue Aug 19, 2024 · 6 comments
Assignees

Comments

@ArminJo
Copy link

ArminJo commented Aug 19, 2024

In my old 4.3.3 project i see:
grafik

After restarting Sloeber5 with the new C3 project and opening the Sloeber project properties to add a port, I see:
grafik

But nevertheless the Includes still have only 11 entries.
grafik
and I get the error

Starting C++ compile: Esp.cpp.o
"E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp-rv32\2302/bin/riscv32-esp-elf-g++" -MMD -c "@E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/flags/cpp_flags" -Wall -Wextra -Os -DF_CPU=10000000L -DARDUINO=20302 -DARDUINO_ESP32C3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=\"ESP32C3_DEV\" -DARDUINO_VARIANT="esp32c3" -DARDUINO_PARTITION_app3M_fat9M_16MB -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32c3:BOD=4v3,bootloader=uart0,CDCOnBoot=cdc,clock=16MHz_external,CPUFreq=10,DebugLevel=debug,eeprom=keep,EraseFlash=all,FlashFreq=40,FlashMode=dio,FlashSize=16M,JTAGAdapter=bridge,LTO=Os_flto,PartitionScheme=app3M_fat9M_16MB,pinout=standard,UploadSpeed=115200,variant=modelP,ZigbeeMode=default" -DESP32 -DCORE_DEBUG_LEVEL=4    -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1  "@E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/flags/defines" "-IE:\WORKSPACE_SLOEBER5\testESP32_C3\src" -iprefix "E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/include/" "@E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/flags/includes" "-IE:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/dio_qspi/include" "-IE:/WORKSPACE_SLOEBER/libraries/IRremote/src" "-IE:/Sloeber5/arduinoPlugin/libraries/FreeRTOS/11.1.0-2/src" "-IE:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/variants/esp32c3" "-IE:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32" -MMD -MP "-MFarduino/Release/core/Esp.cpp.d" "-MTarduino/Release/core/Esp.cpp.o" -D__IN_ECLIPSE__=1 "@E:\WORKSPACE_SLOEBER5\testESP32_C3\bin\Release/file_opts" "E:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32/Esp.cpp" -o "arduino/Release/core/Esp.cpp.o"     
In file included from E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/include/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:65,
                 from E:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32/Arduino.h:33,
                 from E:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32/Esp.cpp:20:
E:/Sloeber5/arduinoPlugin/libraries/FreeRTOS/11.1.0-2/src/FreeRTOSConfig.h:32:10: fatal error: avr/io.h: No such file or directory
@jantje
Copy link
Member

jantje commented Aug 19, 2024

Starting C++ compile: Esp.cpp.o
"E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp-rv32\2302/bin/riscv32-esp-elf-g++" -MMD -c "@E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/flags/cpp_flags" -Wall -Wextra -Os -DF_CPU=10000000L -DARDUINO=20302 -DARDUINO_ESP32C3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=\"ESP32C3_DEV\" -DARDUINO_VARIANT="esp32c3" -DARDUINO_PARTITION_app3M_fat9M_16MB -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32c3:BOD=4v3,bootloader=uart0,CDCOnBoot=cdc,clock=16MHz_external,CPUFreq=10,DebugLevel=debug,eeprom=keep,EraseFlash=all,FlashFreq=40,FlashMode=dio,FlashSize=16M,JTAGAdapter=bridge,LTO=Os_flto,PartitionScheme=app3M_fat9M_16MB,pinout=standard,UploadSpeed=115200,variant=modelP,ZigbeeMode=default" -DESP32 -DCORE_DEBUG_LEVEL=4    -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1  "@E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/flags/defines" "-IE:\WORKSPACE_SLOEBER5\testESP32_C3\src" -iprefix "E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/include/" "@E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/flags/includes" "-IE:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/dio_qspi/include" "-IE:/WORKSPACE_SLOEBER/libraries/IRremote/src" "-IE:/Sloeber5/arduinoPlugin/libraries/FreeRTOS/11.1.0-2/src" "-IE:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/variants/esp32c3" "-IE:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32" -MMD -MP "-MFarduino/Release/core/Esp.cpp.d" "-MTarduino/Release/core/Esp.cpp.o" -D__IN_ECLIPSE__=1 "@E:\WORKSPACE_SLOEBER5\testESP32_C3\bin\Release/file_opts" "E:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32/Esp.cpp" -o "arduino/Release/core/Esp.cpp.o"     
In file included from E:\Sloeber5\arduinoPlugin\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32c3/include/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:65,
                 from E:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32/Arduino.h:33,
                 from E:/Sloeber5/arduinoPlugin/packages/esp32/hardware/esp32/3.0.4/cores/esp32/Esp.cpp:20:
E:/Sloeber5/arduinoPlugin/libraries/FreeRTOS/11.1.0-2/src/FreeRTOSConfig.h:32:10: fatal error: avr/io.h: No such file or directory

Is caused by the FreeRtos library being included in the project.

@jantje
Copy link
Member

jantje commented Aug 19, 2024

I have to take a look for the missing libraries.

@ArminJo
Copy link
Author

ArminJo commented Aug 19, 2024

Is caused by the FreeRtos library being included in the project.

I knew this kind of errors from 4.3.3, therefore I disabled FreeRtos for this configuration, but this did not work here.
grafik

@jantje
Copy link
Member

jantje commented Aug 19, 2024

I knew this kind of errors from 4.3.3, therefore I disabled FreeRtos for this configuration, but this did not work here.

You found a regression in V5
"-IE:/Sloeber5/arduinoPlugin/libraries/FreeRTOS/11.1.0-2/src" should not be part of the compile command as the freeRtos lib is excluded.

jantje pushed a commit that referenced this issue Aug 20, 2024


When a library is added to a project the link to the source is added to
the include directive for the build command.
When the library is excluded the include directive should not be on the
build command.
It was ... so I fixed it and then the rename regression test failed.
@jantje
Copy link
Member

jantje commented Aug 24, 2024

This should be fixed now in the action being build now.

@jantje jantje self-assigned this Aug 24, 2024
@ArminJo
Copy link
Author

ArminJo commented Aug 25, 2024

Now it works for me.
Thank you very much!

@ArminJo ArminJo closed this as completed Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants