boochow / micropython-raspberrypi

bare metal Raspberry Pi Zero / Zero W port of MicroPython
MIT License
215 stars 24 forks source link

error when I compile #38

Open fractalstore opened 8 months ago

fractalstore commented 8 months ago

I have this error then I run "make BOARD=RPI1":

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
GEN build/genhdr/qstr.i.last
GEN build/genhdr/qstr.split
GEN build/genhdr/qstrdefs.collected.h
QSTR updated
GEN build/genhdr/qstrdefs.generated.h
mkdir -p build/build/
mkdir -p build/extmod/
mkdir -p build/lib/embed/
mkdir -p build/lib/libc/
mkdir -p build/lib/libm/
mkdir -p build/lib/mp-readline/
mkdir -p build/lib/oofatfs/
mkdir -p build/lib/timeutils/
mkdir -p build/lib/utils/
mkdir -p build/py/
CC ../micropython/py/mpstate.c
In file included from ./mpconfigport.h:2,
                 from ../micropython/py/mpconfig.h:62,
                 from ../micropython/py/mpstate.h:31,
                 from ../micropython/py/mpstate.c:27:
./arm_exceptions.h:34:1: error: FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs                                      -only' [-Werror=attributes]
   34 | extern void __attribute__((interrupt("UNDEF"))) undef_handler(void);
      | ^~~~~~
./arm_exceptions.h:35:1: error: FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs                                      -only' [-Werror=attributes]
   35 | extern void __attribute__((interrupt("SWI"))) svc_handler(void);
      | ^~~~~~
./arm_exceptions.h:36:1: error: FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs                                      -only' [-Werror=attributes]
   36 | extern void __attribute__((interrupt("ABORT"))) abort_handler(void);
      | ^~~~~~
./arm_exceptions.h:37:1: error: FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs                                      -only' [-Werror=attributes]
   37 | extern void __attribute__((interrupt("IRQ"))) irq_handler(void);
      | ^~~~~~
./arm_exceptions.h:38:1: error: FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs                                      -only' [-Werror=attributes]
   38 | extern void __attribute__((interrupt("FIQ"))) fiq_handler(void);
      | ^~~~~~
cc1: all warnings being treated as errors
make: *** [../micropython/py/mkrules.mk:47: build/py/mpstate.o] Error 1
fractalstore commented 8 months ago

SOLVED it work only on 32bits OS