make failure with latest

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
manitou
Posts: 73
Joined: Wed Feb 25, 2015 12:15 am

make failure with latest

Post by manitou » Fri Jul 10, 2015 3:36 pm

I just cloned the latest micropython and get the following error with make BOARD=PYBV10 MICROPY_PY_WIZNET5K=1

Code: Select all

CC modnwwiznet5k.c
In file included from ../py/objlist.h:29:0,
                 from modnwwiznet5k.c:33:
modnwwiznet5k.c:449:23: error: 'MP_QSTR_ifconfig' undeclared here (not in a function)
     { MP_OBJ_NEW_QSTR(MP_QSTR_ifconfig), (mp_obj_t)&wiznet5k_ifconfig_obj },
                       ^
../py/obj.h:84:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
 #define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 2) | 2))
                                                        ^
make: *** [build-PYBV10/modnwwiznet5k.o] Error 1

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: make failure with latest

Post by dhylands » Fri Jul 10, 2015 4:06 pm

It looks like the QSTR for ifconfig is only defined for the CC3K.

You can edit stmhal/qstrdefsport.h and copy the ifconfig line from here:
https://github.com/micropython/micropyt ... ort.h#L458

and put it inside here:
https://github.com/micropython/micropyt ... #L446-L450

I created a PR to fix this: https://github.com/micropython/micropython/pull/1372

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: make failure with latest

Post by shaoziyang » Sat Oct 27, 2018 2:28 pm

The issue is still in the micropython 1.9.4, is there any way to solve this problem?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: make failure with latest

Post by dhylands » Mon Oct 29, 2018 5:11 pm

In the latest builds, QTRs are generated automatically. Typically if I run into any type of QSTR errors I first try to do a clean and then rebuild.

If the problem persists after that, then I typically investigate further.

Post Reply