ci: nix-test fails to link on the ubuntu-26.04 runner image
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, linux
- Área
- build-system, ci-cd
Línea de trabajo
The failure is in the nix-test job, which is defined by runs-on: ubuntu-latest in .github/workflows/nix.yml. Start there, then find where the cgo flags add -L/usr/lib/llvm-20/lib so the host libedit.so.2 gets linked. Done means nix-test links and passes on the ubuntu-26.04 image. Pinning ubuntu-24.04 is the quick fix; keeping the build off host libraries is the durable one, and the maintainers have not chosen between them.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The nix-test job fails to link tinygo on the new ubuntu-26.04 runner image. GitHub is moving ubuntu-latest from ubuntu-24.04 to ubuntu-26.04, and .github/workflows/nix.yml uses runs-on: ubuntu-latest. The PR does not cause the failure, and dev will fail in the same way when its runs get the new image.
Failing build (PR #6074, image ubuntu-26.04 version 20261015.610): https://github.com/tinygo-org/tinygo/actions/runs/41259602030/job/124713295365
Last passing build on dev (2170767e, image ubuntu-24.04 version 20261021.618): https://github.com/tinygo-org/tinygo/actions/runs/41159893174
/nix/store/v9zpzmigqkcjrw1jpf0zjc49y47cm55s-binutils-2.44/bin/ld: /usr/lib/x86_64-linux-gnu/libedit.so.2: undefined reference to `cfgetispeed@GLIBC_2.42'
/nix/store/v9zpzmigqkcjrw1jpf0zjc49y47cm55s-binutils-2.44/bin/ld: /usr/lib/x86_64-linux-gnu/libedit.so.2: undefined reference to `cfsetispeed@GLIBC_2.42'
/nix/store/v9zpzmigqkcjrw1jpf0zjc49y47cm55s-binutils-2.44/bin/ld: /usr/lib/x86_64-linux-gnu/libedit.so.2: undefined reference to `cfsetospeed@GLIBC_2.42'
/nix/store/v9zpzmigqkcjrw1jpf0zjc49y47cm55s-binutils-2.44/bin/ld: /usr/lib/x86_64-linux-gnu/libedit.so.2: undefined reference to `cfgetospeed@GLIBC_2.42'
collect2: error: ld returned 1 exit status
The link uses the -L/usr/lib/llvm-20/lib search paths from the cgo flags, so it finds the libedit.so.2 of the host. On ubuntu-26.04 that library needs glibc 2.42, but the nix toolchain links against an older glibc.
Possible fixes:
- Pin
runs-on: ubuntu-24.04innix.yml. This is a quick fix, but the problem comes back when 24.04 is removed. - Stop host library paths from getting into the nix build, so that it links only against nix libraries.
cc @dgryski
- 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
-
Fix the targets that tinygo build -target rejectsPosiblemente ocupada @narguis la tomó hace 2 días. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
tinygo-org/tinygo#6617 · 5 comentarios ·
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
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