Missing Build Dependence: _freeze_module.c
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 35.9k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
Bug report
Bug description:
Build CPython by running "make".
Then a dummy pointer field to the end of struct PyConfig in Include/cpython/initconfig.h:
void *dummy;
Then, run "make" again. This time, you'll get a weird error from _freeze_module run as part of the build. Exactly what error you get will depend on how much you change the size of struct PyConfig and the system you're on. On my Linux system, sometimes it gave me an error about attempting to open() NULL (because the stack variable "inpath" from main() in _freeze_module.c was clobbered). Sometimes it gave me a path error.
Remove Programs/_freeze_module.o. Run "make" again. Marvel as this time make succeeds.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
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.
Línea de trabajo
Reproduce el problema con make después de añadir el campo dummy a Include/cpython/initconfig.h; después, inspecciona la entrada de compilación de Programs/_freeze_module.o y la dependencia de _freeze_module.c. Se considera terminado cuando un segundo make vuelve a compilar el objetivo afectado y finaliza correctamente sin eliminar manualmente Programs/_freeze_module.o.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100