Page 1 of 1

cannot get micropython to compile

Posted: Tue May 17, 2016 9:24 am
by ideal2545
I've compiled the latest esp-open-sdk in standalone and non standalone modes. Whenever I run the micropython compilation I get a whole slew of file not found errors. This is driving me crazy, any assistance would be greatly appreciated.

My Path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/apps/esp-open-sdk/xtensa-lx106-elf/bin:/apps/esp-open-sdk/esptool

Errors:

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
GEN build/genhdr/qstr.i.last
In file included from ../py/mphal.h:32:0,
from ../py/mpprint.c:33:
./esp_mphal.h:59:19: fatal error: osapi.h: No such file or directory
#include "osapi.h"
^
compilation terminated.
In file included from ../py/mphal.h:32:0,
from ../py/../extmod/machine_i2c.c:31:
./esp_mphal.h:59:19: fatal error: osapi.h: No such file or directory
#include "osapi.h"
^
compilation terminated.
In file included from ../py/mphal.h:32:0,
from ../py/../extmod/modwebrepl.c:38:
./esp_mphal.h:59:19: fatal error: osapi.h: No such file or directory
#include "osapi.h"
^
compilation terminated.
In file included from ../py/mphal.h:32:0,
from ../py/../extmod/vfs_fat_diskio.c:36:
./esp_mphal.h:59:19: fatal error: osapi.h: No such file or directory
#include "osapi.h"
^
compilation terminated.
In file included from ../py/mphal.h:32:0,
from main.c:35:
./esp_mphal.h:59:19: fatal error: osapi.h: No such file or directory
#include "osapi.h"
^
compilation terminated.
esp_mphal.c:28:21: fatal error: ets_sys.h: No such file or directory
#include "ets_sys.h"
^
compilation terminated.
uart.c:12:21: fatal error: ets_sys.h: No such file or directory
#include "ets_sys.h"
^
compilation terminated.
In file included from esppwm.c:15:0:
etshal.h:4:21: fatal error: os_type.h: No such file or directory

Re: cannot get micropython to compile

Posted: Tue May 17, 2016 12:24 pm
by deshipu
Did you forget to do "git submodule init" and "git submodule update"?

Re: cannot get micropython to compile

Posted: Wed May 18, 2016 6:12 am
by ideal2545
got it going, looks like the toolchain had an issue last night, did an update this morning, pulled a small file down and then i tried again and it worked

Re: cannot get micropython to compile

Posted: Fri May 20, 2016 12:28 pm
by bigplik
have a same issue, could anyone explain what need to be done to make it work?