Skip to content

Instantly share code, notes, and snippets.

@egrefen
Created January 31, 2013 13:42
Show Gist options
  • Save egrefen/4682955 to your computer and use it in GitHub Desktop.
Save egrefen/4682955 to your computer and use it in GitHub Desktop.
Homebrew tbb install problems
Your system is raring to brew.
==> Downloading http://threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20121003oss_src.tgz
Already downloaded: /Library/Caches/Homebrew/tbb-4.1u1.tgz
/usr/bin/tar xf /Library/Caches/Homebrew/tbb-4.1u1.tgz
==> make tbb_build_prefix=BUILDPREFIX CONLY=cc CPLUS=c++ arch=intel64
make tbb_build_prefix=BUILDPREFIX CONLY=cc CPLUS=c++ arch=intel64
Created ./build/BUILDPREFIX_release and ..._debug directories
/usr/bin/make -C "./build/BUILDPREFIX_debug" -r -f ../../build/Makefile.tbb cfg=debug tbb_root=../..
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=intel64 compiler=gcc os=macos runtime=cc4.2.1_os10.8.2
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_vector.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/dynamic_link.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/cache_aligned_allocator.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/pipeline.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_mutex.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_rw_mutex.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/reader_writer_lock.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_rw_mutex.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_mutex.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/critical_section.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
sh ../../build/version_info_macos.sh c++ -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include >version_string.ver
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I. -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc_ex.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/mutex.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/recursive_mutex.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/condition_variable.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_thread.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_monitor.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/semaphore.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/private_server.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/rml/client/rml_tbb.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task_group_context.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/governor.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/market.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/arena.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/scheduler.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/observer_proxy.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_statistics.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_main.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_vector_v2.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_queue_v2.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/old/spin_rw_mutex_v2.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/old/task_v2.cpp
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
sh ../../build/generate_tbbvars.sh
c++ -E -x c++ ../../src/tbb/mac64-tbb-export.def -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include > tbb.def
brew: superenv removed: -g -O0 -m64 -Wall -Wno-non-virtual-dtor
c++ -fPIC -o libtbb_debug.dylib concurrent_hash_map.o concurrent_queue.o concurrent_vector.o dynamic_link.o itt_notify.o cache_aligned_allocator.o pipeline.o queuing_mutex.o queuing_rw_mutex.o reader_writer_lock.o spin_rw_mutex.o spin_mutex.o critical_section.o task.o tbb_misc.o tbb_misc_ex.o mutex.o recursive_mutex.o condition_variable.o tbb_thread.o concurrent_monitor.o semaphore.o private_server.o rml_tbb.o task_group_context.o governor.o market.o arena.o scheduler.o observer_proxy.o tbb_statistics.o tbb_main.o concurrent_vector_v2.o concurrent_queue_v2.o spin_rw_mutex_v2.o task_v2.o -ldl -lpthread -dynamiclib -m64 -Wl,-exported_symbols_list,tbb.def
brew: superenv removed: -m64
Undefined symbols for architecture x86_64:
"vtable for tbb::tbb_exception", referenced from:
-exported_symbol[s_list] command line option
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libtbb_debug.dylib] Error 1
make: *** [tbb] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 1da2d5dd92dbe9baf7d6e047bcb7f39f06e9c52e
CPU: quad-core 64-bit sandybridge
OS X: 10.8.2-x86_64
Xcode: 4.6
CLT: 4.6.0.0.1.1358221012
X11: 2.7.4 => /opt/X11
==> ENV
CC: cc
CXX: c++
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/mountain_lion
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/python/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: tbb did not build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment