adafruit / adafruit/CircuitPython_Community_Bundle

build.sh fails on Mac OS with recent clang (was fixed in MicroPython)

Abierto
#265 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
209
Forks
98
Merge medio
7 h 6 min
PR fusionados (30 d)
5

Descripción

I'm trying to add my library to the Community Bundle but when I go to run `build.sh` I get errors like this while building `mpy-cross`:
```
GEN build/genhdr/qstrdefs.generated.h
In file included from ../py/emitnx64.c:16:
../py/emitnative.c:2267:5: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
2267 | 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
make: *** [build/py/emitnx64.o] Error 1
```

This was fixed in MicroPython a couple of weeks ago; see https://github.com/micropython/micropython/issues/18116
and it was fixed by https://github.com/micropython/micropython/commit/33cf1ab3ccabecd156176ceebcd56332e8a5d325

And it was fixed in CircuitPython 10.0.0.

However, it looks like `build.sh` wants to build CircuitPython 9.2.4 instead of that.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Empieza inspeccionando build.sh para encontrar dónde se selecciona CircuitPython 9.2.4 y, después, compara esa elección con la corrección referenciada de MicroPython y con CircuitPython 10.0.0. Actualiza la selección de compilación para que clang de macOS reciente pueda compilar mpy-cross y verifica que el script finaliza sin el error indicado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
build-system
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.