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

virgil fails to build on ARM mac #58

Open
iMichka opened this issue Feb 23, 2022 · 0 comments
Open

virgil fails to build on ARM mac #58

iMichka opened this issue Feb 23, 2022 · 0 comments

Comments

@iMichka
Copy link

iMichka commented Feb 23, 2022

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: Homebrew/homebrew-core#94895

iMichka added a commit to iMichka/homebrew-core that referenced this issue Feb 28, 2022
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this issue Mar 1, 2022
See VirgilSecurity/virgil-cli#58

Closes #96009.

Signed-off-by: Sean Molenaar <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
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

1 participant