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

M1 Mac unable to make the Makefile ~ Deprecation of repos & modules for Mac M1 #12131

Closed
4 tasks
GertStar opened this issue Jun 3, 2022 · 3 comments
Closed
4 tasks

Comments

@GertStar
Copy link

GertStar commented Jun 3, 2022

Summary of Bug

  1. Deprecated Modules and Repos Causing App Breaks with Make File on MacBook Pro M1

~ Tried With Various Ignite and Starport Cli Versions.
~ I tried to Delete go.sum and do "go mod tidy" that did not resolve the issue.
~ I Can't Upgrade my chain or do any testing due to this issue
~ Reinstalled Mac OSX and Re-downloaded Ignite and Starport-CLI & all tools needed for development ~ Chain starts but unable to do anything else for further development.
~ Tried from a clean slate for Scaffolding and Developing, No change.

Screen Shot 2022-06-02 at 6 52 10 PM

Screen Shot 2022-06-02 at 6 52 16 PM

Screen Shot 2022-06-02 at 7 05 10 PM

  1. Same as not enough arguments in call to eyes.NewClient #1 for the building Protogen files & for building (implementing the API (Openapiv2, Swagger) with the protogen. ~ Continued in Fixed failing compile #3 (below)

Screen Shot 2022-06-02 at 11 38 49 PM

  1. Deprecated Proto Files and repos causing; Error Code 12: Not Implemented for generating Swagger & Openapiv2 docs
    ~~
    { "code": 12, "message": "Not Implemented", "details": [ ] }

  2. Errors with clang and gnumake (See back test in tests/tendermint/main.go fails #2; Fixed failing compile #3)

`gertstar@Patricks-MBP ~ % cd Desktop
gertstar@Patricks-MBP Desktop % cd core
gertstar@Patricks-MBP core % protocgen
zsh: command not found: protocgen
gertstar@Patricks-MBP core % protocgen.sh
zsh: command not found: protocgen.sh
gertstar@Patricks-MBP core % ls
Makefile config docker protocgen.sh x
README.md config.yml docs scripts
app const go.mod testutil
cmd contracts go.sum third_party
common crypto proto untitled folder
gertstar@Patricks-MBP core % sh protocgen.sh
Generating gogo proto code
find: ./cosmos: No such file or directory
gertstar@Patricks-MBP core % sh proto-tools-installer.sh
Installing proto_c ...error: cannot delete old //usr/local/bin/protoc
Permission denied
/var/folders/p8/npq7kw0x4ns9pkm5zyzfk9z40000gn/T/tmp.PMkR2dcc/protoc-3.13.0-osx-x86_64.zip
/var/folders/p8/npq7kw0x4ns9pkm5zyzfk9z40000gn/T/tmp.PMkR2dcc
gertstar@Patricks-MBP core % sudo sh proto-tools-installer.sh
Password:
Installing proto_c ...-e already installed. Skipping.
Installing buf ...-e already installed. Skipping.
Installing protoc-gen-gocosmos .../var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.AFg0bde5
gertstar@Patricks-MBP core % sh protocgen-any.sh
/usr/local/bin/buf: line 1: Not: command not found
gertstar@Patricks-MBP core % sh protogen.sh
sh: protogen.sh: No such file or directory
gertstar@Patricks-MBP core % ls
Makefile go.mod
README.md go.sum
app proto
cmd proto-tools-installer.sh
common protocgen-any.sh
config protocgen.sh
config.yml scripts
const testutil
contracts third_party
crypto untitled folder
docker x
docs
gertstar@Patricks-MBP core % sh protocgen.sh
gertstar@Patricks-MBP core % make
fatal: No names found, cannot describe anything.
fatal: your current branch 'core' does not have any commits yet
go build -mod=readonly -tags "netgo,ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=gert -X github.com/cosmos/cosmos-sdk/version.AppName=gertd -X github.com/cosmos/cosmos-sdk/version.Version= -X github.com/cosmos/cosmos-sdk/version.Commit= -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' -trimpath -o build/gertd ./cmd/gertd

github.com/keybase/go-keychain

cgo-gcc-prolog:81:11: warning: 'SecKeychainCreate' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:301:10: note: 'SecKeychainCreate' has been explicitly marked deprecated here
cgo-gcc-prolog:139:11: warning: 'SecKeychainLock' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:357:10: note: 'SecKeychainLock' has been explicitly marked deprecated here
cgo-gcc-prolog:159:11: warning: 'SecKeychainOpen' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:287:10: note: 'SecKeychainOpen' has been explicitly marked deprecated here
cgo-gcc-prolog:183:11: warning: 'SecKeychainUnlock' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:347:10: note: 'SecKeychainUnlock' has been explicitly marked deprecated here
cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here

github.com/zondax/hid

In file included from ../../go/pkg/mod/github.com/zondax/[email protected]/hid_enabled.go:38:
../../go/pkg/mod/github.com/zondax/[email protected]/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here

github.com/CosmWasm/wasmvm/api

ld: warning: ignoring file ../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/libwasmvm.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
"_analyze_code", referenced from:
__cgo_752f6d91b618_C2func_analyze_code in _x004.o
__cgo_752f6d91b618_Cfunc_analyze_code in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_analyze_code, __cgo_752f6d91b618_C2func_analyze_code )
"_destroy_unmanaged_vector", referenced from:
__cgo_752f6d91b618_Cfunc_destroy_unmanaged_vector in _x006.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_destroy_unmanaged_vector)
"_execute", referenced from:
__cgo_752f6d91b618_C2func_execute in _x004.o
__cgo_752f6d91b618_Cfunc_execute in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_execute, __cgo_752f6d91b618_Cfunc_execute )
"_get_metrics", referenced from:
__cgo_752f6d91b618_C2func_get_metrics in _x004.o
__cgo_752f6d91b618_Cfunc_get_metrics in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_get_metrics, __cgo_752f6d91b618_C2func_get_metrics )
"_ibc_channel_close", referenced from:
__cgo_752f6d91b618_C2func_ibc_channel_close in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_channel_close in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_channel_close, __cgo_752f6d91b618_C2func_ibc_channel_close )
"_ibc_channel_connect", referenced from:
__cgo_752f6d91b618_C2func_ibc_channel_connect in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_channel_connect in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_channel_connect, __cgo_752f6d91b618_C2func_ibc_channel_connect )
"_ibc_channel_open", referenced from:
__cgo_752f6d91b618_C2func_ibc_channel_open in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_channel_open in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_ibc_channel_open, __cgo_752f6d91b618_Cfunc_ibc_channel_open )
"_ibc_packet_ack", referenced from:
__cgo_752f6d91b618_C2func_ibc_packet_ack in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_packet_ack in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_packet_ack, __cgo_752f6d91b618_C2func_ibc_packet_ack )
"_ibc_packet_receive", referenced from:
__cgo_752f6d91b618_C2func_ibc_packet_receive in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_packet_receive in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_packet_receive, __cgo_752f6d91b618_C2func_ibc_packet_receive )
"_ibc_packet_timeout", referenced from:
__cgo_752f6d91b618_C2func_ibc_packet_timeout in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_packet_timeout in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_packet_timeout, __cgo_752f6d91b618_C2func_ibc_packet_timeout )
"_init_cache", referenced from:
__cgo_752f6d91b618_C2func_init_cache in _x004.o
__cgo_752f6d91b618_Cfunc_init_cache in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_init_cache, __cgo_752f6d91b618_Cfunc_init_cache )
"_instantiate", referenced from:
__cgo_752f6d91b618_C2func_instantiate in _x004.o
__cgo_752f6d91b618_Cfunc_instantiate in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_instantiate, __cgo_752f6d91b618_C2func_instantiate )
"_load_wasm", referenced from:
__cgo_752f6d91b618_C2func_load_wasm in _x004.o
__cgo_752f6d91b618_Cfunc_load_wasm in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_load_wasm, __cgo_752f6d91b618_C2func_load_wasm )
"_migrate", referenced from:
__cgo_752f6d91b618_C2func_migrate in _x004.o
__cgo_752f6d91b618_Cfunc_migrate in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_migrate, __cgo_752f6d91b618_C2func_migrate )
"_new_unmanaged_vector", referenced from:
__cgo_752f6d91b618_Cfunc_new_unmanaged_vector in _x006.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_new_unmanaged_vector)
"_pin", referenced from:
__cgo_752f6d91b618_C2func_pin in _x004.o
__cgo_752f6d91b618_Cfunc_pin in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_pin, __cgo_752f6d91b618_C2func_pin )
"_query", referenced from:
__cgo_752f6d91b618_C2func_query in _x004.o
__cgo_752f6d91b618_Cfunc_query in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_query, __cgo_752f6d91b618_C2func_query )
"_release_cache", referenced from:
__cgo_752f6d91b618_Cfunc_release_cache in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_release_cache)
"_reply", referenced from:
__cgo_752f6d91b618_C2func_reply in _x004.o
__cgo_752f6d91b618_Cfunc_reply in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_reply, __cgo_752f6d91b618_Cfunc_reply )
"_save_wasm", referenced from:
__cgo_752f6d91b618_C2func_save_wasm in _x004.o
__cgo_752f6d91b618_Cfunc_save_wasm in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_save_wasm, __cgo_752f6d91b618_Cfunc_save_wasm )
"_sudo", referenced from:
__cgo_752f6d91b618_C2func_sudo in _x004.o
__cgo_752f6d91b618_Cfunc_sudo in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_sudo, __cgo_752f6d91b618_Cfunc_sudo )
"_unpin", referenced from:
__cgo_752f6d91b618_C2func_unpin in _x004.o
__cgo_752f6d91b618_Cfunc_unpin in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_unpin, __cgo_752f6d91b618_C2func_unpin )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build] Error 2
gertstar@Patricks-MBP core % clear

gertstar@Patricks-MBP core % make
fatal: No names found, cannot describe anything.
fatal: your current branch 'core' does not have any commits yet
go build -mod=readonly -tags "netgo,ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=gert -X github.com/cosmos/cosmos-sdk/version.AppName=gertd -X github.com/cosmos/cosmos-sdk/version.Version= -X github.com/cosmos/cosmos-sdk/version.Commit= -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"' -trimpath -o build/gertd ./cmd/gertd

github.com/keybase/go-keychain

cgo-gcc-prolog:81:11: warning: 'SecKeychainCreate' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:301:10: note: 'SecKeychainCreate' has been explicitly marked deprecated here
cgo-gcc-prolog:139:11: warning: 'SecKeychainLock' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:357:10: note: 'SecKeychainLock' has been explicitly marked deprecated here
cgo-gcc-prolog:159:11: warning: 'SecKeychainOpen' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:287:10: note: 'SecKeychainOpen' has been explicitly marked deprecated here
cgo-gcc-prolog:183:11: warning: 'SecKeychainUnlock' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:347:10: note: 'SecKeychainUnlock' has been explicitly marked deprecated here
cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here

github.com/zondax/hid

In file included from ../../go/pkg/mod/github.com/zondax/[email protected]/hid_enabled.go:38:
../../go/pkg/mod/github.com/zondax/[email protected]/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here

github.com/CosmWasm/wasmvm/api

ld: warning: ignoring file ../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/libwasmvm.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
"_analyze_code", referenced from:
__cgo_752f6d91b618_C2func_analyze_code in _x004.o
__cgo_752f6d91b618_Cfunc_analyze_code in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_analyze_code, __cgo_752f6d91b618_C2func_analyze_code )
"_destroy_unmanaged_vector", referenced from:
__cgo_752f6d91b618_Cfunc_destroy_unmanaged_vector in _x006.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_destroy_unmanaged_vector)
"_execute", referenced from:
__cgo_752f6d91b618_C2func_execute in _x004.o
__cgo_752f6d91b618_Cfunc_execute in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_execute, __cgo_752f6d91b618_Cfunc_execute )
"_get_metrics", referenced from:
__cgo_752f6d91b618_C2func_get_metrics in _x004.o
__cgo_752f6d91b618_Cfunc_get_metrics in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_get_metrics, __cgo_752f6d91b618_C2func_get_metrics )
"_ibc_channel_close", referenced from:
__cgo_752f6d91b618_C2func_ibc_channel_close in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_channel_close in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_channel_close, __cgo_752f6d91b618_C2func_ibc_channel_close )
"_ibc_channel_connect", referenced from:
__cgo_752f6d91b618_C2func_ibc_channel_connect in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_channel_connect in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_channel_connect, __cgo_752f6d91b618_C2func_ibc_channel_connect )
"_ibc_channel_open", referenced from:
__cgo_752f6d91b618_C2func_ibc_channel_open in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_channel_open in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_ibc_channel_open, __cgo_752f6d91b618_Cfunc_ibc_channel_open )
"_ibc_packet_ack", referenced from:
__cgo_752f6d91b618_C2func_ibc_packet_ack in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_packet_ack in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_packet_ack, __cgo_752f6d91b618_C2func_ibc_packet_ack )
"_ibc_packet_receive", referenced from:
__cgo_752f6d91b618_C2func_ibc_packet_receive in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_packet_receive in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_packet_receive, __cgo_752f6d91b618_C2func_ibc_packet_receive )
"_ibc_packet_timeout", referenced from:
__cgo_752f6d91b618_C2func_ibc_packet_timeout in _x004.o
__cgo_752f6d91b618_Cfunc_ibc_packet_timeout in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_ibc_packet_timeout, __cgo_752f6d91b618_C2func_ibc_packet_timeout )
"_init_cache", referenced from:
__cgo_752f6d91b618_C2func_init_cache in _x004.o
__cgo_752f6d91b618_Cfunc_init_cache in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_init_cache, __cgo_752f6d91b618_Cfunc_init_cache )
"_instantiate", referenced from:
__cgo_752f6d91b618_C2func_instantiate in _x004.o
__cgo_752f6d91b618_Cfunc_instantiate in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_instantiate, __cgo_752f6d91b618_C2func_instantiate )
"_load_wasm", referenced from:
__cgo_752f6d91b618_C2func_load_wasm in _x004.o
__cgo_752f6d91b618_Cfunc_load_wasm in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_load_wasm, __cgo_752f6d91b618_C2func_load_wasm )
"_migrate", referenced from:
__cgo_752f6d91b618_C2func_migrate in _x004.o
__cgo_752f6d91b618_Cfunc_migrate in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_migrate, __cgo_752f6d91b618_C2func_migrate )
"_new_unmanaged_vector", referenced from:
__cgo_752f6d91b618_Cfunc_new_unmanaged_vector in _x006.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_new_unmanaged_vector)
"_pin", referenced from:
__cgo_752f6d91b618_C2func_pin in _x004.o
__cgo_752f6d91b618_Cfunc_pin in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_pin, __cgo_752f6d91b618_C2func_pin )
"_query", referenced from:
__cgo_752f6d91b618_C2func_query in _x004.o
__cgo_752f6d91b618_Cfunc_query in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_query, __cgo_752f6d91b618_C2func_query )
"_release_cache", referenced from:
__cgo_752f6d91b618_Cfunc_release_cache in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_release_cache)
"_reply", referenced from:
__cgo_752f6d91b618_C2func_reply in _x004.o
__cgo_752f6d91b618_Cfunc_reply in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_reply, __cgo_752f6d91b618_Cfunc_reply )
"_save_wasm", referenced from:
__cgo_752f6d91b618_C2func_save_wasm in _x004.o
__cgo_752f6d91b618_Cfunc_save_wasm in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_save_wasm, __cgo_752f6d91b618_Cfunc_save_wasm )
"_sudo", referenced from:
__cgo_752f6d91b618_C2func_sudo in _x004.o
__cgo_752f6d91b618_Cfunc_sudo in _x004.o
(maybe you meant: __cgo_752f6d91b618_C2func_sudo, __cgo_752f6d91b618_Cfunc_sudo )
"_unpin", referenced from:
__cgo_752f6d91b618_C2func_unpin in _x004.o
__cgo_752f6d91b618_Cfunc_unpin in _x004.o
(maybe you meant: __cgo_752f6d91b618_Cfunc_unpin, __cgo_752f6d91b618_C2func_unpin )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build] Error 2`


Current SDK Release ~ https://github.com/cosmos/cosmos-sdk/releases/tag/v0.45.4


Model Name: MacBook Pro
Model Identifier: MacBookPro17,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 7459.121.3
OS Loader Version: 7459.121.3
_
gertstar@Patricks-MBP core % clang --version
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
_

gertstar@Patricks-MBP core % gnumake --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
_

Steps to Reproduce

  • Have a M1 Mac device (Fully updated)
  • Read Photos & Information provided above.
  • Make Makefile on forked or new Chain (Changes are optional for reproducing errors)
  • Make Makefile on forked or existing Chain
  • Protogen File Generation
  • Generate Swagger & Openapiv2 docs & Protos

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@GertStar GertStar changed the title M1 Mac unable to Make Make file ~ Deprecation of repos & modules for Mac M1 M1 Mac unable to make the Makefile ~ Deprecation of repos & modules for Mac M1 Jun 3, 2022
@tac0turtle
Copy link
Member

Thanks for opening such a detailed issue. M1 Macs and cosmwasm don't quite play together yet. Secondly, we cant speak to starworts build pipeline. They don't follow the cosmos-sdk and abstract many things away from the user.

For the Zondax and key base issues, if you are using the latest Mac OS version the software builds and runs successfully. I work on a M1 Mac daily and have not had issues with 99% of the tooling used in the cosmos-sdk.

@faddat
Copy link
Contributor

faddat commented Jun 3, 2022

I was able to run all tests on my M1.

Also, if the chain you're working on uses CosmWasm, you should be able to make it work with your M1, by upgrading the wasmd import to v0.27.0.

If that doesn't work, I know that's something that the CosmWasm team is putting a lot of effort into, and you may want to open an issue at https://github.com/CosmWasm/wasmd

Lastly, the unfortunate news on the Ignite cli is that it is deviating further and further from the cosmos-sdk over time. When we built craft (github.com/notional-labs/craft) we made app.go from the sdk's simapp (will need changes and ymmv). You should be able to find most of what you might need in craft, and eventually we'd like to make craft itself into a template that sits alongside simapp in the sdk, and provides a full chain template. These days, I spend more time removing Starport from chains than anything else, so I'd overall caution against using it. Once your chain is in production, starport can make the work that you need to do much more difficult.

@tac0turtle
Copy link
Member

seems like this is working for people

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

3 participants