-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Description
Go version
go 1.22.0 darwin amd64
Output of go env in your module/workspace:
not neededWhat did you do?
In the src/cmd/vendor/golang.org/x/sys/unix folder is the mkall.sh script. It is used to generate several files in its folder. First I changed directories to the src/cmd/vendor/golang.org/x/sys/unix folder. Then I ran GOOS=darwin GOARCH=amd64 ./mkall.sh.
What did you see happen?
I saw these errors:
:25:10: fatal error: 'sys/vsock.h' file not found
#include <sys/vsock.h>
^~~~~~~~~~~~~
1 error generated.
/go-1.22.0/src/cmd/vendor/golang.org/x/sys/unix/_const.go:28:10: fatal error: 'sys/vsock.h' file not found
#include <sys/vsock.h>
^~~~~~~~~~~~~
1 error generated.
stat mksyscall.go: no such file or directory
stat mkpost.go: no such file or directory
cgo: open /go-1.22.0/src/cmd/vendor/golang.org/x/sys/unix/types_darwin.go: no such file or directory
stat mkasm.go: no such file or directory
What did you expect to see?
I expected to see these files generated:
- zerrors_darwin_amd64.go
- zsyscall_darwin_amd64.go
- zsysnum_darwin_amd64.go
- ztypes_darwin_amd64.go
I did read the README.md file in the same folder and it states:
"To build the files for your current OS and architecture, make sure GOOS and
GOARCH are set correctly and run mkall.sh. This will generate the files for
your specific system. Running mkall.sh -n shows the commands that will be run."
The issue is these files are missing from the unix folder:
- mksyscall.go
- mkpost.go
- mkasm.go