Build error with STM32 and RP2, but build pass with ESP32. (master branch)
make BOARD=ADAFRUIT_F405_EXPRESS USER_C_MODULES=../../../micropython-ulab allmake BOARD=PICO USER_C_MODULES=../../../micropython-ulab/code/micropython.cmake
CC ../../../micropython-ulab/code/numpy/stats.c
CC ../../../micropython-ulab/code/numpy/transform.c
../../../micropython-ulab/code/numpy/transform.c: In function 'transform_delete':
../../../micropython-ulab/code/numpy/transform.c:209:9: error: unknown type name 'ssize_t'; did you mean '_ssize_t'?
209 | ssize_t value = (ssize_t)mp_obj_get_int(indices);
| ^~~
| _ssize_t
../../../micropython-ulab/code/numpy/transform.c:209:26: error: 'ssize_t' undeclared (first use in this function); did you mean '_ssize_t'?
209 | ssize_t value = (ssize_t)mp_obj_get_int(indices);
| ^~~
| _ssize_t
../../../micropython-ulab/code/numpy/transform.c:209:26: note: each undeclared identifier is reported only once for each function it appears in
../../../micropython-ulab/code/numpy/transform.c:209:34: error: expected ',' or ';' before 'mp_obj_get_int'
209 | ssize_t value = (ssize_t)mp_obj_get_int(indices);
| ^~~~~~
../../../micropython-ulab/code/numpy/transform.c:213:45: error: expected ')' before 'axis_len'
213 | if((value < 0) || (value > (ssize_t)axis_len)) {
| ~ ^~~~
| )
../../../micropython-ulab/code/numpy/transform.c:222:20: error: expected ';' before 'value'
222 | ssize_t value = (ssize_t)mp_obj_get_int(item);
| ^~
| ;
../../../micropython-ulab/code/numpy/transform.c:223:16: error: 'value' undeclared (first use in this function)
223 | if(value < 0) {
| ^~~~~
../../../micropython-ulab/code/numpy/transform.c:226:49: error: expected ')' before 'axis_len'
226 | if((value < 0) || (value > (ssize_t)axis_len)) {
| ~ ^~~~
| )
make: *** [../../py/mkrules.mk:77: build-ADAFRUIT_F405_EXPRESS/code/numpy/transform.o] Error 1
Build error with
STM32
andRP2
, but build pass withESP32
. (master branch)make BOARD=ADAFRUIT_F405_EXPRESS USER_C_MODULES=../../../micropython-ulab all
make BOARD=PICO USER_C_MODULES=../../../micropython-ulab/code/micropython.cmake