VirgilSecurity / virgil-cli

CLI tool to manage your Virgil account and applications.
https://VirgilSecurity.com
BSD 3-Clause "New" or "Revised" License
82 stars 31 forks source link

virgil fails to build on ARM mac #58

Open iMichka opened 2 years ago

iMichka commented 2 years ago

Hello. I am one of the maintainers of Homebrew, a package manager for macOS and Linux.

We noticed that virgil does not build on M1 ARM Macs. We encountered the following build error:

==> make
Last 150 lines from /Users/brew/actions-runner-x86_64/_work/homebrew-core/homebrew-core/bottles/logs/virgil/01.make:
  "_vscf_sha512_hash", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_sha512_hash in _x120.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_sha512_hash)
  "_vscf_sha512_new", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_sha512_new in _x120.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_sha512_new)
  "_vscf_sha512_produce_alg_info", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_sha512_produce_alg_info in _x120.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_sha512_produce_alg_info)
  "_vscf_sha512_restore_alg_info", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_sha512_restore_alg_info in _x120.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_sha512_restore_alg_info)
  "_vscf_sha512_shallow_copy", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_sha512_shallow_copy in _x120.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_sha512_shallow_copy)
  "_vscf_sha512_start", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_sha512_start in _x120.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_sha512_start)
  "_vscf_sha512_update", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_sha512_update in _x120.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_sha512_update)
  "_vscf_signed_data_info_delete", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_delete in _x121.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_delete)
  "_vscf_signed_data_info_hash_alg_info", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_hash_alg_info in _x121.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_hash_alg_info)
  "_vscf_signed_data_info_new", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_new in _x121.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_new)
  "_vscf_signed_data_info_shallow_copy", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_shallow_copy in _x121.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signed_data_info_shallow_copy)
  "_vscf_signer_append_data", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_append_data in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_append_data)
  "_vscf_signer_delete", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_delete in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_delete)
  "_vscf_signer_info_delete", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_delete in _x123.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_delete)
  "_vscf_signer_info_list_clear", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_clear in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_clear)
  "_vscf_signer_info_list_delete", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_delete in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_delete)
  "_vscf_signer_info_list_has_item", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_has_item in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_has_item)
  "_vscf_signer_info_list_has_next", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_has_next in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_has_next)
  "_vscf_signer_info_list_has_prev", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_has_prev in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_has_prev)
  "_vscf_signer_info_list_item", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_item in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_item)
  "_vscf_signer_info_list_new", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_new in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_new)
  "_vscf_signer_info_list_next", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_next in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_next)
  "_vscf_signer_info_list_prev", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_prev in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_prev)
  "_vscf_signer_info_list_shallow_copy", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_shallow_copy in _x124.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_list_shallow_copy)
  "_vscf_signer_info_new", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_new in _x123.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_new)
  "_vscf_signer_info_shallow_copy", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_shallow_copy in _x123.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_shallow_copy)
  "_vscf_signer_info_signature", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_signature in _x123.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_signature)
  "_vscf_signer_info_signer_alg_info", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_signer_alg_info in _x123.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_signer_alg_info)
  "_vscf_signer_info_signer_id", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_signer_id in _x123.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_info_signer_id)
  "_vscf_signer_new", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_new in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_new)
  "_vscf_signer_release_hash", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_release_hash in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_release_hash)
  "_vscf_signer_release_random", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_release_random in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_release_random)
  "_vscf_signer_reset", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_reset in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_reset)
  "_vscf_signer_shallow_copy", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_shallow_copy in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_shallow_copy)
  "_vscf_signer_sign", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_sign in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_sign, __cgo_27f65b10c3e2_Cfunc_vscf_signer_signature_len )
  "_vscf_signer_signature_len", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_signature_len in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_signature_len)
  "_vscf_signer_use_hash", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_use_hash in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_use_hash)
  "_vscf_signer_use_random", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_signer_use_random in _x122.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_signer_use_random)
  "_vscf_simple_alg_info_alg_id", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_alg_id in _x125.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_alg_id)
  "_vscf_simple_alg_info_delete", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_delete in _x125.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_delete)
  "_vscf_simple_alg_info_new", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_new in _x125.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_new, __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_new_with_alg_id )
  "_vscf_simple_alg_info_new_with_alg_id", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_new_with_alg_id in _x125.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_new_with_alg_id)
  "_vscf_simple_alg_info_shallow_copy", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_shallow_copy in _x125.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_simple_alg_info_shallow_copy)
  "_vscf_verifier_append_data", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_verifier_append_data in _x126.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_verifier_append_data)
  "_vscf_verifier_delete", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_verifier_delete in _x126.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_verifier_delete)
  "_vscf_verifier_new", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_verifier_new in _x126.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_verifier_new)
  "_vscf_verifier_reset", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_verifier_reset in _x126.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_verifier_reset)
  "_vscf_verifier_shallow_copy", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_verifier_shallow_copy in _x126.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_verifier_shallow_copy)
  "_vscf_verifier_verify", referenced from:
      __cgo_27f65b10c3e2_Cfunc_vscf_verifier_verify in _x126.o
     (maybe you meant: __cgo_27f65b10c3e2_Cfunc_vscf_verifier_verify)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [go_build] Error 2

For reference here is the issue on our side: https://github.com/Homebrew/homebrew-core/pull/94895