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

Installation failing on Mac OS : [lotus-miner] Error 2 #11

Closed
johanbove opened this issue Mar 22, 2022 · 10 comments
Closed

Installation failing on Mac OS : [lotus-miner] Error 2 #11

johanbove opened this issue Mar 22, 2022 · 10 comments

Comments

@johanbove
Copy link

johanbove commented Mar 22, 2022

Trying fresh install of Lotus through Homebrew, but ends with "Error 2".

System: MacBook Pro (15-inch, 2018)
OS: 11.6.5 (20G527)
CPU: 2,9 GHz 6-Core Intel Core i9

 ~ 🖖  $ make --version
GNU Make 3.81

 ~ 🖖  $ brew --version
Homebrew 3.4.3
Homebrew/homebrew-core (git revision 68bfee0df66; last commit 2022-03-22)
Homebrew/homebrew-cask (git revision a6e4519078; last commit 2022-03-22)

 ~ 🖖  $ go version
go version go1.17.8 darwin/amd64
 ~ 🖖  $ brew tap filecoin-project/lotus
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 2 formulae.

 ~ 🖖  $ brew install lotus
==> Downloading https://github.com/filecoin-project/lotus/archive/refs/tags/v1.14.1.tar.gz
Already downloaded: /Users/jbove/Library/Caches/Homebrew/downloads/444dee257c7ed2c618c92e56c4841e8533919e511ceaa299bf2c6527bc173769--lotus-1.14.1.tar.gz
==> Installing lotus from filecoin-project/lotus
==> git clone --recurse-submodules https://github.com/filecoin-project/filecoin-ffi.git extern/filecoin-ffi
==> git clone --recurse-submodules https://github.com/filecoin-project/serialization-vectors.git extern/serialization-vectors
==> git clone --recurse-submodules https://github.com/filecoin-project/test-vectors.git extern/test-vectors
==> touch build/.update-modules
==> make all
Last 15 lines from /Users/jbove/Library/Logs/Homebrew/lotus/05.make:
[install-filcrypto/main] successfully installed prebuilt libfilcrypto
+ exit
rm -f lotus
rm -f lotus-miner
rm -f lotus-worker
go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git." -o lotus ./cmd/lotus
go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git." -o lotus-worker ./cmd/lotus-seal-worker
go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git." -o lotus-miner ./cmd/lotus-miner
# github.com/lucas-clemente/quic-go/internal/qtls
/Users/jbove/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/lucas-clemente/quic-go@v0.21.2/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration
# github.com/lucas-clemente/quic-go/internal/qtls
/Users/jbove/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/lucas-clemente/quic-go@v0.21.2/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration
make: *** [lotus] Error 2
make: *** Waiting for unfinished jobs....
make: *** [lotus-miner] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/filecoin-project/homebrew-lotus/issues

 ~ 🖖  $ brew update
Already up-to-date.
@johanbove johanbove changed the title Installation failing on Mac OS Installation failing on Mac OS : Error 2 Mar 22, 2022
@johanbove johanbove changed the title Installation failing on Mac OS : Error 2 Installation failing on Mac OS : [lotus-miner] Error 2 Mar 22, 2022
@johanbove
Copy link
Author

johanbove commented Mar 22, 2022

New try without success after removing the "go" install from Homebrew:

 ~ 🖖  $ brew remove go
Uninstalling /usr/local/Cellar/go/1.18... (11,947 files, 592.6MB)
 ~ 🖖  $ brew cleanup
...
Removing: /Users/jbove/Library/Caches/Homebrew/go_mod_cache... (24,508 files, 633.5MB)
Removing: /Users/jbove/Library/Caches/Homebrew/go_cache... (5,030 files, 427.2MB)
==> This operation has freed approximately 1GB of disk space.
 ~ 🖖  $ brew install lotus
==> Downloading https://ghcr.io/v2/homebrew/core/go/manifests/1.18
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/go/blobs/sha256:5dfda57937f94683cbe1b31e10b7ed4d0661722ece896dca9cb0c17bbbeaa52a
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5dfda57937f94683cbe1b31e10b7ed4d0661722ece896dca9cb0c17bbbeaa52a?se=2022
######################################################################## 100.0%
==> Downloading https://github.com/filecoin-project/lotus/archive/refs/tags/v1.14.1.tar.gz
Already downloaded: /Users/jbove/Library/Caches/Homebrew/downloads/444dee257c7ed2c618c92e56c4841e8533919e511ceaa299bf2c6527bc173769--lotus-1.14.1.tar.gz
==> Installing lotus from filecoin-project/lotus
==> Installing dependencies for filecoin-project/lotus/lotus: go
==> Installing filecoin-project/lotus/lotus dependency: go
==> Pouring go--1.18.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/go/1.18: 11,947 files, 592.6MB
==> Installing filecoin-project/lotus/lotus
==> git clone --recurse-submodules https://github.com/filecoin-project/filecoin-ffi.git extern/filecoin-ffi
==> git clone --recurse-submodules https://github.com/filecoin-project/serialization-vectors.git extern/serialization-vectors
==> git clone --recurse-submodules https://github.com/filecoin-project/test-vectors.git extern/test-vectors
==> touch build/.update-modules
==> make all
Last 15 lines from /Users/jbove/Library/Logs/Homebrew/lotus/05.make:
go: downloading github.com/jackpal/go-nat-pmp v1.0.2
go: downloading github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc
go: downloading github.com/marten-seemann/qtls-go1-17 v0.1.0-rc.1
go: downloading github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc
go: downloading github.com/marten-seemann/qtls-go1-17 v0.1.0-rc.1
go: downloading google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4
go: downloading google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4
go: downloading google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4
# github.com/lucas-clemente/quic-go/internal/qtls
/Users/jbove/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/lucas-clemente/quic-go@v0.21.2/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration
# github.com/lucas-clemente/quic-go/internal/qtls
/Users/jbove/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/lucas-clemente/quic-go@v0.21.2/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration
make: *** [lotus] Error 2
make: *** Waiting for unfinished jobs....
make: *** [lotus-miner] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/filecoin-project/homebrew-lotus/issues

These open issues may also help:
Installation failing on Mac OS : [lotus-miner] Error 2 https://github.com/filecoin-project/homebrew-lotus/issues/11

@galen-mcandrew
Copy link

Having the same issue. I think mine has something to do with this path line:

PATH = /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/pkg-config/bin:/opt/homebrew/opt/go/bin:/opt/homebrew/opt/jq/bin:/opt/homebrew/opt/bazaar/bin:/opt/homebrew/opt/rustup-init/bin:/opt/homebrew/opt/hwloc/bin:/usr/bin:/bin:/usr/sbin:/sbin:/private/tmp/lotus-20220323-93116-36ygkz/lotus-1.14.1/extern/cargo_home/bin

@dkkapur
Copy link

dkkapur commented Mar 24, 2022

@coryschwartz any thoughts on this one? getting blocked on some on-chain analysis work for Fil+.

@Clete2
Copy link

Clete2 commented Jun 7, 2022

Same issue on MacBook Pro 15" 2017.

@TianciD
Copy link

TianciD commented Jun 10, 2022

Mac mini (2018)
3 GHz six-core Intel Core i5
8 GB 2667 MHz DDR4

same question

@smagdali
Copy link

adding a +1 to this... confirmed on a 2021 14" Pro.

@smagdali
Copy link

Looks like this is the same problem over at IPFS ipfs/kubo#8819, which has now been fixed.

Actually, I think I'm seeing a different error- quic doesn't seem to be the culprit. Gonna open a new issue

@smagdali
Copy link

@TianciD amd @Clete2 do you see this error or #13 ?

@403-html
Copy link

403-html commented Jul 6, 2022

I got same error, but kinda different error logs (less than in #13... but with code 2 too - I realized it now and I can't remove the comment and move it there 😞)

Last 15 lines from /Users/{user}/Library/Logs/Homebrew/lotus/10.make:
extern/sector-storage/ffiwrapper/verifier_cgo.go:164:30: cannot use info (variable of type "github.com/filecoin-project/specs-actors/actors/runtime/proof".WindowPoStVerifyInfo) as type "github.com/filecoin-project/go-state-types/proof".WindowPoStVerifyInfo in argument to ffi.VerifyWindowPoSt
# github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper
extern/sector-storage/ffiwrapper/prover_cgo.go:18:33: cannot use aggregateInfo (variable of type "github.com/filecoin-project/specs-actors/v5/actors/runtime/proof".AggregateSealVerifyProofAndInfos) as type "github.com/filecoin-project/go-state-types/proof".AggregateSealVerifyProofAndInfos in argument to ffi.AggregateSealProofs
extern/sector-storage/ffiwrapper/verifier_cgo.go:32:9: cannot use ffi.GenerateWinningPoSt(minerID, privsectors, randomness) (value of type []"github.com/filecoin-project/go-state-types/proof".PoStProof) as type []"github.com/filecoin-project/specs-actors/actors/runtime/proof".PoStProof in return statement
extern/sector-storage/ffiwrapper/verifier_cgo.go:57:9: cannot use proof (variable of type []"github.com/filecoin-project/go-state-types/proof".PoStProof) as type []"github.com/filecoin-project/specs-actors/actors/runtime/proof".PoStProof in return statement
extern/sector-storage/ffiwrapper/verifier_cgo.go:126:22: cannot use ffiInfo (variable of type "github.com/filecoin-project/specs-actors/actors/runtime/proof".SectorInfo) as type "github.com/filecoin-project/go-state-types/proof".SectorInfo in struct literal
extern/sector-storage/ffiwrapper/verifier_cgo.go:140:24: cannot use info (variable of type "github.com/filecoin-project/specs-actors/actors/runtime/proof".SealVerifyInfo) as type "github.com/filecoin-project/go-state-types/proof".SealVerifyInfo in argument to ffi.VerifySeal
extern/sector-storage/ffiwrapper/verifier_cgo.go:144:34: cannot use aggregate (variable of type "github.com/filecoin-project/specs-actors/v5/actors/runtime/proof".AggregateSealVerifyProofAndInfos) as type "github.com/filecoin-project/go-state-types/proof".AggregateSealVerifyProofAndInfos in argument to ffi.VerifyAggregateSeals
extern/sector-storage/ffiwrapper/verifier_cgo.go:148:44: cannot use update (variable of type "github.com/filecoin-project/specs-actors/v7/actors/runtime/proof".ReplicaUpdateInfo) as type "github.com/filecoin-project/go-state-types/proof".ReplicaUpdateInfo in argument to ffi.SectorUpdate.VerifyUpdateProof
extern/sector-storage/ffiwrapper/verifier_cgo.go:156:31: cannot use info (variable of type "github.com/filecoin-project/specs-actors/actors/runtime/proof".WinningPoStVerifyInfo) as type "github.com/filecoin-project/go-state-types/proof".WinningPoStVerifyInfo in argument to ffi.VerifyWinningPoSt
extern/sector-storage/ffiwrapper/verifier_cgo.go:164:30: cannot use info (variable of type "github.com/filecoin-project/specs-actors/actors/runtime/proof".WindowPoStVerifyInfo) as type "github.com/filecoin-project/go-state-types/proof".WindowPoStVerifyInfo in argument to ffi.VerifyWindowPoSt
make: *** [lotus] Error 2
make: *** Waiting for unfinished jobs....
make: *** [lotus-miner] Error 2
make: *** [lotus-worker] Error 2

Spec:

MacBook Pro 16inch, 2021
Monterey 12.4
$ go version
go version go1.18.3 darwin/arm64

@ianconsolata
Copy link
Contributor

The new homebrew approach no longer builds from source, it downloads a prebuilt binary so this should no longer be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants