Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: xpc error #48

Closed
wants to merge 7 commits into from
Closed

fix: xpc error #48

wants to merge 7 commits into from

Conversation

janisz
Copy link
Contributor

@janisz janisz commented Nov 14, 2023

No description provided.

@stehessel
Copy link
Collaborator

FYI there are currently problems with nix and Intel Darwin. Sadly many Darwin contributors have the new arm chips, so not much love for Intel Darwin :(. So it may be that the intel macOS SDK in nix is too old for some deps. See also NixOS/nixpkgs#101229.

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
@stehessel
Copy link
Collaborator

What is the xpc error that this is fixing?

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
This reverts commit 4a0e7d1.
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
@janisz
Copy link
Contributor Author

janisz commented Nov 15, 2023

What is the xpc error that this is fixing?

# github.com/google/certificate-transparency-go/x509
In file included from ../../../go/pkg/mod/github.com/google/certificate-transparency-go@v1.1.6/x509/root_cgo_darwin.go:[18](https://github.com/stackrox/stackrox/actions/runs/6867691700/job/18676599451#step:6:19):
In file included from /nix/store/4ap5801d9ijdl3v89hsxxz18y5724qly-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/Security.h:87:
/nix/store/4ap5801d9ijdl3v89hsxxz18y5724qly-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecCode.h:35:10: fatal error: 'xpc/xpc.h' file not found
#include <xpc/xpc.h>
         ^~~~~~~~~~~
1 error generated.

https://github.com/stackrox/stackrox/actions/runs/6867691700/job/18676599451#step:6:22

@janisz
Copy link
Contributor Author

janisz commented Nov 15, 2023

After adding SDK

# github.com/stackrox/rox/central/activecomponent/updater.test
/nix/store/anpa648cir6s5zppxr0hlj20ryxxzbxv-go-1.20.11/share/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
Undefined symbols for architecture x86_64:
  "_SecTrustEvaluateWithError", referenced from:
      _crypto/x509/internal/macos.x509_SecTrustEvaluateWithError_trampoline.abi0 in go.o
  "_utimensat", referenced from:
      _syscall.libc_utimensat_trampoline.abi0 in go.o
ld: symbol(s) not found for architecture x86_64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

https://github.com/stackrox/stackrox/actions/runs/6867691700/job/18676599451#step:6:22

@janisz janisz closed this Nov 15, 2023
@janisz janisz deleted the xpc branch November 15, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants