Repository: filecoin-project/lotus

Issue #9357: 1.17.1 and 1.17.2-rc1 mac (darwin) binary crashes on launch on M1: dyld[19175]: symbol not found in flat namespace (_hwloc_bitmap_alloc)
Created: 2022-09-22T13:01:51Z
Checklist

 This is not a security-related bug/issue. If it is, please follow please follow the security policy.
 This is not a question or a support request. If you have any lotus related questions, please ask in the lotus forum.
 This is not a new feature request. If it is, please file a feature request instead.
 This is not an enhancement request. If it is, please file a improvement suggestion instead.
 I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
 I am running the Latest release, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
 I did not make any code changes to lotus.

Lotus component

 lotus daemon - chain sync
 lotus miner - mining and block production
 lotus miner/worker - sealing
 lotus miner - proving(WindowPoSt)
 lotus miner/market - storage deal
 lotus miner/market - retrieval deal
 lotus miner/market - data transfer
 lotus client
 lotus JSON-RPC API
 lotus message management (mpool)
 Other

Lotus Version
stefan@StefMacBookPro lotus_1.17.2-rc1_darwin_all % ./lotus
dyld[19124]: symbol not found in flat namespace (_hwloc_bitmap_alloc)
zsh: abort      ./lotus
stefan@StefMacBookPro lotus_1.17.2-rc1_darwin_all % 

I first observed this when upgrading via Homebrew, then tested the direct download. 1.17.0 was working fine. 

I can confirm that building 1.17.2-rc1 from source on M1 works fine.

Problem has existed at least since 08-31-2002 (when the launchpad lotus test cohort encountered it). I'm not sure which version they would have installed from.

Describe the Bug
The downloadable mac binary of 1.17.2.-rc1 crashes on launch.
stefan@StefMacBookPro lotus_1.17.2-rc1_darwin_all % lotus --version
dyld[19175]: symbol not found in flat namespace (_hwloc_bitmap_alloc)
zsh: abort      lotus --version
stefan@StefMacBookPro lotus_1.17.2-rc1_darwin_all %

Logging Information
client clashes on launch.

Repo Steps

Download and unpack https://github.com/filecoin-project/lotus/releases/download/v1.17.2-rc1/lotus_1.17.2-rc1_darwin_all.tar.gz
Do 'lotus'
See error 'dyld[19124]: symbol not found in flat namespace (_hwloc_bitmap_alloc)'

Duplicate issue #9381: Lotus 1.17.1 macOS Monterey v12.6 (chip m1 pro) - fail on launch: dyld[41083]: symbol not found in flat namespace (_hwloc_bitmap_alloc)
Created: 2022-09-27T07:16:52Z
Checklist

 This is not a security-related bug/issue. If it is, please follow please follow the security policy.
 This is not a question or a support request. If you have any lotus related questions, please ask in the lotus forum.
 This is not a new feature request. If it is, please file a feature request instead.
 This is not an enhancement request. If it is, please file a improvement suggestion instead.
 I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
 I am running the Latest release, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
 I did not make any code changes to lotus.

Lotus component

 lotus daemon - chain sync
 lotus miner - mining and block production
 lotus miner/worker - sealing
 lotus miner - proving(WindowPoSt)
 lotus miner/market - storage deal
 lotus miner/market - retrieval deal
 lotus miner/market - data transfer
 lotus client
 lotus JSON-RPC API
 lotus message management (mpool)
 Other

Lotus Version
https://github.com/filecoin-project/lotus/releases/download/v1.17.1/lotus_1.17.1

Describe the Bug
The lotus version 1.17.1 installed with Homebrew crashes on launch & version check on macOS Monterey v12.6 (chip m1 pro):
:~ xxxx$ brew install lotus
==> Downloading https://github.com/filecoin-project/lotus/releases/download/v1.17.1/lotus_1.17.1
Already downloaded: /Users/xxxx/Library/Caches/Homebrew/downloads/75fc9a64b93bfa7f2fe476f6b35478cfef6f07dd4ae977bab197ffd57610dc8a--lotus_1.17.1_darwin_all.tar.gz
==> Installing lotus from filecoin-project/lotus
🍺  /opt/homebrew/Cellar/lotus/1.17.1: 5 files, 778.5MB, built in 4 seconds
==> Running brew cleanup lotus...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
:~ xxxx$ lotus -v
dyld[40836]: symbol not found in flat namespace (_hwloc_bitmap_alloc)
Abort trap: 6
Logging Information
client clashes on launch

dyld[41083]: symbol not found in flat namespace (_hwloc_bitmap_alloc)
Abort trap: 6

Repo Steps

Run brew install lotus
Do lotus -v
See error dyld[40836]: symbol not found in flat namespace (_hwloc_bitmap_alloc) Abort trap: 6
...

Closing comment (2022-09-27T15:49:54Z): duplicate of #9357 - I just went back and tested 1.17.1 before spotting this new ticket.