ci: nix-test fails to link on the ubuntu-26.04 runner image

Abierto
#6,125 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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

bug

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.04 in nix.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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de tinygo-org/tinygo

Todos los issues de tinygo-org/tinygo

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.