`devbox add gcc` fails on MacOS 15.7.1

Abierto
#2,727 1 comentario 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
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

bug p3 processed triage unrelated
What happened?

I cannot install gcc using devbox on my MacOS 15.7.1 (Apple M4 Pro)

Steps to reproduce
  1. devbox init
  2. devbox 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

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 jetify-com/devbox

Todos los issues de jetify-com/devbox

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.