Closed michael-ring closed 2 years ago
Can you give the compiler output in verbose mode (-va). It seems as if either the subarch or the controller gets changed, perhaps in fpc.cfg? I cannot see any other reason why an esp8266 related unit would be be searched for.
No wait, I can reproduce it. Must be a problem in the compiler.
I can workarround the issue by providing correct -WP. Actually those are the settings I need specific to LX6:
-Cfhard -Wpesp32 -WP4.3 -XPxtensa-esp32-elf- -Ff/home/ring/fpcupdeluxe-qt/cross/bin/xtensa-freertos/esp-idf-4.3.2 -Fl/home/ring/fpcupdeluxe-qt/cross/lib/xtensa-freertos/lx6/ -Fl/home/ring/fpcupdeluxe-qt/cross/bin/xtensa-freertos/esp-idf-4.3.2/components/esp_rom/esp32/ld/ -Fl/home/ring/fpcupdeluxe-qt/cross/bin/xtensa-freertos/esp-idf-4.3.2/components/esp32/ld/
I am compiling default target (esp32) of blink example but get a linker error that refers esp8266rtos. Any ideas? I have also manuall fixed issues in fpc.cfg (see https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/487 )
Content of blink.compiled does not look too bad:
Also, here's my blink.lpi: