Windows Compile Error
Posted: 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
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