Skip to content

Install with Homebrew on Linux fails: cannot find crt1.o #18

@JensPfeifle

Description

@JensPfeifle

Hello,

trying to install with Homebrew on an up-to-date Fedora Linux 36 (Workstation), I get the following error. I'm probably just missing some package, but I wasn't able to figure out which...

Installation via the "official" instructions for Linux worked fine for me, just wanted to leave this here as a heads up about a potential stumbling block :)

 ❯ brew install earthly/earthly/earthly                                                               3s
==> Downloading https://github.com/earthly/earthly/archive/v0.6.20.tar.gz
Already downloaded: /home/jens/.cache/Homebrew/downloads/f9b77af012bc0b0962658e492e38455e7c9ffccddd7c98528a5a0ec6d8f706b0--earthly-0.6.20.tar.gz
==> Installing earthly from earthly/earthly
==> go build -tags dfrunmount dfrunsecurity dfsecrets dfssh dfrunnetwork dfheredoc forceposix -ldflags -X
Last 15 lines from /home/jens/.cache/Homebrew/Logs/earthly/01.go:

go
build
-tags
dfrunmount dfrunsecurity dfsecrets dfssh dfrunnetwork dfheredoc forceposix
-ldflags
-X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v0.6.20 -X main.Version=v0.6.20 -X main.GitSha=ad869c06c884b10f88948b5852ab22b4d7262e20 -X main.GitSha=7e4f1df4c124db1644d51d312b19313217cbe478
-trimpath
-o=/home/linuxbrew/.linuxbrew/Cellar/earthly/0.6.20/bin/earthly
./cmd/earthly

# runtime/cgo
/home/linuxbrew/.linuxbrew/bin/ld: cannot find crt1.o: No such file or directory
/home/linuxbrew/.linuxbrew/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions