sei-protocol / sei-chain

Apache License 2.0
2.71k stars 808 forks source link

[SEI-5798] **make install** failure in macos m1pro #1097

Closed theSunStriderr closed 1 year ago

theSunStriderr commented 1 year ago
➜ sei-chain (5ca26285) ✔ gco v3.2.1                                                                                                                                                        
HEAD is now at 5ca26285 v3.2.1 upgrade handler (#1090)                                                                                                                                     
➜ sei-chain (5ca26285) ✔ make install                                                                                                                                                      
go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=sei -X github.com/cosmos/cosmos-sdk/version.ServerName=seid -X github.com/cosmos/cosmos-sdk/version.
Version=3.2.1 -X github.com/cosmos/cosmos-sdk/version.Commit=5ca262851ef8ede717d39685c529e115348dbcf5 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger" -L/opt/homebrew/opt/
llvm/lib' ./cmd/seid                                                                                                                                                                       
# github.com/zondax/hid                                                                                                                                                                    
In file included from ../../../go/pkg/mod/github.com/zondax/hid@v0.9.0/hid_enabled.go:38:                                                                                                  
../../../go/pkg/mod/github.com/zondax/hid@v0.9.0/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]        
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:133:19: note: 'kIOMasterPortDef
ault' has been explicitly marked deprecated here                                                                                                                                           
# github.com/sei-protocol/sei-chain/cmd/seid                                                                                                                                               
flag provided but not defined: -L/opt/homebrew/opt/llvm/lib                                                                                                                                
usage: link [options] main.o                                                                                                                                                               
  -B note                                                                                                                                                                                  
        add an ELF NT_GNU_BUILD_ID note when using ELF                                                                                                                                     
  -E entry                                                                                                                                                                                 
        set entry symbol name                                                                                                                                                              
  -H type                                                                                                                                                                                  
        set header type                                                                                                                                                                    
  -I linker                                                                                                                                                                                
        use linker as ELF dynamic linker                                                                                                                                                   
  -L directory                                                                                                                                                                             
        add specified directory to library path                                                                                                                                            
  -R quantum                                                                                                                                                                               
        set address rounding quantum (default -1)                                                                                                                                          
  -T int                                                                                                                                                                                   
        set the start address of text symbols (default -1)                                                                                                                                 
  -V    print version and exit                                                                                                                                                             
  -X definition                                                                                                                                                                            
        add string value definition of the form importpath.name=value                                                                                                                      
  -a    no-op (deprecated)                                                                                                                                                                 
  ...
  -w    disable DWARF generation
make: *** [install] Error 1

Pre-install

➜ sei-chain (5ca26285) ✔ brew install go docker jq git cmake gcc rustup make
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#################################################################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json

Warning: Treating docker as a formula. For the cask, use homebrew/cask/docker
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
Warning: go 1.21.3 is already installed and up-to-date.
To reinstall 1.21.3, run:
  brew reinstall go
Warning: docker 24.0.6 is already installed, it's just not linked.
To link this version, run:
  brew link docker
Warning: jq 1.7 is already installed and up-to-date.
To reinstall 1.7, run:
  brew reinstall jq
Warning: git 2.42.0 is already installed and up-to-date.
To reinstall 2.42.0, run:
  brew reinstall git
Warning: cmake 3.27.7 is already installed and up-to-date.
To reinstall 3.27.7, run:
  brew reinstall cmake
Warning: gcc 13.2.0 is already installed and up-to-date.
To reinstall 13.2.0, run:
  brew reinstall gcc
Warning: rustup-init 1.26.0_1 is already installed and up-to-date.
To reinstall 1.26.0_1, run:
  brew reinstall rustup-init
Warning: make 4.4.1 is already installed and up-to-date.
To reinstall 4.4.1, run:
  brew reinstall make

➜ sei-chain (5ca26285) ✔ clang --version
Homebrew clang version 17.0.2
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin

SEI-5798

duncand0nuts commented 1 year ago

Hi @theSunStriderr 👋 Was there any other error information provided?

Here are a couple of things you can try:

theSunStriderr commented 1 year ago

Hi @duncand0nuts

clang version

➜ sei-chain (5ca26285) ✔ clang -v
Homebrew clang version 17.0.2
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin

rust version: stable 1.70

sudo make install show:

sei-chain (5ca26285) ✔ sudo make install
Password:
go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=sei -X github.com/cosmos/cosmos-sdk/version.ServerName=seid -X github.com/cosmos/cosmos-sdk/version.Version=3.2.1 -X github.com/cosmos/cosmos-sdk/version.Commit=5ca262851ef8ede717d39685c529e115348dbcf5 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' ./cmd/seid
# github.com/zondax/hid
In file included from ../../../go/pkg/mod/github.com/zondax/hid@v0.9.0/hid_enabled.go:38:
../../../go/pkg/mod/github.com/zondax/hid@v0.9.0/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:133:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
duncand0nuts commented 1 year ago

Did you see the same error when using sudo?

theSunStriderr commented 1 year ago

oh, sudo works. (i forget add ~/go/bin to PATH), thx @duncand0nuts