Cannot unzip tar files when using Python 3.14
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
Línea de trabajo
Comienza con el stack trace de Python adjunto y el registro completo de mx build. Después, reproduce la extracción del toolchain de musl desde el directorio compiler/ usando Python 3.14, tras limpiar ~/.mx/cache/. Rastrea la ruta de extracción de tar utilizada por mx y verifica que el archivo de musl se extraiga correctamente y que el mx build documentado se complete sin el AbsoluteLinkError.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
While I was trying to compile the graal compiler using the instructions provided in its README I kept getting the same error:
tarfile.AbsoluteLinkError: 'musl-toolchain/x86_64-linux-musl/lib/ld-musl-x86_64.so.1' is a link to an absolute path
After a bit of investigating/searching for answers I pondered upon the tarfile documentation for Python 3.14 where I saw a change/new default for Python 3.14:
Changed in version 3.14: Set the default extraction filter to data, which disallows some dangerous features such as links to absolute paths or paths outside of the destination. Previously, the filter strategy was equivalent to fully_trusted.
Using this new information I tried once again with a lower Python version (Python 3.11) and it seems to have worked - the musl tar file extracted without any problems.
Steps to reproduce
(Delete cache of extracted musl tar file if it exists, on Linux in ~/.mx/cache/)
Clone graal compiler repository (by cloning the graal repo and going intocompiler/ )
Follow the steps
During the step to build (using mx build) observe tarfile extraction failure
Expected behaviour
While compiling graal compiler it extraction of tar files succeeds without any errors.
Observed
While trying to extract musl gcc toolchain it fails with tarfile.AbsoluteLinkError: 'musl-toolchain/x86_64-linux-musl/lib/ld-musl-x86_64.so.1'
Debug info
Platform: Linux (EndeavourOS) x86_64
Kernel version: 7.0.10-zen1-1-zen
Python version affected: Python 3.14
Included two files, stack trace from Python error and mxbuild logs (using --build-logs=full option).
Python stack-trace:
mxbuild logs:
- Lenguaje dominante
- Python
- Estrellas
- 205
- Forks
- 131
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 graalvm/mx
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
-
Error while doing maven-installQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Use --depth 1 on "git clone"sAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Todos los issues de graalvm/mx
Issues similares
-
[Suggestion]: Build a Zero-Dependency Python Supply-Chain, SBOM, & MCP Security Verifier CLIAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
follow-up
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Web download page shows a file as Completed when its download from S3 fails with an error responseAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
awslabs/visual-asset-management-system#2097 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
compiler-explorer/compiler-explorer#9738 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
openfoodfacts/openfoodfacts-python#573 ·
Los mantenedores suelen responder en 2 días