MicroPython Compilation Error

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
User avatar
felted67
Posts: 4
Joined: Mon Mar 14, 2016 6:46 pm
Location: Velbert/Germany
Contact:

Re: MicroPython Compilation Error

Post by felted67 » Wed Mar 16, 2016 12:43 pm

Hi everyone,
this is my first post here, so greetings to all... 8=)

... well, same here, too.

Did a build regarding adafruits directions and changed '#define UART_TASK_ID 1' accordingly.

User avatar
felted67
Posts: 4
Joined: Mon Mar 14, 2016 6:46 pm
Location: Velbert/Germany
Contact:

Re: MicroPython Compilation Error

Post by felted67 » Wed Mar 16, 2016 12:58 pm

Hi everyone,

some kind of embarrassing...

Didn´t changed the new compiled file 'firmware-combined.bin' with the old one...
Now it´s working like a charm....

Greetz......Detlef

wendlers
Posts: 47
Joined: Wed Mar 16, 2016 10:07 pm

Re: MicroPython Compilation Error

Post by wendlers » Fri Mar 18, 2016 7:10 am

slzatz wrote:As per #1895, Stefan Wendler's solution worked for me:

in "esp8266/esp_mphal.h" change:

#define UART_TASK_ID 0

to

#define UART_TASK_ID 1
Damien fixed the Issue in the main repo (see https://github.com/micropython/micropython/issues/1895). So there is no more need for this work-around :-)

pfalcon
Posts: 1136
Joined: Fri Feb 28, 2014 2:05 pm

Re: MicroPython Compilation Error

Post by pfalcon » Wed Mar 23, 2016 2:54 pm

Sorry for these issues, guys. But it shows why we need to do re-review, refactoring and gradual merging of the code - it allows to expose and address issues serially, while with a big dirty code drop it would be hell trying to figure out what's going wrong for some folks. The master should be in good shape now, and I've posted "official" tips and tricks on how to build the port "right":

http://forum.micropython.org/viewtopic.php?f=16&t=1689
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

User avatar
Roberthh
Posts: 1240
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Error compiling the esp8266 build

Post by Roberthh » Wed Mar 23, 2016 9:16 pm

During compiling of the esp8266 build, the copiler flagged the error:
In file included from ets_alt_task.c:5:0:
/home/robert/Downloads/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/robert/Downloads/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
^
../py/mkrules.mk:47: recipe for target 'build/ets_alt_task.o' failed
It looks as if the file esp_sdk_ver.h was corrupt and had a '-e' at the start of the first line. Removing that fixed the problem, but I wonder, if something else is missing now.
Regards

User avatar
deshipu
Posts: 1342
Joined: Thu May 28, 2015 5:54 pm

Re: MicroPython Compilation Error

Post by deshipu » Wed Mar 23, 2016 11:52 pm

Hi Roberth,

this error has been reported before here, it happens on macs which use non-standard version of bash, which doesn't understand the "-e" argument to the "echo" command, so it's getting echoed together with the string.

Post Reply