`devbox add gcc` fails on MacOS 15.7.1
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go, macos
- Área
- build-system
Línea de trabajo
Reproduce with devbox init and devbox add gcc on Apple Silicon macOS, then inspect the Nix build invocation in internal/nix/build.go and the package handling mentioned in the logs. Determine whether the failure is in Devbox or the Nix package build; done means gcc installs successfully on the reported system.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened?
I cannot install gcc using devbox on my MacOS 15.7.1 (Apple M4 Pro)
Steps to reproduce
devbox initdevbox add gcc
Command
add
devbox.json
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.2/.schema/devbox.schema.json",
"packages": [],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}
Devbox version
0.16.0
Nix version
2.29.1
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
$ DEVBOX_DEBUG=1 devbox add gcc
time=2025-10-14T17:01:40.645+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-10-14T17:01:40.645+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-10-14T17:01:40.645+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/Users/juergen.czerny/Development/Projects/SIT/code/test/devbox.json dur=235.666µs
time=2025-10-14T17:01:40.645+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-10-14T17:01:40.645+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-10-14T17:01:40.646+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/Users/juergen.czerny/Development/Projects/SIT/code/test/devbox.json dur=43.5µs
time=2025-10-14T17:01:40.660+02:00 level=DEBUG source=go.jetify.com/devbox/nix/nix.go:143 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug"
time=2025-10-14T17:01:40.707+02:00 level=DEBUG source=go.jetify.com/devbox/nix/nix.go:143 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug" cmd.path=/nix/var/nix/profiles/default/bin/nix cmd.pid=44782 cmd.code=0 cmd.dur=46.919334ms
time=2025-10-14T17:01:40.707+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-10-14T17:01:40.707+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-10-14T17:01:40.708+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/Users/juergen.czerny/Development/Projects/SIT/code/test/devbox.json dur=109.334µs
time=2025-10-14T17:01:40.708+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=gcc mode=auto
time=2025-10-14T17:01:40.708+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=gcc mode=auto
time=2025-10-14T17:01:40.863+02:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/store.go:145 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' store info --store daemon --json"
time=2025-10-14T17:01:40.928+02:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/store.go:145 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' store info --store daemon --json" cmd.path=/nix/var/nix/profiles/default/bin/nix cmd.pid=44792 cmd.code=0 cmd.
time=2025-10-14T17:01:40.929+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devbox/providers/nixcache/setup.go:86 msg="nixcache: running setup: first time setup"
Info: Adding package "gcc@latest" to devbox.json
time=2025-10-14T17:01:41.186+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=gcc mode=auto
time=2025-10-14T17:01:41.186+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=gcc mode=auto
time=2025-10-14T17:01:41.186+02:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/store.go:61 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' path-info --offline --json /nix/store/8pyz8rrfp0szg21wlzv55yfxkipqfz8f-gcc-wrapper-15.2.0 /nix/store/h3335p57
time=2025-10-14T17:01:41.269+02:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/store.go:61 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' path-info --offline --json /nix/store/8pyz8rrfp0szg21wlzv55yfxkipqfz8f-gcc-wrapper-15.2.0 /nix/store/h3335p57iw
Info: Installing the following packages to the nix store: gcc@latest
time=2025-10-14T17:01:41.269+02:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/build.go:50 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' build --impure --no-link 'github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#gcc15' 'github:NixOS/
error: Cannot build '/nix/store/k54d9diq56wszv3jqsn3360fgrpvnrc0-gcc-15.2.0.drv'.
Reason: builder failed with exit code 2.
Output paths:
/nix/store/1ff3zrcya4c0sxrjs5bzv5hg2k8sb235-gcc-15.2.0-info
/nix/store/crky2m5mpvziys0bm99piqkhhdlb0fv4-gcc-15.2.0
/nix/store/ll97r6zvisyxjc4cv05jbz9j0j3jzvx9-gcc-15.2.0-man
/nix/store/ylcx1n7p57gjb9fhkadnqvphbz8wzdad-gcc-15.2.0-lib
Last 25 log lines:
> done
> Undefined symbols for architecture arm64:
> "___deregister_frame_info", referenced from:
> -reexported_symbols_list command line option
> "___deregister_frame_info_bases", referenced from:
> -reexported_symbols_list command line option
> "___register_frame_info", referenced from:
> -reexported_symbols_list command line option
> "___register_frame_info_bases", referenced from:
> -reexported_symbols_list command line option
> "___register_frame_info_table", referenced from:
> -reexported_symbols_list command line option
> "___register_frame_info_table_bases", referenced from:
> -reexported_symbols_list command line option
> "___register_frame_table", referenced from:
> -reexported_symbols_list command line option
> ld: symbol(s) not found for architecture arm64
> collect2: error: ld returned 1 exit status
> make[3]: *** [../../../gcc-15.2.0/libgcc/config/t-slibgcc-darwin:143: libgcc_s.1.dylib] Fehler 1
> make[3]: Verzeichnis „/private/tmp/nix-build-gcc-15.2.0.drv-0/build/arm64-apple-darwin/libgcc“ wird verlassen
> make[2]: *** [Makefile:17913: all-stage1-target-libgcc] Fehler 2
> make[2]: Verzeichnis „/private/tmp/nix-build-gcc-15.2.0.drv-0/build“ wird verlassen
> make[1]: *** [Makefile:23151: stage1-bubble] Fehler 2
> make[1]: Verzeichnis „/private/tmp/nix-build-gcc-15.2.0.drv-0/build“ wird verlassen
> make: *** [Makefile:23456: bootstrap] Fehler 2
For full logs, run:
nix log /nix/store/k54d9diq56wszv3jqsn3360fgrpvnrc0-gcc-15.2.0.drv
error: Cannot build '/nix/store/xy2plxmjqzz1nc0a9dajg8zkm7rqll8x-gcc-wrapper-15.2.0.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/8pyz8rrfp0szg21wlzv55yfxkipqfz8f-gcc-wrapper-15.2.0
/nix/store/h3335p57iwhkgckjj7dv2c2acdpy4sb5-gcc-wrapper-15.2.0-man
/nix/store/ldzysmzaywmg1b70a9xanifxjvq0pzj0-gcc-wrapper-15.2.0-info
error: Cannot build '/nix/store/xy2plxmjqzz1nc0a9dajg8zkm7rqll8x-gcc-wrapper-15.2.0.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/8pyz8rrfp0szg21wlzv55yfxkipqfz8f-gcc-wrapper-15.2.0
/nix/store/h3335p57iwhkgckjj7dv2c2acdpy4sb5-gcc-wrapper-15.2.0-man
/nix/store/ldzysmzaywmg1b70a9xanifxjvq0pzj0-gcc-wrapper-15.2.0-info
error: build of '/nix/store/xy2plxmjqzz1nc0a9dajg8zkm7rqll8x-gcc-wrapper-15.2.0.drv^man,out' failed
time=2025-10-14T17:05:16.789+02:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/build.go:50 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' build --impure --no-link 'github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#gcc15' 'github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#gcc15'" cmd.path=/nix/var/nix/profiles/default/bin/nix cmd.pid=44819 cmd.code=1 cmd.dur=3m35.518916042s
Error: There was an error installing nix packages
source: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' build --impure --no-link 'github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#gcc15' 'github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#gcc15': exit code 1
time=2025-10-14T17:05:16.789+02:00 level=ERROR source=go.jetify.com/devbox/internal/boxcli/midcobra/debug.go:68 msg="command error" stderr="" execid=761fb9c382aa4bedb05144d8d6dbc88b stack=
time=2025-10-14T17:05:16.789+02:00 level=ERROR source=go.jetify.com/devbox/internal/boxcli/midcobra/debug.go:70 msg="command error" execid=761fb9c382aa4bedb05144d8d6dbc88b stack=
time=2025-10-14T17:05:16.790+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-10-14T17:05:16.790+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-10-14T17:05:16.790+02:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/Users/juergen.czerny/Development/Projects/SIT/code/test/devbox.json dur=501.292µs
- Lenguaje dominante
- Go
- Estrellas
- 12.4k
- Forks
- 358
- Merge medio
- 17 h 12 min
- PR fusionados (30 d)
- 31
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 jetify-com/devbox
-
feature triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
jetify-com/devbox#3038 ·
Los mantenedores suelen responder en 1 día
-
pulumi is outdatedAbiertobug p4 package processed triage unrelated
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
jetify-com/devbox#2898 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
p4 processed unrelated
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
jetify-com/devbox#2750 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
StorydenAbiertop4 package processed triage unrelated
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
jetify-com/devbox#2685 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Plugin Request]: apacheKafkaAbiertolooks easy p4 package processed triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
jetify-com/devbox#2656 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de jetify-com/devbox
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dragonflydb/dragonfly-operator#619 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
cloudfoundry/bosh-bootloader#701 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
baremetal: private network check rejects offer-specific options (Private Network 10Gbps / 25Gbps)Posiblemente ocupada @lbarrosby la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
scaleway/terraform-provider-scaleway#4587 ·
Los mantenedores suelen responder en 1 día
-
blocked-needs-validation bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
projectcapsule/capsule#2280 ·
Los mantenedores suelen responder en 1 día