Skip to content

build failing on Mac #40087

@Pawan-Bishnoi

Description

@Pawan-Bishnoi

Bug Description

➜  istio git:(31fce3d756) ✗ make build
GOOS=darwin GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh /work/out/darwin_amd64/ ./istioctl/cmd/istioctl ./pilot/cmd/pilot-discovery ./pkg/test/echo/cmd/client ./pkg/test/echo/cmd/server ./samples/extauthz/cmd/extauthz ./operator/cmd/operator ./cni/cmd/istio-cni ./cni/cmd/istio-cni-taint ./cni/cmd/install-cni ./tools/istio-iptables ./tools/bug-report
go build github.com/containernetworking/plugins/pkg/ns: build constraints exclude all Go files in /go/pkg/mod/github.com/containernetworking/plugins@v1.1.1/pkg/ns

real	0m31.389s
user	0m38.665s
sys	0m13.751s
make[1]: *** [Makefile.core.mk:286: build] Error 1
make: *** [build] Error 2

It works when I go back to this commit:

➜  istio git:(31fce3d756) ✗ git checkout 5c25f8fe2d
Previous HEAD position was 31fce3d756 Make istio-cni compatible with Talos Linux (go netns implementation + added ca cert path) (#39699)
HEAD is now at 5c25f8fe2d dns: added DNSForwardParallel to support sending parallel queries to all nameservers (#39857)
➜  istio git:(5c25f8fe2d) ✗ make build
GOOS=darwin GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh /work/out/darwin_amd64/ ./istioctl/cmd/istioctl ./pilot/cmd/pilot-discovery ./pkg/test/echo/cmd/client ./pkg/test/echo/cmd/server ./samples/extauthz/cmd/extauthz ./operator/cmd/operator ./cni/cmd/istio-cni ./cni/cmd/istio-cni-taint ./cni/cmd/install-cni ./tools/istio-iptables ./tools/bug-report

real	0m31.818s
user	0m39.003s
sys	0m13.257s
GOOS=darwin GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh /work/out/darwin_amd64/ -tags=agent ./pilot/cmd/pilot-agent

real	0m3.303s
user	0m1.663s
sys	0m1.628s

Version

➜  istio git:(5c25f8fe2d) ✗ sw_vers
ProductName:	macOS
ProductVersion:	12.4
BuildVersion:	21F79

Additional Information

Seems to have started failing after this commit: 31fce3d

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions