Closed gsp-hub closed 3 months ago
My mac installed the required environment once before when nv22, when I cloned the latest lotus again directly and made it, I found this prompt, I tried to find ways to fix it (according to the https://lotus.filecoin.io/lotus/install/macos/ page macOS steps), but they all failed! .
@gsp-hub please check you have LIBRARY_PATH=/opt/homebrew/lib
set when running the compile.
Yes there is no such variable, and when I set it, a new error was reported
those warnings should be ignorable in most cases
Ok I found it, it's an alert but it doesn't affect the program generation.thanks for your support @rvagg @ribasushi
Checklist
Latest release
, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Repro Steps
1.brew install go bzr jq pkg-config hwloc coreutils
2.curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
3.git clone https://github.com/filecoin-project/lotus.git cd lotus/
Describe the Bug
rm -f lotus go build -ldflags="-s -w -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.34a12db.dirty" -o lotus ./cmd/lotus
github.com/filecoin-project/lotus/cmd/lotus
/opt/homebrew/Cellar/go/1.22.6/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1 ld: warning: ignoring duplicate libraries: '-lSystem', '-lc', '-lhwloc', '-liconv', '-lm', '-lproc', '/Users/spgao/lotus/extern/filecoin-ffi/libfilcrypto.a' ld: library 'hwloc' not found clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lotus] Error 1
Logging Information