MantisBT - CMake
View Issue Details
0015860CMakeModulespublic2015-11-24 23:552016-05-02 08:30
Yubin Lim 
 
highmajoralways
closedsuspended 
LinuxCentOS6.6
CMake 3.4 
 
0015860: FindBoost module return fails
My CentOS 6.6 with SCL/devtoolset-3 machine, FindBoost module return this error always.

CMake Error at /usr/lib64/boost/Boost.cmake:536 (message):
  The imported target "boost_date_time-static" references the file

     "/usr/lib64/lib64/libboost_date_time.a"

  but this file does not exist. Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/boost/Boost.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/boost/BoostConfig.cmake:28 (include)
  /usr/share/cmake-3.4/Modules/FindBoost.cmake:210 (find_package)
  src/pw/_check/CMakeLists.txt:302 (include)


-- Configuring incomplete, errors occurred!
See also "/home/purewell/git/libpw.centos6/build/CMakeFiles/CMakeOutput.log".
See also "/home/purewell/git/libpw.centos6/build/CMakeFiles/CMakeError.log".
make: *** [unix] Error 1

1. yum install scl, devtoolset-3, boost(1.41 official of CentOS6.6)

2. make CMakeLists.txt
=====
cmake_minimum_required(VERSION 3.4)
find_package(Boost 1.41 REQUIRED regex)
=====

3. run "scl enable devtoolset-3 bash"

4. cmake .
No tags attached.
Issue History
2015-11-24 23:55Yubin LimNew Issue
2015-11-24 23:57Yubin LimNote Added: 0039908
2015-11-26 01:11Orion PoplawskiNote Added: 0039911
2015-11-30 09:28Brad KingStatusnew => resolved
2015-11-30 09:28Brad KingResolutionopen => suspended
2016-05-02 08:30Robert MaynardNote Added: 0040971
2016-05-02 08:30Robert MaynardStatusresolved => closed

Notes
(0039908)
Yubin Lim   
2015-11-24 23:57   
$ export
declare -x CVS_RSH="ssh"
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTCONTROL="ignoreboth"
declare -x HISTSIZE="1000"
declare -x HOME="/home/purewell"
declare -x HOSTNAME="e9c63b28a32c"
declare -x INFOPATH="/opt/rh/devtoolset-3/root/usr/share/info"
declare -x JAVACONFDIRS="/opt/rh/devtoolset-3/root/etc/java:/etc/java"
declare -x LANG="en_US.UTF-8"
declare -x LD_LIBRARY_PATH="/opt/rh/devtoolset-3/root/usr/lib64:/opt/rh/devtoolset-3/root/usr/lib"
declare -x LESSOPEN="||/usr/bin/lesspipe.sh %s"
declare -x LOADEDMODULES=""
declare -x LOGNAME="purewell"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/spool/mail/purewell"
declare -x MANPATH="/opt/rh/devtoolset-3/root/usr/share/man:"
declare -x MODULEPATH="/usr/share/Modules/modulefiles:/etc/modulefiles"
declare -x MODULESHOME="/usr/share/Modules"
declare -x OLDPWD="/home/purewell/tmp"
declare -x PATH="/opt/rh/devtoolset-3/root/usr/bin:/home/purewell/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin"
declare -x PCP_DIR="/opt/rh/devtoolset-3/root"
declare -x PERL5LIB="/opt/rh/devtoolset-3/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-3/root/usr/lib/perl5:/opt/rh/devtoolset-3/root//usr/share/perl5/vendor_perl"
declare -x PWD="/home/purewell/tmp/boost"
declare -x PYTHONPATH="/opt/rh/devtoolset-3/root/usr/lib64/python2.6/site-packages:/opt/rh/devtoolset-3/root/usr/lib/python2.6/site-packages"
declare -x SELECTED_EDITOR="/usr/bin/vim"
declare -x SHELL="/bin/bash"
declare -x SHLVL="5"
declare -x TERM="xterm"
declare -x USER="purewell"
declare -x XDG_CONFIG_DIRS="/opt/rh/devtoolset-3/root/etc/xdg:/etc/xdg"
declare -x XDG_DATA_DIRS="/opt/rh/devtoolset-3/root/usr/share:/usr/local/share:/usr/share"
declare -x X_SCLS="devtoolset-3 "
declare -x apt_instlist
declare -x apt_list
(0039911)
Orion Poplawski   
2015-11-26 01:11   
This is a long-standing problem with boost shipped by RHEL. Not a cmake issue. See https://bugzilla.redhat.com/show_bug.cgi?id=849791 [^]
(0040971)
Robert Maynard   
2016-05-02 08:30   
Closing resolved issues that have not been updated in more than 4 months.