Skip to content

x/sys/unix: mkall.sh fails due to missing files #67178

@programmingkidx

Description

@programmingkidx

Go version

go 1.22.0 darwin amd64

Output of go env in your module/workspace:

not needed

What 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions