Navigation Menu

Skip to content
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

Need help to run mkall.sh (delve\vendor\golang.org\x\sys\unix\mkall.sh) #32194

Closed
floodcaptain opened this issue May 23, 2019 · 2 comments
Closed
Labels
FeatureRequest FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@floodcaptain
Copy link

floodcaptain commented May 23, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.4 linux/arm64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output

$ go env

GOARCH="arm64"
GOBIN="/home/bin"
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_arm64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build141065257=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Hi, i am interested in regenerating files for my native environment (arm64 with linux), located at :

src/vendor/golang.org/x/sys/unix/

I looked at the file mkall.sh that generates files for Architecture/OS combination .

src/vendor/golang.org/x/sys/unix/mkall.sh

line 51 in file mkall.sh, requires a dockerfile present at ${GOOS}/Dockerfile but i can't locate it anywhere in the source .

line 51: $cmd docker build --tag generate:$GOOS $GOOS

please suggest how can i get this dockerfile .

error in running the script is as follows:
unable to prepare context: path "linux" not found
Unable to find image 'generate:linux' locally

What did you expect to see?

I expected to find a dockerfile present in $GOOS or atleast anywhere in the repository .

What did you see instead?

unable to prepare context: path "linux" not found
Unable to find image 'generate:linux' locally

@bradfitz
Copy link
Contributor

See the big README at https://github.com/golang/sys/tree/master/unix#building-sysunix

It's likely it won't work in some project's vendor directory.

The Dockerfile is in https://github.com/golang/sys/tree/master/unix/linux but that's an implementation detail if you follow the instructions above and run it from the upstream location.

But we already regenerate files for arm64 regularly, so you should back up and describe your actual problem (http://xyproblem.info/).

/cc @tklauser

@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label May 28, 2019
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FeatureRequest FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants