Windows Compile Error

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
TomL12953
Posts: 1
Joined: Sun Jun 02, 2019 4:17 am

Windows Compile Error

Post by TomL12953 » Sun Jun 02, 2019 4:50 am

I'm trying to compile MicroPython 1.11 in Windows by typing make at a command prompt and I get the errors below. I tried compiling in both Cygwin 64 and in native Windows and I get the same error in both. What am I doing wrong?

Errors:

../../py/obj.h:85:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
{ return ((((mp_int_t)(o)) & 1) != 0); }
^
../../py/obj.h: In function 'mp_obj_is_qstr':
../../py/obj.h:90:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
{ return ((((mp_int_t)(o)) & 3) == 2); }
^
../../py/obj.h: In function 'mp_obj_is_obj':
../../py/obj.h:106:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
{ return ((((mp_int_t)(o)) & 3) == 0); }
^
cc1: all warnings being treated as errors
make: *** [../../py/mkrules.mk:47: build/py/mpstate.o] Error 1

Post Reply