Venus: Is it okay to use osx10.12 with the new proof?

Created on 2 May 2019  路  6Comments  路  Source: filecoin-project/venus

Describe the bug

I got something like ld: warning: object file (/Users/jasonwang/go/src/github.com/filecoin-project/go-filecoin/proofs/lib/libfilecoin_proofs.a(persistent_cache_helper.o)) was built for newer OSX version (10.13) than being linked (10.12)
due to that I'm on osx10.12
Wonder that if it is okay for this?
If so, how can I disable the print of warnings?
To Reproduce
After I run go run ./build test
Screenshots
ld: warning: object file (/Users/jasonwang/go/src/github.com/filecoin-project/go-filecoin/proofs/lib/libfilecoin_proofs.a(table_properties.o)) was built for newer OSX version (10.13) than being linked (10.12)

Version information
mac osx10.12

A-build

Most helpful comment

Thanks a lot, but are there anyway to not printing it?
my screenshot went something like these
image
(sorry not paste it above)

All 6 comments

Hi @jscode017, without the exact output it is hard to say, would you mind completing the issue template:

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Run this command '...'
  3. See error

Screenshots
If applicable, add logging output or screenshots to help explain your problem.

Version information
please fill out this information below completely, it will help us solve your issue faster
if you are trying to build go-filecoin

  • Go: `go version
  • Rust: rustc --version
  • Cargo: cargo --version
  • Commit: git rev-parse HEAD
  • Go Env: $(go env | grep -E "^CC" | sed -e 's/.*\=//' | sed -e 's/^"//' -e 's/"$//') --version
  • Filecoin Version: go-filecoin version

Sorry, I update my issue, I'm mainly wondering can I still stick to mac osx10.12?

I cannot say definitively that you won't have any issues since a mismatch in versions could potentially lead to undefind behavior. However since this is a warning you should be fine. I would suggest upgrading in the future to avoid any issues.

Thanks a lot, but are there anyway to not printing it?
my screenshot went something like these
image
(sorry not paste it above)

The documentation for -ldflags makes me think you can:

$ go build -ldflags --help
-extldflags flags
        pass flags to external linker
  -f    ignore version mismatch
  -g    disable go package data checks
  -h    halt on error

You could try passing -f here when building.

However since I am unable to repo this on my own machine I cannot confirm is this will work. I believe your best bet is to upgrade to OSX Version > 10.12.

@jscode017 I am going to close this issue since a solution has been given: Updating OS X will alleviate these warning messages.

Was this page helpful?
0 / 5 - 0 ratings