whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.18k stars 222 forks source link

Xtensa syntax error on build #414

Closed TotallyNotSethP closed 1 year ago

TotallyNotSethP commented 2 years ago

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?

the0ne commented 2 years ago

Using the right ESP-IDF version?

TotallyNotSethP commented 2 years ago

Just the latest right? image If so, yes I am using the latest version

the0ne commented 2 years ago

No. Please see e.g. #350

TotallyNotSethP commented 2 years ago

following those directions still gives the same error

the0ne commented 2 years ago

Sorry to hear that 🤷🏼‍♂️

TotallyNotSethP commented 2 years ago

You should provide a docker image so building this project isnt so complicated

the0ne commented 2 years ago

Feel free to create a PR 🙂👍🏻

TotallyNotSethP commented 2 years ago

If I could get it to build I would lol

TotallyNotSethP commented 1 year ago

works now

the0ne commented 1 year ago

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?

TotallyNotSethP commented 1 year ago

Yeah I'm currently trying to replicate what I did so I can pr it in so stay tuned!

the0ne commented 1 year ago

😃👍🏻