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

[BUG] Can't build v1.60 #5979

Closed
rib3ye opened this issue Apr 6, 2021 · 4 comments
Closed

[BUG] Can't build v1.60 #5979

rib3ye opened this issue Apr 6, 2021 · 4 comments
Labels
kind/bug Kind: Bug

Comments

@rib3ye
Copy link

rib3ye commented Apr 6, 2021

Describe the bug
Simply trying to build and run on M1 Mac
Darwin Simons.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64

Version (run lotus version):

To Reproduce
Steps to reproduce the behavior:

  1. Clone repo and checkout 1.6.0
git clone git@github.com:filecoin-project/lotus.git
cd lotus
git checkout 3fc23a7
make clean && make all

Expected behavior
Should build correctly

Logs

➜  lotus git:(3fc23a785) make clean && make all
rm -rf  build/.filecoin-install build/.update-modules  lotus lotus-miner lotus-worker lotus-shed lotus-gateway lotus-seed lotus-pond lotus-townhall lotus-fountain lotus-chainwatch lotus-bench lotus-stats lotus-pcr lotus-health lotus-wallet lotus-keygen testground
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C extern/filecoin-ffi/ clean
make[1]: *** No rule to make target `clean'.  Stop.
make: [clean] Error 2 (ignored)
git submodule update --init --recursive
Submodule 'extern/filecoin-ffi' (https://github.com/filecoin-project/filecoin-ffi.git) registered for path 'extern/filecoin-ffi'
Submodule 'extern/serialization-vectors' (https://github.com/filecoin-project/serialization-vectors.git) registered for path 'extern/serialization-vectors'
Submodule 'extern/test-vectors' (https://github.com/filecoin-project/test-vectors.git) registered for path 'extern/test-vectors'
Cloning into '/Users/noahtsutsui/lotus/extern/filecoin-ffi'...
Cloning into '/Users/noahtsutsui/lotus/extern/serialization-vectors'...
Cloning into '/Users/noahtsutsui/lotus/extern/test-vectors'...
Submodule path 'extern/filecoin-ffi': checked out 'b6e0b35fb49ed0fedb6a6a473b222e3b8a7d7f17'
Submodule path 'extern/serialization-vectors': checked out '5bfb928910b01ac8b940a693af2884f7f8276211'
Submodule path 'extern/test-vectors': checked out 'd9a75a7873aee0db28b87e3970d2ea16a2f37c6a'
Submodule 'gen/extern/fil-blst' (https://github.com/filecoin-project/fil-blst.git) registered for path 'extern/test-vectors/gen/extern/fil-blst'
Submodule 'gen/extern/filecoin-ffi' (https://github.com/filecoin-project/filecoin-ffi.git) registered for path 'extern/test-vectors/gen/extern/filecoin-ffi'
Cloning into '/Users/noahtsutsui/lotus/extern/test-vectors/gen/extern/fil-blst'...
Cloning into '/Users/noahtsutsui/lotus/extern/test-vectors/gen/extern/filecoin-ffi'...
Submodule path 'extern/test-vectors/gen/extern/fil-blst': checked out '5f93488fc0dbfb450f2355269f18fc67010d59bb'
Submodule path 'extern/test-vectors/gen/extern/filecoin-ffi': checked out 'f640612a1a1f7a2dd8b3a49e1531db0aa0f63447'
touch build/.update-modules
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C extern/filecoin-ffi/ .install-filcrypto
./install-filcrypto
+ auth_header=()
+ '[' -n '' ']'
++ dirname ./install-filcrypto
+ cd .
+ rust_sources_dir=rust
++ jq -r '.[].check_cpu_for_feature | select(. != null)'
+ cpu_features_required_for_optimized_release='adx
sha_ni
sha2
sse2
avx2
avx
sse4_2
sse4_1'
+ main
++ get_release_flags
++ local __features=
++ [[ ! -f /proc/cpuinfo ]]
++ echo '[get_release_flags] no /proc/cpuinfo file; falling back to Darwin feature detection'
[get_release_flags] no /proc/cpuinfo file; falling back to Darwin feature detection
+++ sysctl -a
+++ grep machdep.cpu
+++ tr '[:upper:]' '[:lower:]'
+++ grep features
++ __features=
++ feature_map=("adx:+adx" "sha_ni:+sha" "sha2:+sha2" "sse2:+sse2" "avx2:+avx2" "avx:+avx" "sse4_2:+sse4.2" "sse4_1:+sse4.1")
++ target_features=
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c adx
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sha_ni
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sha2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sse2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c avx2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c avx
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sse4_2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sse4_1
++ current_feature=0
++ '[' 1 = 0 ']'
++ echo ''
+ local __release_flags=
+ '[' '' '!=' 1 ']'
+ download_release_tarball __tarball_path rust filecoin-ffi ''
+ local __resultvar=__tarball_path
+ local __rust_sources_path=rust
+ local __repo_name=filecoin-ffi
+ local __release_flags=
++ git rev-parse HEAD
+ local __release_sha1=b6e0b35fb49ed0fedb6a6a473b222e3b8a7d7f17
+ local __release_tag=b6e0b35fb49ed0fe
+ local __release_tag_url=https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/tags/b6e0b35fb49ed0fe
+ '[' '' == 1 ']'
+ release_flag_name=standard-pairing
++ uname
+ local __release_name=filecoin-ffi-Darwin-standard-pairing
+ echo '[download_release_tarball] acquiring release @ b6e0b35fb49ed0fe'
[download_release_tarball] acquiring release @ b6e0b35fb49ed0fe
++ curl --retry 3 --location https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/tags/b6e0b35fb49ed0fe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9438  100  9438    0     0  28173      0 --:--:-- --:--:-- --:--:-- 28089
+ local '__release_response={
  "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/38131315",
  "assets_url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/38131315/assets",
  "upload_url": "https://uploads.github.com/repos/filecoin-project/filecoin-ffi/releases/38131315/assets{?name,label}",
  "html_url": "https://github.com/filecoin-project/filecoin-ffi/releases/tag/b6e0b35fb49ed0fe",
  "id": 38131315,
  "author": {
    "login": "filecoin-helper",
    "id": 37553297,
    "node_id": "MDQ6VXNlcjM3NTUzMjk3",
    "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/filecoin-helper",
    "html_url": "https://github.com/filecoin-helper",
    "followers_url": "https://api.github.com/users/filecoin-helper/followers",
    "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
    "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
    "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
    "repos_url": "https://api.github.com/users/filecoin-helper/repos",
    "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
    "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
    "type": "User",
    "site_admin": false
  },
  "node_id": "MDc6UmVsZWFzZTM4MTMxMzE1",
  "tag_name": "b6e0b35fb49ed0fe",
  "target_commitish": "b6e0b35fb49ed0fedb6a6a473b222e3b8a7d7f17",
  "name": "b6e0b35fb49ed0fe",
  "draft": false,
  "prerelease": false,
  "created_at": "2021-02-16T20:58:48Z",
  "published_at": "2021-02-16T21:03:05Z",
  "assets": [
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167831",
      "id": 32167831,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3ODMx",
      "name": "filecoin-ffi-Darwin-standard-blst.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 18130218,
      "download_count": 1,
      "created_at": "2021-02-16T21:12:35Z",
      "updated_at": "2021-02-16T21:12:36Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Darwin-standard-blst.tar.gz"
    },
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167697",
      "id": 32167697,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3Njk3",
      "name": "filecoin-ffi-Darwin-standard-pairing.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 18418671,
      "download_count": 1352,
      "created_at": "2021-02-16T21:09:20Z",
      "updated_at": "2021-02-16T21:09:21Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Darwin-standard-pairing.tar.gz"
    },
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167509",
      "id": 32167509,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3NTA5",
      "name": "filecoin-ffi-Linux-standard-blst.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 19178371,
      "download_count": 8,
      "created_at": "2021-02-16T21:04:21Z",
      "updated_at": "2021-02-16T21:04:21Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Linux-standard-blst.tar.gz"
    },
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167461",
      "id": 32167461,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3NDYx",
      "name": "filecoin-ffi-Linux-standard-pairing.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 19452755,
      "download_count": 25478,
      "created_at": "2021-02-16T21:03:05Z",
      "updated_at": "2021-02-16T21:03:06Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Linux-standard-pairing.tar.gz"
    }
  ],
  "tarball_url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/tarball/b6e0b35fb49ed0fe",
  "zipball_url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/zipball/b6e0b35fb49ed0fe",
  "body": ""
}'
++ jq -r '.assets[] | select(.name | contains("filecoin-ffi-Darwin-standard-pairing")) | .url'
++ echo '{
  "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/38131315",
  "assets_url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/38131315/assets",
  "upload_url": "https://uploads.github.com/repos/filecoin-project/filecoin-ffi/releases/38131315/assets{?name,label}",
  "html_url": "https://github.com/filecoin-project/filecoin-ffi/releases/tag/b6e0b35fb49ed0fe",
  "id": 38131315,
  "author": {
    "login": "filecoin-helper",
    "id": 37553297,
    "node_id": "MDQ6VXNlcjM3NTUzMjk3",
    "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/filecoin-helper",
    "html_url": "https://github.com/filecoin-helper",
    "followers_url": "https://api.github.com/users/filecoin-helper/followers",
    "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
    "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
    "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
    "repos_url": "https://api.github.com/users/filecoin-helper/repos",
    "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
    "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
    "type": "User",
    "site_admin": false
  },
  "node_id": "MDc6UmVsZWFzZTM4MTMxMzE1",
  "tag_name": "b6e0b35fb49ed0fe",
  "target_commitish": "b6e0b35fb49ed0fedb6a6a473b222e3b8a7d7f17",
  "name": "b6e0b35fb49ed0fe",
  "draft": false,
  "prerelease": false,
  "created_at": "2021-02-16T20:58:48Z",
  "published_at": "2021-02-16T21:03:05Z",
  "assets": [
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167831",
      "id": 32167831,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3ODMx",
      "name": "filecoin-ffi-Darwin-standard-blst.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 18130218,
      "download_count": 1,
      "created_at": "2021-02-16T21:12:35Z",
      "updated_at": "2021-02-16T21:12:36Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Darwin-standard-blst.tar.gz"
    },
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167697",
      "id": 32167697,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3Njk3",
      "name": "filecoin-ffi-Darwin-standard-pairing.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 18418671,
      "download_count": 1352,
      "created_at": "2021-02-16T21:09:20Z",
      "updated_at": "2021-02-16T21:09:21Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Darwin-standard-pairing.tar.gz"
    },
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167509",
      "id": 32167509,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3NTA5",
      "name": "filecoin-ffi-Linux-standard-blst.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 19178371,
      "download_count": 8,
      "created_at": "2021-02-16T21:04:21Z",
      "updated_at": "2021-02-16T21:04:21Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Linux-standard-blst.tar.gz"
    },
    {
      "url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167461",
      "id": 32167461,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDMyMTY3NDYx",
      "name": "filecoin-ffi-Linux-standard-pairing.tar.gz",
      "label": "",
      "uploader": {
        "login": "filecoin-helper",
        "id": 37553297,
        "node_id": "MDQ6VXNlcjM3NTUzMjk3",
        "avatar_url": "https://avatars.githubusercontent.com/u/37553297?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/filecoin-helper",
        "html_url": "https://github.com/filecoin-helper",
        "followers_url": "https://api.github.com/users/filecoin-helper/followers",
        "following_url": "https://api.github.com/users/filecoin-helper/following{/other_user}",
        "gists_url": "https://api.github.com/users/filecoin-helper/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/filecoin-helper/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/filecoin-helper/subscriptions",
        "organizations_url": "https://api.github.com/users/filecoin-helper/orgs",
        "repos_url": "https://api.github.com/users/filecoin-helper/repos",
        "events_url": "https://api.github.com/users/filecoin-helper/events{/privacy}",
        "received_events_url": "https://api.github.com/users/filecoin-helper/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/octet-stream",
      "state": "uploaded",
      "size": 19452755,
      "download_count": 25478,
      "created_at": "2021-02-16T21:03:05Z",
      "updated_at": "2021-02-16T21:03:06Z",
      "browser_download_url": "https://github.com/filecoin-project/filecoin-ffi/releases/download/b6e0b35fb49ed0fe/filecoin-ffi-Linux-standard-pairing.tar.gz"
    }
  ],
  "tarball_url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/tarball/b6e0b35fb49ed0fe",
  "zipball_url": "https://api.github.com/repos/filecoin-project/filecoin-ffi/zipball/b6e0b35fb49ed0fe",
  "body": ""
}'
+ local __release_url=https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167697
++ basename https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167697
+ local __tar_path=/tmp/filecoin-ffi-Darwin-standard-pairing_32167697.tar.gz
+ [[ -z https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167697 ]]
++ curl --head --retry 3 --header Accept:application/octet-stream --location --output /dev/null -w '%{url_effective}' https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/assets/32167697
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 17.5M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
+ local '__asset_url=https://github-releases.githubusercontent.com/223221398/53887800-7071-11eb-925c-a09e1fb4f96b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210406%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210406T214300Z&X-Amz-Expires=300&X-Amz-Signature=555965a606cbc148ae507b1f67997e1471cfcf3d8a8d900d71ecfdc93bafcdb6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=223221398&response-content-disposition=attachment%3B%20filename%3Dfilecoin-ffi-Darwin-standard-pairing.tar.gz&response-content-type=application%2Foctet-stream'
+ curl --retry 3 --output /tmp/filecoin-ffi-Darwin-standard-pairing_32167697.tar.gz 'https://github-releases.githubusercontent.com/223221398/53887800-7071-11eb-925c-a09e1fb4f96b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210406%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210406T214300Z&X-Amz-Expires=300&X-Amz-Signature=555965a606cbc148ae507b1f67997e1471cfcf3d8a8d900d71ecfdc93bafcdb6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=223221398&response-content-disposition=attachment%3B%20filename%3Dfilecoin-ffi-Darwin-standard-pairing.tar.gz&response-content-type=application%2Foctet-stream'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17.5M  100 17.5M    0     0  37.2M      0 --:--:-- --:--:-- --:--:-- 37.2M
+ eval '__tarball_path='\''/tmp/filecoin-ffi-Darwin-standard-pairing_32167697.tar.gz'\'''
++ __tarball_path=/tmp/filecoin-ffi-Darwin-standard-pairing_32167697.tar.gz
++ mktemp -d
+ local __tmp_dir=/var/folders/2m/gntpddnn0cdfl8g70rdz949h0000gn/T/tmp.W4u6H7t0
+ tar -C /var/folders/2m/gntpddnn0cdfl8g70rdz949h0000gn/T/tmp.W4u6H7t0 -xzf /tmp/filecoin-ffi-Darwin-standard-pairing_32167697.tar.gz
+ find -L /var/folders/2m/gntpddnn0cdfl8g70rdz949h0000gn/T/tmp.W4u6H7t0 -type f -name filcrypto.h -exec cp -- '{}' . ';'
+ find -L /var/folders/2m/gntpddnn0cdfl8g70rdz949h0000gn/T/tmp.W4u6H7t0 -type f -name libfilcrypto.a -exec cp -- '{}' . ';'
+ find -L /var/folders/2m/gntpddnn0cdfl8g70rdz949h0000gn/T/tmp.W4u6H7t0 -type f -name filcrypto.pc -exec cp -- '{}' . ';'
+ check_installed_files
+ [[ ! -f ./filcrypto.h ]]
+ [[ ! -f ./libfilcrypto.a ]]
+ [[ ! -f ./filcrypto.pc ]]
+ echo '[install-filcrypto/main] successfully installed prebuilt libfilcrypto'
[install-filcrypto/main] successfully installed prebuilt libfilcrypto
+ exit
rm -f lotus
go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.3fc23a785" -o lotus ./cmd/lotus
# github.com/filecoin-project/filecoin-ffi/generated
ld: warning: ignoring file /Users/noahtsutsui/lotus/extern/filecoin-ffi/libfilcrypto.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_fil_aggregate", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_aggregate in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_aggregate)
  "_fil_clear_cache", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_clear_cache in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_clear_cache)
  "_fil_create_zero_signature", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_create_zero_signature in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_create_zero_signature)
  "_fil_destroy_aggregate_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_aggregate_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_aggregate_response)
  "_fil_destroy_clear_cache_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_clear_cache_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_clear_cache_response)
  "_fil_destroy_fauxrep_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_fauxrep_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_fauxrep_response)
  "_fil_destroy_finalize_ticket_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_finalize_ticket_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_finalize_ticket_response)
  "_fil_destroy_generate_data_commitment_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_data_commitment_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_data_commitment_response)
  "_fil_destroy_generate_fallback_sector_challenges_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_fallback_sector_challenges_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_fallback_sector_challenges_response)
  "_fil_destroy_generate_piece_commitment_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_piece_commitment_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_piece_commitment_response)
  "_fil_destroy_generate_single_vanilla_proof_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_single_vanilla_proof_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_single_vanilla_proof_response)
  "_fil_destroy_generate_window_post_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_window_post_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_window_post_response)
  "_fil_destroy_generate_winning_post_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_winning_post_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_winning_post_response)
  "_fil_destroy_generate_winning_post_sector_challenge", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_winning_post_sector_challenge in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_generate_winning_post_sector_challenge)
  "_fil_destroy_gpu_device_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_gpu_device_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_gpu_device_response)
  "_fil_destroy_hash_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_hash_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_hash_response)
  "_fil_destroy_init_log_fd_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_init_log_fd_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_init_log_fd_response)
  "_fil_destroy_private_key_generate_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_private_key_generate_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_private_key_generate_response)
  "_fil_destroy_private_key_public_key_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_private_key_public_key_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_private_key_public_key_response)
  "_fil_destroy_private_key_sign_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_private_key_sign_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_private_key_sign_response)
  "_fil_destroy_seal_commit_phase1_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_commit_phase1_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_commit_phase1_response)
  "_fil_destroy_seal_commit_phase2_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_commit_phase2_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_commit_phase2_response)
  "_fil_destroy_seal_pre_commit_phase1_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_pre_commit_phase1_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_pre_commit_phase1_response)
  "_fil_destroy_seal_pre_commit_phase2_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_pre_commit_phase2_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_seal_pre_commit_phase2_response)
  "_fil_destroy_string_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_string_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_string_response)
  "_fil_destroy_unseal_range_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_unseal_range_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_unseal_range_response)
  "_fil_destroy_verify_seal_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_verify_seal_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_verify_seal_response)
  "_fil_destroy_verify_window_post_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_verify_window_post_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_verify_window_post_response)
  "_fil_destroy_verify_winning_post_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_verify_winning_post_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_verify_winning_post_response)
  "_fil_destroy_write_with_alignment_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_write_with_alignment_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_write_with_alignment_response)
  "_fil_destroy_write_without_alignment_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_write_without_alignment_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_write_without_alignment_response)
  "_fil_destroy_zero_signature_response", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_destroy_zero_signature_response in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_destroy_zero_signature_response)
  "_fil_drop_signature", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_drop_signature in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_drop_signature)
  "_fil_fauxrep", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_fauxrep in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_fauxrep, __cgo_a8fa62747d41_Cfunc_fil_fauxrep2 )
  "_fil_fauxrep2", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_fauxrep2 in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_fauxrep2)
  "_fil_generate_data_commitment", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_data_commitment in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_data_commitment)
  "_fil_generate_fallback_sector_challenges", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_fallback_sector_challenges in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_fallback_sector_challenges)
  "_fil_generate_piece_commitment", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_piece_commitment in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_piece_commitment)
  "_fil_generate_single_vanilla_proof", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_single_vanilla_proof in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_single_vanilla_proof)
  "_fil_generate_window_post", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_window_post in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_window_post, __cgo_a8fa62747d41_Cfunc_fil_generate_window_post_with_vanilla )
  "_fil_generate_window_post_with_vanilla", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_window_post_with_vanilla in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_window_post_with_vanilla)
  "_fil_generate_winning_post", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post_sector_challenge, __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post , __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post_with_vanilla )
  "_fil_generate_winning_post_sector_challenge", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post_sector_challenge in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post_sector_challenge)
  "_fil_generate_winning_post_with_vanilla", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post_with_vanilla in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_generate_winning_post_with_vanilla)
  "_fil_get_gpu_devices", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_gpu_devices in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_gpu_devices)
  "_fil_get_max_user_bytes_per_staged_sector", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_max_user_bytes_per_staged_sector in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_max_user_bytes_per_staged_sector)
  "_fil_get_post_circuit_identifier", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_post_circuit_identifier in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_post_circuit_identifier)
  "_fil_get_post_params_cid", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_post_params_cid in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_post_params_cid)
  "_fil_get_post_params_path", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_post_params_path in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_post_params_path)
  "_fil_get_post_verifying_key_cid", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_post_verifying_key_cid in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_post_verifying_key_cid)
  "_fil_get_post_verifying_key_path", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_post_verifying_key_path in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_post_verifying_key_path)
  "_fil_get_post_version", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_post_version in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_post_version)
  "_fil_get_seal_circuit_identifier", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_seal_circuit_identifier in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_seal_circuit_identifier)
  "_fil_get_seal_params_cid", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_seal_params_cid in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_seal_params_cid)
  "_fil_get_seal_params_path", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_seal_params_path in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_seal_params_path)
  "_fil_get_seal_verifying_key_cid", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_seal_verifying_key_cid in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_seal_verifying_key_cid)
  "_fil_get_seal_verifying_key_path", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_seal_verifying_key_path in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_seal_verifying_key_path)
  "_fil_get_seal_version", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_get_seal_version in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_get_seal_version)
  "_fil_hash", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_hash in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_hash_verify, __cgo_a8fa62747d41_Cfunc_fil_hash )
  "_fil_hash_verify", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_hash_verify in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_hash_verify)
  "_fil_init_log_fd", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_init_log_fd in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_init_log_fd)
  "_fil_private_key_generate", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_private_key_generate in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_private_key_generate_with_seed, __cgo_a8fa62747d41_Cfunc_fil_private_key_generate )
  "_fil_private_key_generate_with_seed", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_private_key_generate_with_seed in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_private_key_generate_with_seed)
  "_fil_private_key_public_key", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_private_key_public_key in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_private_key_public_key)
  "_fil_private_key_sign", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_private_key_sign in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_private_key_sign)
  "_fil_seal_commit_phase1", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_seal_commit_phase1 in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_seal_commit_phase1)
  "_fil_seal_commit_phase2", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_seal_commit_phase2 in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_seal_commit_phase2)
  "_fil_seal_pre_commit_phase1", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_seal_pre_commit_phase1 in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_seal_pre_commit_phase1)
  "_fil_seal_pre_commit_phase2", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_seal_pre_commit_phase2 in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_seal_pre_commit_phase2)
  "_fil_unseal_range", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_unseal_range in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_unseal_range)
  "_fil_verify", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_verify in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_verify_winning_post, __cgo_a8fa62747d41_Cfunc_fil_verify_seal , __cgo_a8fa62747d41_Cfunc_fil_verify_window_post , __cgo_a8fa62747d41_Cfunc_fil_verify )
  "_fil_verify_seal", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_verify_seal in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_verify_seal)
  "_fil_verify_window_post", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_verify_window_post in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_verify_window_post)
  "_fil_verify_winning_post", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_verify_winning_post in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_verify_winning_post)
  "_fil_write_with_alignment", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_write_with_alignment in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_write_with_alignment)
  "_fil_write_without_alignment", referenced from:
      __cgo_a8fa62747d41_Cfunc_fil_write_without_alignment in _x004.o
     (maybe you meant: __cgo_a8fa62747d41_Cfunc_fil_write_without_alignment)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lotus] Error 2
@jennijuju jennijuju added need/team-input Hint: Needs Team Input and removed hint/needs-triaging labels Apr 6, 2021
@jennijuju
Copy link
Member

@nipponese thanks for reporting, the team will investigate it soon.

@cryptonemo
Copy link
Contributor

Requires using filecoin-project/filecoin-ffi#174

@jennijuju
Copy link
Member

git clone https://github.com/filecoin-project/lotus
cd lotus
git submodule update --init --recursive
export GOARCH=arm64
export CGO_ENABLED=1
export LIBRARY_PATH=/opt/homebrew/lib
cd extern/filecoin-ffi
git fetch -a
git checkout m1-portable
make clean
make
cd ../../
make lotus

@rib3ye
Copy link
Author

rib3ye commented Apr 13, 2021

Looks like rust needs to be installed first, so I did that.
Now I am getting this error on make

➜  filecoin-ffi git:(m1-portable) make
./install-filcrypto
+ auth_header=()
+ '[' -n '' ']'
++ dirname ./install-filcrypto
+ cd .
+ rust_sources_dir=rust
++ jq -r '.[].check_cpu_for_feature | select(. != null)'
+ cpu_features_required_for_optimized_release='adx
sha_ni
sha2
sse2
avx2
avx
sse4_2
sse4_1'
+ main
++ get_release_flags
++ local __features=
++ [[ ! -f /proc/cpuinfo ]]
++ echo '[get_release_flags] no /proc/cpuinfo file; falling back to Darwin feature detection'
[get_release_flags] no /proc/cpuinfo file; falling back to Darwin feature detection
+++ sysctl -a
+++ grep machdep.cpu
+++ tr '[:upper:]' '[:lower:]'
+++ grep features
++ __features=
++ feature_map=("adx:+adx" "sha_ni:+sha" "sha2:+sha2" "sse2:+sse2" "avx2:+avx2" "avx:+avx" "sse4_2:+sse4.2" "sse4_1:+sse4.1")
++ target_features=
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c adx
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sha_ni
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sha2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sse2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c avx2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c avx
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sse4_2
++ current_feature=0
++ '[' 1 = 0 ']'
++ for x in '${cpu_features_required_for_optimized_release[@]}'
+++ echo ''
+++ grep -c sse4_1
++ current_feature=0
++ '[' 1 = 0 ']'
++ echo ''
+ local __release_flags=
+ '[' '' '!=' 1 ']'
+ download_release_tarball __tarball_path rust filecoin-ffi ''
+ local __resultvar=__tarball_path
+ local __rust_sources_path=rust
+ local __repo_name=filecoin-ffi
+ local __release_flags=
++ git rev-parse HEAD
+ local __release_sha1=142aa2fd22941628274758d0003853a0d9543403
+ local __release_tag=142aa2fd22941628
+ local __release_tag_url=https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/tags/142aa2fd22941628
+ '[' '' == 1 ']'
+ release_flag_name=standard-pairing
++ uname
+ local __release_name=filecoin-ffi-Darwin-standard-pairing
+ echo '[download_release_tarball] acquiring release @ 142aa2fd22941628'
[download_release_tarball] acquiring release @ 142aa2fd22941628
++ curl --retry 3 --location https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/tags/142aa2fd22941628
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   126  100   126    0     0    370      0 --:--:-- --:--:-- --:--:--   369
+ local '__release_response={
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"
}'
++ echo '{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"
}'
++ jq -r '.assets[] | select(.name | contains("filecoin-ffi-Darwin-standard-pairing")) | .url'
jq: error (at <stdin>:4): Cannot iterate over null (null)
+ local __release_url=
++ basename ''
+ local __tar_path=/tmp/filecoin-ffi-Darwin-standard-pairing_.tar.gz
+ [[ -z '' ]]
+ echo '[download_release_tarball] failed to download release (tag URL: https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/tags/142aa2fd22941628, response: {
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"
})'
[download_release_tarball] failed to download release (tag URL: https://api.github.com/repos/filecoin-project/filecoin-ffi/releases/tags/142aa2fd22941628, response: {
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"
})
+ return 1
+ echo '[install-filcrypto/main] building libfilcrypto from local sources (dir = rust)'
[install-filcrypto/main] building libfilcrypto from local sources (dir = rust)
+ build_from_source filcrypto rust ''
+ local __library_name=filcrypto
+ local __rust_sources_path=rust
+ local __release_flags=
++ git rev-parse HEAD
+ local __repo_sha1=142aa2fd22941628274758d0003853a0d9543403
+ local __repo_sha1_truncated=142aa2fd22941628
+ echo 'building from source @ 142aa2fd22941628'
building from source @ 142aa2fd22941628
++ command -v cargo
+ '[' -x /opt/homebrew/bin/cargo ']'
++ command -v rustup
+ '[' -x '' ']'
+ echo '[build_from_source] Error: rustup is not installed.'
[build_from_source] Error: rustup is not installed.
+ echo '[build_from_source] install Rust toolchain installer to resolve this problem.'
[build_from_source] install Rust toolchain installer to resolve this problem.
+ exit 1
make: *** [.install-filcrypto] Error 1

➜  filecoin-ffi git:(m1-portable) brew install rustup
Warning: rustup-init 1.23.1 is already installed and up-to-date.
To reinstall 1.23.1, run:
  brew reinstall rustup-init
➜  filecoin-ffi git:(m1-portable) 

@TippyFlitsUK TippyFlitsUK removed the need/team-input Hint: Needs Team Input label Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Bug
Projects
None yet
Development

No branches or pull requests

4 participants