Skip to content

building firmware on debian10 #5

Closed
@leomlr

Description

@leomlr

Hi, I'm trying to build the firmware of the micro: bit v2 on Ubuntu 20.04 but it doesn't work for me. I need your
help to solve this problem.

cmake version : 3.16.3
gcc-arm-none-eabi: 15:9-2019-q4-0ubuntu1

I am getting this error during 'make' command in \src folder:

make -C codal_port
make[1] : on entre dans le répertoire « /home/leomlr/Documents/micropython-microbit-v2/src/codal_port »
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
python3 ../../lib/micropython/py/makeversionhdr.py build/genhdr/microbitversion.h
CC ../../lib/micropython/py/builtinimport.c
In file included from **../../lib/micropython/py/qstr.h:30**,
                 from **../../lib/micropython/py/lexer.h:32**,
                 from **../../lib/micropython/py/compile.h:29**,
                 from **../../lib/micropython/py/builtinimport.c:32**:
**../../lib/micropython/py/builtinimport.c**: In function '**mp_builtin___import__**':
./mpconfigport.h:35:50: error: 'PATH_MAX' undeclared (first use in this function)
   35 | #define MICROPY_ALLOC_PATH_MAX                  (PATH_MAX)
      |                                                  ^~~~~~~~
**../../lib/micropython/py/misc.h:169:63**: note: in definition of macro 'VSTR_FIXED'
  169 | vstr, alloc) vstr_t vstr; char vstr##_buf[(alloc)]; vstr_init_fixed_buf(&vstr, (alloc), vstr##_buf);
      |                                            ^~~~~

../../lib/micropython/py/builtinimport.c:360:22: note: in expansion of macro 'MICROPY_ALLOC_PATH_MAX'
  360 |     VSTR_FIXED(path, MICROPY_ALLOC_PATH_MAX)
      |                      ^~~~~~~~~~~~~~~~~~~~~~
./mpconfigport.h:35:50: note: each undeclared identifier is reported only once for each function it appears in
   35 | #define MICROPY_ALLOC_PATH_MAX                  (PATH_MAX)
      |                                                  ^~~~~~~~
../../lib/micropython/py/misc.h:169:63: note: in definition of macro 'VSTR_FIXED'
  169 | vstr, alloc) vstr_t vstr; char vstr##_buf[(alloc)]; vstr_init_fixed_buf(&vstr, (alloc), vstr##_buf);
      |                                            ^~~~~

../../lib/micropython/py/builtinimport.c:360:22: note: in expansion of macro 'MICROPY_ALLOC_PATH_MAX'
  360 |     VSTR_FIXED(path, MICROPY_ALLOC_PATH_MAX)
      |                      ^~~~~~~~~~~~~~~~~~~~~~
../../lib/micropython/py/builtinimport.c:360:16: error: unused variable 'path_buf' [-Werror=unused-variable]
  360 |     VSTR_FIXED(path, MICROPY_ALLOC_PATH_MAX)
      |                ^~~~
../../lib/micropython/py/misc.h:169:51: note: in definition of macro 'VSTR_FIXED'
  169 |  VSTR_FIXED(vstr, alloc) vstr_t vstr; char vstr##_buf[(alloc)]; vstr_init_fixed_buf(&vstr, (alloc), vstr##_buf);
      |                                            ^~~~

cc1: all warnings being treated as errors
make[1]: * [../../lib/micropython/py/mkrules.mk:63 : build/py/builtinimport.o] Erreur 1
make[1] : on quitte le répertoire « /home/leomlr/Documents/micropython-microbit-v2/src/codal_port »

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions