Macaulay2 / homebrew-tap

The Macaulay2 tap for Homebrew
7 stars 6 forks source link

libtbb error after update #82

Closed aarondall closed 2 years ago

aarondall commented 3 years ago

M2 updated during a usual brew update. The next time I called m2 from the command line I got the following error that I cannot parse.

dyld: Symbol not found: __ZN3tbb4task13note_affinityEt
  Referenced from: /usr/local/bin/M2-binary
  Expected in: /usr/local/lib/libtbb.dylib
 in /usr/local/bin/M2-binary
/usr/local/bin/M2: line 2: 53114 Abort trap: 6           DYLD_LIBRARY_PATH=`dirname "$0"`/../lib/Macaulay2/lib:$DYLD_LIBRARY_PATH `dirname "$0"`/M2-binary "$@"

brew config

HOMEBREW_VERSION: 3.1.10-10-gc7dff1b
ORIGIN: https://github.com/Homebrew/brew
HEAD: c7dff1bbfe45128b671a0754bf26fdeba791edca
Last commit: 82 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: cc4d543109e8a5287a25bee7e1a0c9676a8df22f
Core tap last commit: 28 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: quad-core 64-bit haswell
Clang: 12.0.0 build 1200
Git: 2.32.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A
mahrud commented 3 years ago

What version of tbb do you have installed? Does the error go away if you install tbb@2020 instead?

aarondall commented 3 years ago

tbb version is 2021.2.0. Reverting to tbb@2020 fixed the problem. Thanks!

DanGrayson commented 3 years ago

My copy of M2-binary seems to know which tbb it's supposed to use:

$ otool -L /usr/local/bin/M2-binary  | grep tbb
    /usr/local/opt/tbb@2020/lib/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)