-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/sys/unix: mkall.sh fails due to missing files #67178
Comments
These files do exist in the sys repo, e.g https://cs.opensource.google/go/x/sys/+/refs/tags/v0.20.0:unix/mkasm.go. Can you try building from the x/sys source instead? I believe the vendored copy only includes the autogenerated code to be used, but not the routines to actually generate the code. |
The files under cmd/vendor are incomplete copies of upstream repositories. Those files are created by modifying the upstream repo and then running |
@mauri870 Why is the mkall.sh file not removed like the other files? |
Go files with |
I'm thinking a rule should be added for shell files. |
Unfortunately it's not that simple. It's possible for a .sh file to be embedded into the package using a That said, I filed #67233 to propose only copying files that the build system will use. |
Thank you. |
Go version
go 1.22.0 darwin amd64
Output of
go env
in your module/workspace: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:
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 foryour specific system. Running
mkall.sh -n
shows the commands that will be run."The issue is these files are missing from the unix folder:
The text was updated successfully, but these errors were encountered: