Page 2 of 3
Re: MicroPython Compilation Error
Posted: Sun Mar 13, 2016 4:16 pm
by Scorpi0
Thank you for the replies, but I'm still receiving the error. My problem is after creating the esp-open-sdk, when I compile micropython using "make", I get this:
Code: Select all
vagrant@vagrant-ubuntu-trusty-64:~/micropython/esp8266$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
CC ets_alt_task.c
In file included from ets_alt_task.c:5:0:
/home/vagrant/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/esp_sdk_ver.h:1:1: error: expected identifier or '(' before '-' token
-e #undef ESP_SDK_VERSION
^
/home/vagrant/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/esp_sdk_ver.h:1:4: error: stray '#' in program
-e #undef ESP_SDK_VERSION
^
make: *** [build/ets_alt_task.o] Error 1
vagrant@vagrant-ubuntu-trusty-64:~/micropython/esp8266$
After rebuilding the toolchain I still get the same problem. I followed the guide on adafruit: "
https://learn.adafruit.com/building-and ... d-firmware".
Re: MicroPython Compilation Error
Posted: Sun Mar 13, 2016 5:50 pm
by Llwy
Scorpi0,
I have exactly the same behaviour, even after updating and re-building the SDK with
Code: Select all
make clean
git pull
git submodule sync
git submodule update
make
For me, the only way to compile properly is to manually edit /home/vagrant/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/esp_sdk_ver.h as explained by another poster and remove the "-e".
It is however necessary to edit the file AFTER the SDK "make" command as the "make" command will overwrite the file's modifications.
I hope this helps,
Llwy
Re: MicroPython Compilation Error
Posted: Sun Mar 13, 2016 7:05 pm
by Scorpi0
Thank you for you reply. Sorry but i'm new to this, can you explain how to manually edit the file under the mac terminal?
Re: MicroPython Compilation Error
Posted: Sun Mar 13, 2016 7:57 pm
by gschmott
Llwy wrote:Scorpi0,
I have exactly the same behaviour, even after updating and re-building the SDK with
Code: Select all
make clean
git pull
git submodule sync
git submodule update
make
For me, the only way to compile properly is to manually edit /home/vagrant/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/esp_sdk_ver.h as explained by another poster and remove the "-e".
It is however necessary to edit the file AFTER the SDK "make" command as the "make" command will overwrite the file's modifications.
I hope this helps,
Llwy
Re-sync the esp-open-sdk repo. With
https://github.com/pfalcon/esp-open-sdk ... ba5ec1bd7b this issue is fixed by telling 'make' to use the bash shell whose 'echo' function understands the '-e' option. I re-sync'ed and this issue went away.
Re: MicroPython Compilation Error
Posted: Mon Mar 14, 2016 5:34 am
by Scorpi0
Thank you for your update, it works fine now. Problem solved!
Re: MicroPython Compilation Error
Posted: Mon Mar 14, 2016 8:52 am
by skylin008
I used latest esp sdk adn micropython version.when compiled ,show follw error message:
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -lmain
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -ljson
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -lssl
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -llwip_open
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -lpp
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -lnet80211
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -lwpa
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -lphy
/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ld: cannot find -lnet80211
make:****[build/firmware.elf] Error 1.[/b]
how to solve this issue.Thanks advance!
Re: MicroPython Compilation Error
Posted: Mon Mar 14, 2016 7:48 pm
by Scorpi0
I have another problem when I tried to run the firmware on my ESP8266. I get a blank screen first, then after pressing enter, it says: "task prio out of range: 2". I can't see what i'm typing.
How can I fix it?
Thanks.
Re: MicroPython Compilation Error
Posted: Mon Mar 14, 2016 8:29 pm
by slzatz
Re: MicroPython Compilation Error
Posted: Mon Mar 14, 2016 8:33 pm
by Scorpi0
Ok thanks.
Re: MicroPython Compilation Error
Posted: Tue Mar 15, 2016 6:30 pm
by Scorpi0
I still get the same error (task prio out of range: 2) even after changing:
Code: Select all
#define UART_TASK_ID 0
to
#define UART_TASK_ID 1