facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.14k stars 2.99k forks source link

CMake/FindTBB.cmake and TBB 4.1 seem incompatible #662

Closed anthonybishopric closed 11 years ago

anthonybishopric commented 11 years ago

Even after I source the tbbvars file it claims it can't find the library:

[root@localhost hiphop-php]# source /vagrant/tbb41_20121003oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release/tbbvars.sh 
[root@localhost hiphop-php]# env
HOSTNAME=localhost.localdomain
TBB_INSTALL_DIR=/vagrant/tbb41_20121003oss
SHELL=/bin/bash
TERM=xterm-256color
HISTSIZE=1000
LIBRARY_PATH=/vagrant/tbb41_20121003oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release:/vagrant/tbb41_20121003oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release
HPHP_LIB=/usr/local/src/hiphop-php/bin
OLDPWD=/vagrant/tbb41_20121003oss
USER=root
LD_LIBRARY_PATH=/vagrant/tbb41_20121003oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release:/vagrant/tbb41_20121003oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lz=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.bz=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.rar=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
SUDO_USER=vagrant
SUDO_UID=500
CPATH=/vagrant/tbb41_20121003oss/include:/vagrant/tbb41_20121003oss/include
USERNAME=root
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAIL=/var/spool/mail/vagrant
TBBROOT=/vagrant/tbb41_20121003oss
PWD=/usr/local/src/hiphop-php
HPHP_HOME=/usr/local/src/hiphop-php
LANG=en_US.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/su
HOME=/root
LOGNAME=root
LESSOPEN=|/usr/bin/lesspipe.sh %s
SUDO_GID=500
G_BROKEN_FILENAMES=1
_=/bin/env
[root@localhost hiphop-php]# cmake .
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include  library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
-- Found libevent: /usr/local/lib/libevent.so
-- Found GD: /usr/lib64/libgd.so
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Can't find minimal tcmalloc
-- [Warning] FindTBB.cmake: The use of TBB_ARCHITECTURE and TBB_COMPILER is deprecated and may not be supported in future versions. Please set  (using tbbvars.[bat|csh|sh]).
ERROR: Intel TBB NOT found!
-- Looked for Threading Building Blocks in /vagrant/tbb41_20121003oss
CMake Error at CMake/FindTBB.cmake:202 (message):
  Could NOT find TBB library.
Call Stack (most recent call first):
  CMake/HPHPFindLibs.cmake:228 (find_package)
  CMake/HPHPSetup.cmake:46 (include)
  src/CMakeLists.txt:18 (include)

-- Configuring incomplete, errors occurred!

I've tried removing the CMakeCache.txt too and that doesn't help.

jackywei commented 11 years ago

you could use tbb40_20120613oss_src.tgz, and using this script to install, https://github.com/jackywei/HOW-TO-BUILD-HHVM-WiKi/blob/master/CentOS6.3_HHVM/buildhhvm/8_tbb.sh

anthonybishopric commented 11 years ago

Thanks for the quick help! I'm on SL6 instead of CentOS but I'll give it a shot and post again in a bit.

anthonybishopric commented 11 years ago

That worked, thanks!