Compilation fails with portmodules.h: No such file or directory:
Code: Select all
make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
GEN build/genhdr/qstr.i.last
mymodule.c:5:25: fatal error: portmodules.h: No such file or directory
compilation terminated.
make: *** [build/genhdr/qstr.i.last] Error 1
make: *** Deleting file `build/genhdr/qstr.i.last'
Code: Select all
CC ../../py/objmodule.c
In file included from ../../py/mpconfig.h:45:0,
from ../../py/obj.h:29,
from ../../py/objmodule.h:29,
from ../../py/objmodule.c:30:
./mpconfigport.h:182:50: error: 'mp_module_mymodule' undeclared here (not in a function)
{ MP_OBJ_NEW_QSTR(MP_QSTR_mymodule), (mp_obj_t)&mp_module_mymodule }, \
^
../../py/objmodule.c:225:5: note: in expansion of macro 'MICROPY_PORT_BUILTIN_MODULES'
MICROPY_PORT_BUILTIN_MODULES
^
make: *** [build/py/objmodule.o] Error 1