devbox icon indicating copy to clipboard operation
devbox copied to clipboard

[devbox] add apple-sdk-15 to fix mac compile

Open savil opened this issue 2 months ago • 0 comments

Summary

Getting this error:

% devbox run build
Info: Running script "build" on /Users/savil/code/jetify/devbox
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/hashicorp/go-immutable-radix v1.3.1
# github.com/golangci/golangci-lint/cmd/golangci-lint
/Users/savil/go/pkg/mod/golang.org/[email protected]/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
/nix/store/yr2068d9m3nsc3g5gbjgj1n3fbr9rb89-clang-wrapper-19.1.7/bin/clang -arch arm64 -Wl,-headerpad,1144 -Wl,-flat_namespace -Wl,-bind_at_load -o $WORK/b001/exe/a.out -Qunused-arguments /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/go.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000000.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000001.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000002.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000003.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000004.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000005.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000006.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000007.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000008.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000009.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000010.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000011.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000012.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000013.o /var/folders/9d/5l7cbnw53999fk9bynzcvhl40000gn/T/go-link-3646555948/000014.o -lresolv -O2 -g -O2 -g -framework CoreFoundation -framework CoreFoundation -framework Security -O2 -g
Undefined symbols for architecture arm64:
  "_SecTrustCopyCertificateChain", referenced from:
      _crypto/x509/internal/macos.x509_SecTrustCopyCertificateChain_trampoline.abi0 in go.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

related issues:

  • https://github.com/NixOS/nixpkgs/issues/433688

How was it tested?

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 License.

By creating this pull request, I represent that I have the right to license the contributions to the project maintainers under the Apache 2 License as stated in the Community Contribution License.

savil avatar Oct 08 '25 22:10 savil