2

Got myself an esp32, compiled and flashed the first code with my laptop, everything worked fine. Tried to flash a different code on the same laptop, and it gave a pretty scary error, it doesn't want to compile at all, even with an empty file, seems like some major issue to me, please help!

Here's the error messages I got, the file I tried to verify is literally empty:

/home/mark/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/mark/.cache/arduino/cores/3dcf1799dbdf581982fe7eebee43e59b/core.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `_Z5setupv'
/home/mark/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/mark/.cache/arduino/cores/3dcf1799dbdf581982fe7eebee43e59b/core.a(main.cpp.o):(.literal._Z8loopTaskPv+0x10): undefined reference to `_Z4loopv'
/home/mark/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/mark/.cache/arduino/cores/3dcf1799dbdf581982fe7eebee43e59b/core.a(main.cpp.o): in function `_Z8loopTaskPv':
/home/mark/.arduino15/packages/esp32/hardware/esp32/3.1.1/cores/esp32/main.cpp:55:(.text._Z8loopTaskPv+0x1b): undefined reference to `_Z5setupv'
/home/mark/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/mark/.arduino15/packages/esp32/hardware/esp32/3.1.1/cores/esp32/main.cpp:64:(.text._Z8loopTaskPv+0x34): undefined reference to `_Z4loopv'
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

1 Answer 1

0

In your question you say:

the file I tried to verify is literally empty

A completely empty file is not a valid Arduino program.

Arduino programs must have a setup() function and a loop() function. These are exactly the errors you'd expect if you tried to build an Arduino program from an empty file. The linker is complaining that it can't find those functions.

The minimal valid Arduino program is this:

void setup() {
}

void loop() {
}

Build that and those errors should go away.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, that's probably the case, sadly, my linux mint disappeared from laptop again, so I won't really be able to say if that ws the issue, but thank you anyway!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.