opencontainers / opencontainers/runc
cannot cross-compile arm binary on x86 platform
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13.5k
- Forks
- 2.3k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 30
Description
$ GOARCH=arm GOOS=linux make BUILDTAGS="" EXTRA_LDFLAGS="-extldflags '-static'"
go build -buildmode=pie -ldflags "-X main.gitCommit="1f11dc5dba5213400482cd974db20ee1408d2c7f" -X main.version=1.0.0-rc5+dev -extldflags '-static'" -tags "" -o runc .
go build github.com/opencontainers/runc/libcontainer/nsenter: no buildable Go source files in /home/zync/Code/go/src/github.com/opencontainers/runc/libcontainer/nsenter
Makefile:32: recipe for target 'runc' failed
make: *** [runc] Error 1
Could any body tell me how to make it? Any suggestions would be appreciated!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Makefile runc target and the reported libcontainer/nsenter package error. Reproduce the GOARCH=arm GOOS=linux build command on an x86 host and inspect why that package has no buildable Go source files for the target. Done means the command completes and produces the runc binary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100