Fix the targets that tinygo build -target rejects
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 74/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- build-system, embedded-iot
Línea de trabajo
Elige un objetivo sin comprobar y localiza su archivo JSON; compáralo con esp32c6.json y otros objetivos de chip para ver cómo se establece inheritable-only. Luego revisa make/smoketest.mk y confirma que compile al menos una placa que herede de ese objetivo; añade una si hace falta. La tarea estará terminada cuando el objetivo seleccionado ya no falle en compilaciones independientes y una placa que herede de él esté cubierta por la prueba de humo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
tinygo build -target=<name> fails for these targets on dev. CI does not catch the failures, because no smoke test builds them. Each one is small and independent, so please pick one, comment that you are working on it, and open a PR.
Targets to mark inheritable-only
These targets exist only for other targets to inherit from. They cannot build on their own. Add "inheritable-only": true to each target JSON file, as esp32c6.json and the other chip targets already do.
Do not update compileopts/target_test.go
compileopts/target_test.go lists several inheritable only targets as fixtures, is not a canonical list of inheritable targets. It does not need to be updated.
-
particle-3rd-gen(inherited by particle-argon, particle-boron, particle-xenon):machine_nrf.go:188: undefined: UART_TX_PIN -
stm32g0b1(inherited by amken-trio, nucleo-g0b1re):machine_stm32_i2c_revb.go:71: undefined: I2C0_SCL_PIN -
stm32u585(inherited by arduino-uno-q):machine_stm32_i2c_revb.go:71: undefined: I2C0_SCL_PIN -
nrf52840-s140v6-uf2(inherited by 12 boards):No available targets are compatible with triple "" -
nrf52840-s140v7-uf2(inherited by nano-33-ble-s140v7-uf2, xiao-ble, xiao-ble-plus):No available targets are compatible with triple ""
Boards
-
adafruit-esp32-feather-v2: missing pin definitions,machine_esp32_i2c.go:38: undefined: SCL_PINThe esp32 I2C driver uses
SCL_PINandSDA_PINas its default pins.board_adafruit-esp32-feather-v2.godefines these pins asI2C_SCL_PINandI2C_SDA_PIN. Rename them toSCL_PINandSDA_PIN, as the other ESP boards name them, and keep theSCLandSDAsilk label constants. With only this change, the board buildsexamples/serialandexamples/blinky1.
After each fix
A target marked inheritable-only cannot be built, so it cannot go in make/smoketest.mk. Instead, check that make/smoketest.mk builds at least one board that inherits from it, and add one if not. For adafruit-esp32-feather-v2, add the board itself.
- Lenguaje dominante
- Go
- Estrellas
- 17.8k
- Forks
- 1.1k
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 380
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tinygo-org/tinygo
-
avr: SPI Mode2 runs as mode 1Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
tinygo-org/tinygo#6727 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
tinygo-org/tinygo#6711 ·
Los mantenedores suelen responder en 1 día
-
Builds are not reproducible: cgo snippet paths in debug infoPosiblemente ocupada @tridev-tej la tomó hace 1 día. Abiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
tinygo-org/tinygo#6619 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
tinygo-org/tinygo#6312 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
tinygo-org/tinygo#6161 ·
Los mantenedores suelen responder en 1 día
Todos los issues de tinygo-org/tinygo
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sresarehumantoo/cc-artex#456 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ollama/ollama#20021 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
factory:subtask
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
release
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
github/gh-aw-mcpg#17603 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
bboerst/stratum-work#351 ·
Los mantenedores suelen responder en 1 día