Lua-RTOS-ESP32
Lua-RTOS-ESP32 copied to clipboard
Xtensa syntax error on build
Building gives this output:
Using sdkconfig file
Finding a serial port with USB VID:PID SETH-OTA ...
No serial ports defined in boards.json, using the serial port defined in ESPTOOLPY_PORT
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: D: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP,b]]P]PTT@T@DDPtd$$N$NQtdRtd: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: ELFD@@r@8: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 6: Syntax error: word unexpected (expecting ")")
expr: syntax error: unexpected argument ‘5.2.0’
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
Toolchain path: /usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: D: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP,b]]P]PTT@T@DDPtd$$N$NQtdRtd: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: ELFD@@r@8: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 6: Syntax error: word unexpected (expecting ")")
expr: syntax error: unexpected argument ‘5.2.0’
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
/bin/sh: 1: xtensa-esp32-elf-gcc: Exec format error
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: D: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP,b]]P]PTT@T@DDPtd$$N$NQtdRtd: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: ELFD@@r@8: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 6: Syntax error: word unexpected (expecting ")")
expr: syntax error: unexpected argument ‘5.2.0’
CC build/bootloader/bootloader_support/src/bootloader_flash.o
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: D: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP,b]]P]PTT@T@DDPtd$$N$NQtdRtd: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: DP: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 1: ELFD@@r@8: not found
/usr/local/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: 6: Syntax error: word unexpected (expecting ")")
make[2]: *** [/root/esp-idf/make/component_wrapper.mk:290: src/bootloader_flash.o] Error 2
make[1]: *** [/root/esp-idf/make/project.mk:578: component-bootloader_support-build] Error 2
make: *** [/root/esp-idf/components/bootloader/Makefile.projbuild:41: /root/Lua-RTOS-ESP32/build/bootloader/bootloader.bin] Error 2
How do I fix it?
Using the right ESP-IDF version?
Just the latest right?
If so, yes I am using the latest version
No. Please see e.g. #350
following those directions still gives the same error
Sorry to hear that 🤷🏼♂️
You should provide a docker image so building this project isnt so complicated
Feel free to create a PR 🙂👍🏻
If I could get it to build I would lol
works now
There's concrete plans to upgrade the ESP-IDF to the latest version. I just realized you have already done that?! That's fantastic! Would you create a PR so all can profit from your work?
Yeah I'm currently trying to replicate what I did so I can pr it in so stay tuned!
😃👍🏻