Skip to content

Build fail on macOS from emitnative.c #10651

@bwhitman

Description

@bwhitman

CircuitPython version and board name

main branch

Code/REPL

No code

Behavior

(circuitpython) outside/circuitpython - (main) > gmake -C mpy-cross

gmake: Entering directory '/Users/bwhitman/outside/circuitpython/mpy-cross'
- Verbosity options: any combination of "steps commands rules", as `make V=...` or env var BUILD_VERBOSE
In file included from ../py/emitnx64.c:16:
../py/emitnative.c:2423:5: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
 2423 |     MP_STATIC_ASSERT(MP_OBJ_STOP_ITERATION == 0);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../py/misc.h:57:51: note: expanded from macro 'MP_STATIC_ASSERT'
   57 | #define MP_STATIC_ASSERT(cond) ((void)sizeof(char[1 - 2 * !(cond)]))
      |                                                   ^~~~~~~~~~~~~~~
1 error generated.
-e See https://learn.adafruit.com/building-circuitpython; Adafruit Discord #circuitpython-dev
gmake: *** [../py/mkrules.mk:104: build/py/emitnx64.o] Error 1

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions