How to cross compile linux app binary in my macos machine?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Description
If I run `CGO_ENABLED=0 GOOS=linux GOARCH=amd64 bud build`, got an error:
```
# github.com/livebud/bud/internal/dag
../../.gvm/pkgsets/go1.18/global/pkg/mod/github.com/livebud/bud@v0.2.7/internal/dag/sqlite.go:345:27: undefined: sqlite3.Error
../../.gvm/pkgsets/go1.18/global/pkg/mod/github.com/livebud/bud@v0.2.7/internal/dag/sqlite.go:349:47: undefined: sqlite3.ErrReadonlyDbMoved
| exit status 2
```
but run `bud build` will build successfully.
---
❯ bud version
bud: 0.2.7
svelte: 3.47.0
react: 18.0.0
Contributor guide
No contributing guide indexed for this repository
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 reported `CGO_ENABLED=0 GOOS=linux GOARCH=amd64 bud build` command and the `internal/dag/sqlite.go` errors for `sqlite3.Error` and `sqlite3.ErrReadonlyDbMoved`. Compare it with the successful `bud build`; done means producing a Linux amd64 binary from macOS without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sqlite
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100