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

Compilation error on macOS 10.15: fatal error: 'Virtualization/Virtualization.h' file not found #1176

Closed
AkihiroSuda opened this issue Nov 18, 2022 · 0 comments · Fixed by #1175
Labels
bug Something isn't working

Comments

@AkihiroSuda
Copy link
Member

$ make
rm -rf _output vendor
mkdir -p _output/bin
cp -a ./cmd/lima _output/bin/lima
# The hostagent must be compiled with CGO_ENABLED=1 so that net.LookupIP() in the DNS server
# calls the native resolver library and not the simplistic version in the Go library.
CGO_ENABLED=1 go build -ldflags="-s -w -X github.com/lima-vm/lima/pkg/version.Version=199216f" -o _output/bin/limactl ./cmd/limactl
go: downloading github.com/AlecAivazis/survey/v2 v2.3.6
go: downloading github.com/alessio/shellescape v1.[4](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:5).1
go: downloading github.com/containerd/containerd v1.6.10
go: downloading github.com/coreos/go-semver v0.3.0
go: downloading github.com/docker/go-units v0.[5](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:6).0
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/mattn/go-isatty v0.0.1[6](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:7)
go: downloading github.com/mattn/go-shellwords v1.0.12
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading github.com/spf13/cobra v1.6.1
go: downloading github.com/kballard/go-shellquote v0.0.0-2018042803000[7](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:8)-95032a[8](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:9)2bc51
go: downloading golang.org/x/term v0.1.0
go: downloading github.com/norouter/norouter v0.6.4
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/lima-vm/sshocker v0.3.0
go: downloading github.com/miekg/dns v1.1.50
go: downloading github.com/nxadm/tail v1.4.8
go: downloading github.com/goccy/go-yaml v1.[9](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:10).6
go: downloading github.com/opencontainers/go-digest v1.0.0
go: downloading github.com/xorcare/pointer v1.2.2
go: downloading github.com/containers/gvisor-tap-vsock v0.4.1-0.20220920072955-5b1aff8ba743
go: downloading golang.org/x/sync v0.1.0
go: downloading github.com/digitalocean/go-qemu v0.0.0-202[10](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:11)326154740-ac9e0b687001
go: downloading github.com/cyphar/filepath-securejoin v0.2.3
go: downloading golang.org/x/sys v0.2.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
go: downloading golang.org/x/text v0.4.0
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading github.com/pkg/sftp v1.13.4
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: downloading golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
go: downloading golang.org/x/net v0.1.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading gvisor.dev/gvisor v0.0.0-20220908032458-edc830a43ba6
go: downloading inet.af/tcpproxy v0.0.0-20220326234310-be3ee21c9fa0
go: downloading github.com/digitalocean/go-libvirt v0.0.0-20201209184759-e2a69bcd5bd1
go: downloading github.com/diskfs/go-diskfs v1.2.0
go: downloading github.com/cheggaaa/pb/v3 v3.1.0
go: downloading github.com/containerd/continuity v0.3.0
go: downloading github.com/mattn/go-colorable v0.1.12
go: downloading github.com/Code-Hex/vz/v3 v3.0.0
go: downloading github.com/kr/fs v0.1.0
go: downloading golang.org/x/crypto v0.1.0
go: downloading github.com/fsnotify/fsnotify v1.5.1
go: downloading github.com/fatih/color v1.13.0
go: downloading github.com/insomniacslk/dhcp v0.0.0-20220504074936-1ca156eafb9f
go: downloading github.com/apparentlymart/go-cidr v1.1.0
go: downloading github.com/google/gopacket v1.1.19
go: downloading golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac
go: downloading github.com/google/btree v1.0.1
go: downloading github.com/VividCortex/ewma v1.1.1
go: downloading github.com/mattn/go-runewidth v0.0.12
go: downloading golang.org/x/mod v0.6.0
go: downloading google.golang.org/grpc v1.47.0
go: downloading github.com/u-root/uio v0.0.0-20210528[11](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:12)4334-82958018845c
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading gopkg.in/djherbis/times.v1 v1.2.0
go: downloading google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.28.0
# github.com/Code-Hex/vz/v3
In file included from ../../../go/pkg/mod/github.com/!code-!hex/vz/[email protected]/audio.go:6:
In file included from ./virtualization_11.h:9:
./virtualization_helper.h:25:9: warning: macOS [12](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:13).3 API has been disabled [-W#pragma-messages]
#pragma message("macOS 12.3 API has been disabled")
        ^
./virtualization_helper.h:32:9: warning: macOS [13](https://github.com/lima-vm/lima/actions/runs/3494156702/jobs/5849687766#step:4:14) API has been disabled [-W#pragma-messages]
#pragma message("macOS 13 API has been disabled")
        ^
In file included from ../../../go/pkg/mod/github.com/!code-!hex/vz/[email protected]/audio.go:6:
./virtualization_11.h:10:9: fatal error: 'Virtualization/Virtualization.h' file not found
#import <Virtualization/Virtualization.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
make: *** [_output/bin/limactl] Error 2
Error: Process completed with exit code 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant