filecoin-project/filecoin-ffi

macOS versioning issue for install-filcrypto

laudiacay opened this issue · 2 comments

I am running macOS 10.15. When I run install-filcrypto, it pulls the prebuilt release for Darwin and my CPU features, but it's built for macOS 11. When I try to link against this libfilcrypto, I get scary warnings that look like this. Have not tried to run lotus linked like this yet, so I don't know if it'll end up breaking, but especially the first error gives me really bad possible-scary-memory-corruption energy!

ld: warning: could not create compact unwind for _blst_sha256_block_data_order: does not use RBP or RSP based frame
ld: warning: object file ($HOME/pl-work/lotus/extern/filecoin-ffi/libfilcrypto.a(sha256_x64.o)) was built for newer macOS version (11.0) than being linked (10.15)

Suggested fix (if this is even a real issue?): check macos prebuilt version and compare it to the local version somehow? figure out whether there could be any other potential issues with incorrect prebuilt release selection?

Can you try running the ./build.sh script locally?

vmx commented

I'm closing this issue due to inactivity, if it's still an issue, please re-open.