cannot get micropython to compile

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ideal2545
Posts: 12
Joined: Tue May 17, 2016 9:08 am

cannot get micropython to compile

Post by ideal2545 » Tue May 17, 2016 9:24 am

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

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

Re: cannot get micropython to compile

Post by deshipu » Tue May 17, 2016 12:24 pm

Did you forget to do "git submodule init" and "git submodule update"?

ideal2545
Posts: 12
Joined: Tue May 17, 2016 9:08 am

Re: cannot get micropython to compile

Post by ideal2545 » Wed May 18, 2016 6:12 am

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

bigplik
Posts: 2
Joined: Fri May 20, 2016 12:26 pm

Re: cannot get micropython to compile

Post by bigplik » Fri May 20, 2016 12:28 pm

have a same issue, could anyone explain what need to be done to make it work?

Post Reply