jjallaire / TBB

Intel TBB Package for R/Rcpp
13 stars 3 forks source link

Error: Package 'TBB' referenced from Rcpp::depends in source file TBBTest.cpp is not available. #1

Closed mattdowle closed 8 years ago

mattdowle commented 8 years ago

Much like TBB and it's working well now. For completeness just letting you know an error message I saw on install and what the workaround was. Starting with a fresh R session on a server which hasn't seen Rcpp, Rcpp or TBB before, here is a full output log ending with an error message at the end. If I do devtools::install_github("jjallaire/TBB") then it works fine after that. I believe from Dirk that TBB is included in RccParallel and I shouldn't need to install_github as well? Thanks, Matt

mattd@mr-0xd1:~$ R

R version 3.2.5 (2016-04-14) -- "Very, Very Secure Dishes" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

install.packages("RcppParallel", repos="http://cran.cnr.Berkeley.edu/") Installing package into ‘/home/mattd/R/x86_64-pc-linux-gnu-library/3.2’ (as ‘lib’ is unspecified) trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/RcppParallel_4.3.19.tar.gz'

Content type 'application/x-gzip' length 1560737 bytes (1.5 MB)

downloaded 1.5 MB

  • installing source package ‘RcppParallel’ ... * package ‘RcppParallel’ successfully unpacked and MD5 sums checked * libs mkdir -p ../inst/lib/; \ cd tbb/src; \ if [ -n "" ]; then \ make cpp0x=1 compiler=clang CXXFLAGS=-DTBB_NO_LEGACY=1 tbb_release tbbmalloc_release tbb_build_prefix=lib; \ elif [ -n "gcc -std=gnu99" ]; then \ make cpp0x=1 compiler=gcc CXXFLAGS=-DTBB_NO_LEGACY=1 tbb_release tbbmalloc_release tbb_build_prefix=lib; \ else \ make cpp0x=1 CXXFLAGS=-DTBB_NO_LEGACY=1 tbb_release tbbmalloc_release tbb_build_prefix=lib; \ fi; \ cd ../..; \ cp tbb/build/librelease/libtbb._ ../inst/lib/ make[1]: Entering directory /tmp/RtmpDpTbXI/R.INSTALL428650c8f179/RcppParallel/src/tbb/src' Created ../build/lib_release directory make -C "../build/lib_release" -r -f ../../build/Makefile.tbb cfg=release make[2]: Entering directory/tmp/RtmpDpTbXI/R.INSTALL428650c8f179/RcppParallel/src/tbb/build/lib_release' ../../build/Makefile.tbb:31: CONFIG: cfg=release arch=intel64 compiler=gcc target=linux runtime=cc4.6_libc2.15_kernel3.13.0 g++ -o concurrent_hash_map.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp g++ -o concurrent_queue.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp g++ -o concurrent_vector.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_vector.cpp g++ -o dynamic_link.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/dynamic_link.cpp g++ -o itt_notify.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp g++ -o cache_aligned_allocator.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/cache_aligned_allocator.cpp g++ -o pipeline.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/pipeline.cpp In file included from ../../src/tbb/pipeline.cpp:21:0: ../../include/tbb/pipeline.h:328:74: warning: ‘template struct std::has_trivial_copy_constructor’ is deprecated [-Wdeprecated-declarations] template struct tbb_trivially_copyable { enum { value = std::has_trivial_copy_constructor::value }; }; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/memory:62, from ../../include/tbb/tbb_stddef.h:420, from ../../include/tbb/tbb_machine.h:117, from ../../include/tbb/atomic.h:32, from ../../include/tbb/pipeline.h:24, from ../../src/tbb/pipeline.cpp:21: /usr/include/c++/5/type_traits:1389:12: note: declared here struct has_trivial_copy_constructor ^ g++ -o queuing_mutex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_mutex.cpp g++ -o queuing_rw_mutex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_rw_mutex.cpp g++ -o reader_writer_lock.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/reader_writer_lock.cpp g++ -o spin_rw_mutex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_rw_mutex.cpp g++ -o x86_rtm_rw_mutex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/x86_rtm_rw_mutex.cpp g++ -o spin_mutex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_mutex.cpp g++ -o critical_section.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/critical_section.cpp g++ -o mutex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/mutex.cpp g++ -o recursive_mutex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/recursive_mutex.cpp g++ -o condition_variable.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/condition_variable.cpp g++ -o tbb_thread.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_thread.cpp g++ -o concurrent_monitor.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_monitor.cpp g++ -o semaphore.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/semaphore.cpp g++ -o private_server.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/private_server.cpp g++ -o rml_tbb.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/rml/client/rml_tbb.cpp sh ../../build/version_info_linux.sh g++ -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include -I. >version_string.ver g++ -o tbb_misc.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include -I. ../../src/tbb/tbb_misc.cpp g++ -o tbb_misc_ex.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc_ex.cpp g++ -o task.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task.cpp g++ -o task_group_context.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task_group_context.cpp g++ -o governor.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/governor.cpp g++ -o market.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/market.cpp g++ -o arena.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/arena.cpp g++ -o scheduler.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/scheduler.cpp g++ -o observer_proxy.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/observer_proxy.cpp g++ -o tbb_statistics.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_statistics.cpp g++ -o tbb_main.o -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -std=c++0x -D_TBB_CPP0X -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_main.cpp sh ../../build/generate_tbbvars.sh echo "INPUT (libtbb.so.2)" > libtbb.so g++ -E -x c++ ../../src/tbb/lin64-tbb-export.def -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -fPIC -DTBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor -DTBB_NO_LEGACY=1 -I../../src -I../../src/rml/include -I../../include > tbb.def g++ -fPIC -o libtbb.so.2 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 x86_rtm_rw_mutex.o spin_mutex.o critical_section.o mutex.o recursive_mutex.o condition_variable.o tbb_thread.o concurrent_monitor.o semaphore.o private_server.o rml_tbb.o tbb_misc.o tbb_misc_ex.o task.o task_group_context.o governor.o market.o arena.o scheduler.o observer_proxy.o tbb_statistics.o tbb_main.o -ldl -lpthread -lrt -shared -Wl,-soname=libtbb.so.2 -m64 -Wl,--version-script,tbb.def make[2]: Leaving directory /tmp/RtmpDpTbXI/R.INSTALL428650c8f179/RcppParallel/src/tbb/build/lib_release' make -C "../build/lib_release" -r -f ../../build/Makefile.tbbmalloc cfg=release malloc make[2]: Entering directory/tmp/RtmpDpTbXI/R.INSTALL428650c8f179/RcppParallel/src/tbb/build/lib_release' g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -DTBB_NO_LEGACY=1 -fno-rtti -fno-exceptions -DTBBMALLOC_BUILD=1 -Wno-parentheses -Wno-non-virtual-dtor -fPIC -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc ../../src/tbbmalloc/backend.cpp g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -DTBB_NO_LEGACY=1 -fno-rtti -fno-exceptions -DTBBMALLOC_BUILD=1 -Wno-parentheses -Wno-non-virtual-dtor -fPIC -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc ../../src/tbbmalloc/large_objects.cpp g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -DTBB_NO_LEGACY=1 -fno-rtti -fno-exceptions -DTBBMALLOC_BUILD=1 -Wno-parentheses -Wno-non-virtual-dtor -fPIC -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc ../../src/tbbmalloc/backref.cpp g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -DTBB_NO_LEGACY=1 -fno-rtti -fno-exceptions -DTBBMALLOC_BUILD=1 -Wno-parentheses -Wno-non-virtual-dtor -fPIC -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc ../../src/tbbmalloc/tbbmalloc.cpp g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -DTBB_NO_LEGACY=1 -fno-rtti -fno-exceptions -DTBBMALLOC_BUILD=1 -Wno-parentheses -Wno-non-virtual-dtor -fPIC -o itt_notify_malloc.o -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -DTBB_NO_LEGACY=1 -fno-rtti -fno-exceptions -DTBBMALLOC_BUILD=1 -Wno-parentheses -Wno-non-virtual-dtor -fPIC -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc -I. ../../src/tbbmalloc/frontend.cpp echo "INPUT (libtbbmalloc.so.2)" > libtbbmalloc.so g++ -E -x c++ ../../src/tbbmalloc/lin64-tbbmalloc-export.def -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -DTBB_NO_LEGACY=1 -fno-rtti -fno-exceptions -DTBBMALLOC_BUILD=1 -I../../src -I../../src/rml/include -I../../include > tbbmalloc.def gcc -fPIC -o libtbbmalloc.so.2 backend.o large_objects.o backref.o tbbmalloc.o itt_notify_malloc.o frontend.o -ldl -lpthread -lrt -shared -Wl,-soname=libtbbmalloc.so.2 -m64 -Wl,--version-script,tbbmalloc.def g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -Wall -DTBB_NO_LEGACY=1 -fPIC -DTBBMALLOC_BUILD=1 -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc ../../src/tbbmalloc/proxy.cpp g++ -c -MMD -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -Wall -DTBB_NO_LEGACY=1 -fPIC -DTBBMALLOC_BUILD=1 -I../../src -I../../src/rml/include -I../../include -I../../src/tbbmalloc -I../../src/tbbmalloc ../../src/tbbmalloc/tbb_function_replacement.cpp echo "INPUT (libtbbmalloc_proxy.so.2)" > libtbbmalloc_proxy.so g++ -E -x c++ ../../src/tbbmalloc/lin64-proxy-export.def -DDO_ITT_NOTIFY -g -O2 -DUSE_PTHREAD -m64 -Wall -DTBB_NO_LEGACY=1 -I../../src -I../../src/rml/include -I../../include > tbbmallocproxy.def g++ -fPIC -o libtbbmalloc_proxy.so.2 proxy.o tbb_function_replacement.o -ldl -lpthread -lrt libtbbmalloc.so -shared -Wl,-soname=libtbbmalloc_proxy.so.2 -m64 -Wl,--version-script,tbbmallocproxy.def make[2]: Leaving directory /tmp/RtmpDpTbXI/R.INSTALL428650c8f179/RcppParallel/src/tbb/build/lib_release' make[1]: Leaving directory/tmp/RtmpDpTbXI/R.INSTALL428650c8f179/RcppParallel/src/tbb/src' g++ -I/usr/share/R/include -DNDEBUG -std=c++0x -I../inst/include/ -DRCPP_PARALLEL_USE_TBB=1 -I"/usr/local/lib/R/site-library/BH/include" -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c options.cpp -o options.o In file included from ../inst/include/tbb/tbb.h:65:0, from ../inst/include/RcppParallel/TBB.h:6, from ../inst/include/RcppParallel.h:22, from options.cpp:2: ../inst/include/tbb/pipeline.h:328:74: warning: ‘template struct std::has_trivial_copy_constructor’ is deprecated [-Wdeprecated-declarations] template struct tbb_trivially_copyable { enum { value = std::has_trivial_copy_constructor::value }; }; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from ../inst/include/tthread/tinythread.h:88, from ../inst/include/RcppParallel/TinyThread.h:8, from ../inst/include/RcppParallel.h:6, from options.cpp:2: /usr/include/c++/5/type_traits:1389:12: note: declared here struct has_trivial_copy_constructor ^ g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RcppParallel.so options.o -L/usr/lib/R/lib -lR installing to /home/mattd/R/x86_64-pc-linux-gnu-library/3.2/RcppParallel/libs * R * inst * preparing package for lazy loading * help ** installing help indices * building package indices \ testing if installed package can be loaded
  • DONE (RcppParallel)

The downloaded source packages are in ‘/tmp/RtmpN79uwt/downloaded_packages’

require(RcppParallel) Loading required package: RcppParallel require(Rcpp) Loading required package: Rcpp

Attaching package: ‘Rcpp’

The following object is masked from ‘package:RcppParallel’:

LdFlags

sourceCpp("~/TBBTest.cpp") Error: Package 'TBB' referenced from Rcpp::depends in source file TBBTest.cpp is not available.

mattdowle commented 8 years ago

Wrong repo. Opened in RcppParallel instead.

jjallaire commented 8 years ago

This repo got moved to the RcppCore organization here: https://github.com/RcppCore/RcppParallel

There is no more TBB package so hopefully the new repo doesn't have this problem (btw you can install from CRAN as well, it's currently the same bits as the RcppParallel master branch).

See also some docs on using in packages, linking, etc. here: http://rcppcore.github.io/RcppParallel/