iomentum / cargo-scaffold

cargo scaffold lets you scaffold and generate projects described in a simple TOML file
MIT License
57 stars 12 forks source link

Is there any support for arm64? #29

Open Ksiner opened 2 years ago

Ksiner commented 2 years ago

Failed to install cargo-scaffold on arm64 (mac m1 chip). Can i do something about it, or it's just cargo-scaffold limitation?

ld: warning: ignoring file /usr/local/opt/openssl@1.1/lib/libssl.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/opt/openssl@1.1/lib/libcrypto.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
          Undefined symbols for architecture arm64:
            "_EVP_cast5_cbc", referenced from:
                _libssh2_crypt_method_cast128_cbc in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_EVP_aes_128_cbc", referenced from:
                _libssh2_crypt_method_aes128_cbc in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_EVP_aes_192_cbc", referenced from:
                _libssh2_crypt_method_aes192_cbc in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_EVP_aes_256_cbc", referenced from:
                _libssh2_crypt_method_aes256_cbc in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
                _libssh2_crypt_method_rijndael_cbc_lysator_liu_se in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_EVP_CIPHER_CTX_free", referenced from:
                _crypt_dtor in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_EVP_ripemd160", referenced from:
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_EVP_md5", referenced from:
                _mac_method_hmac_md5_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_EVP_rc4", referenced from:
                _libssh2_crypt_method_arcfour128 in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
                _libssh2_crypt_method_arcfour in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_HMAC_CTX_new", referenced from:
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_EVP_aes_128_ctr", referenced from:
                _libssh2_crypt_method_aes128_ctr in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_HMAC_Update", referenced from:
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_HMAC_Final", referenced from:
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_HMAC_CTX_free", referenced from:
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_BN_set_word", referenced from:
                _kex_method_diffie_hellman_group16_sha512_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _kex_method_diffie_hellman_group18_sha512_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _kex_method_diffie_hellman_group14_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _kex_method_diffie_hellman_group1_sha1_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
            "_RAND_bytes", referenced from:
                __libssh2_kex_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                __libssh2_transport_send in liblibssh2_sys-0ebb39934f37b404.rlib(transport.o)
            "_EC_KEY_set_private_key", referenced from:
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_set1_EC_KEY", referenced from:
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_set1_DSA", referenced from:
                _gen_publickey_from_dsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_sub", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_get1_EC_KEY", referenced from:
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_new", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_dsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_mod_exp", referenced from:
                __libssh2_dh_key_pair in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dh_secret in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_set1_RSA", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_ENGINE_register_all_complete", referenced from:
                __libssh2_openssl_crypto_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_clear_free", referenced from:
                __libssh2_dh_dtor in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _kex_method_curve25519_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _kex_method_diffie_hellman_group_exchange_sha256_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _kex_method_diffie_hellman_group16_sha512_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                ...
            "_DSA_free", referenced from:
                _gen_publickey_from_dsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_dsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _hostkey_method_ssh_dss_init in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_dss_initPEM in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_dss_initPEMFromMemory in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_dss_dtor in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
            "_RSA_free", referenced from:
                _gen_publickey_from_rsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _hostkey_method_ssh_rsa_init in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_rsa_initPEM in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_rsa_initPEMFromMemory in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_rsa_dtor in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
            "_EVP_PKEY_get1_RSA", referenced from:
                _gen_publickey_from_rsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_RSA_get0_key", referenced from:
                _gen_publickey_from_rsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_rand", referenced from:
                __libssh2_dh_key_pair in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_DigestVerifyInit", referenced from:
                __libssh2_ed25519_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_sha1", referenced from:
                _mac_method_hmac_sha1_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_EVP_DigestVerify", referenced from:
                __libssh2_ed25519_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_CTX_new", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_derive", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_GROUP_get_degree", referenced from:
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_derive_set_peer", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_KEY_generate_key", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_RSA_set0_factors", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_KEY_get0_public_key", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_CTX_free", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
            "_EC_POINT_point2oct", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_POINT_free", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_ECDSA_do_sign", referenced from:
                __libssh2_ecdsa_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_CTX_new", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
            "_ECDSA_SIG_get0", referenced from:
                __libssh2_ecdsa_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_POINT_oct2point", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_do_sign", referenced from:
                __libssh2_dsa_sha1_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_bn2bin", referenced from:
                __libssh2_dsa_sha1_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_dsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _kex_method_curve25519_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                ...
            "_EVP_aes_256_ctr", referenced from:
                _libssh2_crypt_method_aes256_ctr in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_PEM_read_bio_PrivateKey", referenced from:
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_RSA_sign", referenced from:
                __libssh2_rsa_sha1_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_CTX_new_id", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_get0_pqg", referenced from:
                _gen_publickey_from_dsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_new_raw_public_key", referenced from:
                __libssh2_ed25519_new_public in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_KEY_free", referenced from:
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _hostkey_method_ssh_ecdsa_init in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_ecdsa_initPEM in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_ecdsa_initPEMFromMemory in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_ecdsa_dtor in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _kex_method_ecdh_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                ...
            "_EVP_PKEY_new_raw_private_key", referenced from:
                _gen_publickey_from_ed25519_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_keygen", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_des_ede3_cbc", referenced from:
                _libssh2_crypt_method_3des_cbc in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_RSA_verify", referenced from:
                __libssh2_rsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_PEM_read_bio_ECPrivateKey", referenced from:
                __libssh2_ecdsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_set0_pqg", referenced from:
                __libssh2_dsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BIO_new_file", referenced from:
                __libssh2_rsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BIO_new_mem_buf", referenced from:
                __libssh2_rsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_PEM_read_bio_RSAPrivateKey", referenced from:
                __libssh2_rsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_rsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_DigestSign", referenced from:
                __libssh2_ed25519_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_MD_CTX_free", referenced from:
                __libssh2_rsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha1_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha256_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha384_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha512_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_RSA_set0_key", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_Cipher", referenced from:
                __libssh2_cipher_crypt in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_num_bits", referenced from:
                __libssh2_dsa_sha1_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_dsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _kex_method_curve25519_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                ...
            "_EVP_CIPHER_CTX_new", referenced from:
                __libssh2_cipher_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_DigestSignInit", referenced from:
                __libssh2_ed25519_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_CipherInit", referenced from:
                __libssh2_cipher_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_ECDSA_SIG_new", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BIO_free", referenced from:
                __libssh2_rsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_rsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_ECDSA_do_verify", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_get0_key", referenced from:
                _gen_publickey_from_dsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_new", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dh_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_EVP_PKEY_get_raw_private_key", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_get_raw_public_key", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ed_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_GROUP_get_curve_name", referenced from:
                __libssh2_ecdsa_get_curve_type in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_ENGINE_load_builtin_engines", referenced from:
                __libssh2_openssl_crypto_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_KEY_new_by_curve_name", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_create_key in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_DigestInit", referenced from:
                __libssh2_rsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha1_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha256_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha384_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha512_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_EVP_PKEY_CTX_free", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_aes_192_ctr", referenced from:
                _libssh2_crypt_method_aes192_ctr in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_ECDH_compute_key", referenced from:
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_OPENSSL_init_ssl", referenced from:
                std::sync::once::Once::call_once::_$u7b$$u7b$closure$u7d$$u7d$::h3018043a86053f39 (.llvm.14161300554431123787) in libopenssl_sys-57c1e63075f38677.rlib(openssl_sys-57c1e63075f38677.openssl_sys.a1614e54-cgu.4.rcgu.o)
                core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::heb23fe971afdbefb (.llvm.14161300554431123787) in libopenssl_sys-57c1e63075f38677.rlib(openssl_sys-57c1e63075f38677.openssl_sys.a1614e54-cgu.4.rcgu.o)
            "_RSA_set0_crt_params", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_SIG_set0", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BIO_ctrl", referenced from:
                __libssh2_pub_priv_keyfile in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_PEM_read_bio_DSAPrivateKey", referenced from:
                __libssh2_dsa_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_free", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ed25519_new_private in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ed25519_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_EC_KEY_get0_group", referenced from:
                __libssh2_ecdsa_get_curve_type in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_create_key in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_HMAC_Init_ex", referenced from:
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_DSA_do_verify", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_new", referenced from:
                __libssh2_dsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_derive_init", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_PKEY_get1_DSA", referenced from:
                _gen_publickey_from_dsa_evp in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_MD_CTX_new", referenced from:
                __libssh2_rsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha1_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha256_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha384_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha512_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_EVP_sha256", referenced from:
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_EVP_PKEY_keygen_init", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_SIG_new", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_SIG_get0", referenced from:
                __libssh2_dsa_sha1_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_ECDSA_SIG_free", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_RSA_size", referenced from:
                __libssh2_rsa_sha1_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_DigestUpdate", referenced from:
                __libssh2_rsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_rsa_signv in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_dss_signv in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _kex_method_curve25519_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                ...
            "_DSA_SIG_free", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_sign in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_bf_cbc", referenced from:
                _libssh2_crypt_method_blowfish_cbc in liblibssh2_sys-0ebb39934f37b404.rlib(crypt.o)
            "_EVP_DigestFinal", referenced from:
                __libssh2_rsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_rsa_signv in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _hostkey_method_ssh_dss_signv in liblibssh2_sys-0ebb39934f37b404.rlib(hostkey.o)
                _kex_method_curve25519_key_exchange in liblibssh2_sys-0ebb39934f37b404.rlib(kex.o)
                ...
            "_RSA_new", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_div", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_value_one", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_POINT_new", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_BN_bin2bn", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_EVP_sha512", referenced from:
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-0ebb39934f37b404.rlib(mac.o)
            "_RSA_get0_factors", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_ECDSA_SIG_set0", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_DSA_set0_key", referenced from:
                __libssh2_dsa_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EVP_get_digestbyname", referenced from:
                __libssh2_rsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_dsa_sha1_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha1_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha256_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha384_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_sha512_init in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                ...
            "_EVP_PKEY_id", referenced from:
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
            "_EC_KEY_set_public_key", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-0ebb39934f37b404.rlib(openssl.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
o0Ignition0o commented 2 years ago

Hey! from the stacktrace you provided it looks like libssl is missing, which imo should not happen if you run against main.

Can you try to use our main? it should work

cargo install --git git@github.com:iomentum/cargo-scaffold.git should do

Ksiner commented 2 years ago

Hey! Tried the command and got the same error.

zman2013 commented 2 years ago

@Ksiner Your are using x86 ssl libs on M1. Below ticket solves your problem. https://github.com/hyperledger/indy-sdk/issues/2393#issuecomment-903278909