Page 3 of 3

Re: MicroPython Compilation Error

Posted: Wed Mar 16, 2016 12:43 pm
by felted67
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.

Re: MicroPython Compilation Error

Posted: Wed Mar 16, 2016 12:58 pm
by felted67
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

Re: MicroPython Compilation Error

Posted: Fri Mar 18, 2016 7:10 am
by wendlers
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 :-)

Re: MicroPython Compilation Error

Posted: Wed Mar 23, 2016 2:54 pm
by pfalcon
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

Error compiling the esp8266 build

Posted: Wed Mar 23, 2016 9:16 pm
by Roberthh
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

Re: MicroPython Compilation Error

Posted: Wed Mar 23, 2016 11:52 pm
by deshipu
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.