api icon indicating copy to clipboard operation
api copied to clipboard

`make gen` fail on m1 Mac.

Open Patrick0308 opened this issue 3 years ago • 1 comments

(NOTE: This is used to report product bugs: To report a security vulnerability, please visit https://istio.io/about/security-vulnerabilities/ To ask questions about how to use Istio, please visit https://discuss.istio.io )

Bug description To run make gen fail on m1 Mac.

❯ make gen
./clean.sh
./gen.sh
Syncing ./networking/v1beta1/destination_rule.proto from networking/v1alpha3/destination_rule.proto
Syncing ./networking/v1beta1/gateway.proto from networking/v1alpha3/gateway.proto
Syncing ./networking/v1beta1/service_entry.proto from networking/v1alpha3/service_entry.proto
Syncing ./networking/v1beta1/sidecar.proto from networking/v1alpha3/sidecar.proto
Syncing ./networking/v1beta1/virtual_service.proto from networking/v1alpha3/virtual_service.proto
Syncing ./networking/v1beta1/workload_entry.proto from networking/v1alpha3/workload_entry.proto
Syncing ./networking/v1beta1/workload_group.proto from networking/v1alpha3/workload_group.proto
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Failure: plugin gogofast: signal: segmentation fault; signal: segmentation fault; signal: segmentation fault; signal: segmentation fault; signal: segmentation fault; signal: segmentation fault; signal: segmentation fault; signal: segmentation fault; signal: segmentation fault; signal: segmentation fault.
make[1]: *** [Makefile.core.mk:37: gen-proto] Error 1
make: *** [gen] Error 2

It looks like it's caused by a bug in qemu. See https://github.com/docker/for-mac/issues/5123#issuecomment-784992589

Affected product area (please put an X in all that apply)

[ ] Configuration Infrastructure [ ] Docs [ ] Installation [ ] Networking [ ] Performance and Scalability [ ] Policies and Telemetry [ ] Security [ ] Test and Release [ ] User Experience

Expected behavior

Steps to reproduce the bug

Version (include the output of istioctl version --remote and kubectl version)

How was Istio installed?

Environment where bug was observed (cloud vendor, OS, etc)

Additionally, please consider attaching a cluster state archive by attaching the dump file to this issue.

Patrick0308 avatar Feb 08 '22 08:02 Patrick0308

Does this now work on the latest code?

ericvn avatar Aug 24 '22 20:08 ericvn

this works for me on latest master on my M1 mac

GregHanson avatar Nov 28 '23 22:11 GregHanson