Description
Describe the problem
My project randomly started failing it's CI on github, which uses linux and arduino-cli to build the project.
When building the project on windows with arduino IDE everything works fine, and previously on linux the CI would build just fine.
But... Now, when building my project with arduino-cli on linux I receive these errors:
/home/null/.arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010074
/home/null/.arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /tmp/ccnHrGG8.o: in function `.L0 ':
/mnt/c/Users/danie/source/repos/VortexTestingFramework/VortexTestingFramework/VortexEngine/VortexEngine/appmain.cpp:5: undefined reference to `VortexEngine::init()'
/home/null/.arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /tmp/ccnHrGG8.o: in function `main':
/mnt/c/Users/danie/source/repos/VortexTestingFramework/VortexTestingFramework/VortexEngine/VortexEngine/appmain.cpp:7: undefined reference to `VortexEngine::tick()'
collect2: error: ld returned 1 exit status
/home/null/.arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010074
/home/null/.arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /tmp/ccqbrwP3.o: in function `setup()':
/mnt/c/Users/danie/source/repos/VortexTestingFramework/VortexTestingFramework/VortexEngine/VortexEngine/VortexEngine.ino:7: undefined reference to `VortexEngine::init()'
/home/null/.arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: /tmp/ccqbrwP3.o: in function `loop()':
/mnt/c/Users/danie/source/repos/VortexTestingFramework/VortexTestingFramework/VortexEngine/VortexEngine/VortexEngine.ino:14: undefined reference to `VortexEngine::tick()'
collect2: error: ld returned 1 exit status
Using library FastLED at version 3.6.0 in folder: /home/null/Arduino/libraries/FastLED
Used library Version Path
FastLED 3.6.0 /home/null/Arduino/libraries/FastLED
Used platform Version Path
esp32:esp32 3.0.4 /home/null/.arduino15/packages/esp32/hardware/esp32/3.0.4
Error during build: exit status 1
make: *** [Makefile:52: build] Error 1
The linker errors are for basic function calls in setup/loop:
#include <Arduino.h>
#include "src/VortexEngine.h"
void setup()
{
if (!VortexEngine::init()) {
// uhoh
}
}
void loop()
{
VortexEngine::tick();
}
This same code builds fine in arduino IDE on windows, and it was working fine then just randomly broke:
The change that made it break was a simple Doxygen file change, not even related to code, and the CI for the build started failing after that.
I can reproduce it locally on my linux, and I'm not sure where the problem is so I'm coming here.
To reproduce
I guess you could try and build my project, I don't have a minimally reproducible example. Let me know if you want commands to build the project.
Expected behavior
It builds
Arduino CLI version
arduino-cli Version: 1.0.4 Commit: a0d912d Date: 2024-08-12T13:42:36Z
Operating system
Linux
Operating system version
Ubuntu 20.04.1 LTS
Additional context
No response
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the nightly build
- My report contains all necessary details