YCM-Generator icon indicating copy to clipboard operation
YCM-Generator copied to clipboard

Boost not found

Open daedric opened this issue 9 years ago • 7 comments

Hi, It seems there is a bug when looking for boost. When I try to use config_gen.py on my project I got the issue below.

Script started on Do 25 Feb 2016 11:50:04 CET
$ ~/.vim/bundle/YCM-Generator/config_gen.py  -v .
'/home/daedric/work/perso/commonpp/.ycm_extra_conf.py' already exists. Overwrite? [y/N] y
 Running cmake in '/tmp/tmpQsNyYu'...
$ cmake /home/daedric/work/perso/commonpp
-- The C compiler identification is Clang 3.9.0
-- The CXX compiler identification is Clang 3.9.0
-- Check for working C compiler: /home/daedric/.vim/bundle/YCM-Generator/fake-toolchain/Unix/clang
-- Check for working C compiler: /home/daedric/.vim/bundle/YCM-Generator/fake-toolchain/Unix/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
-- Check for working CXX compiler: /home/daedric/.vim/bundle/YCM-Generator/fake-toolchain/Unix/clang++
-- Check for working CXX compiler: /home/daedric/.vim/bundle/YCM-Generator/fake-toolchain/Unix/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - failed
-- Setting cmake build type to 'Debug' as none was specified.
-- CMake Version        : 3.2.2
-- commonpp Version     : 0.1.1
-- Build Tests          : ON
-- Build Type           : Debug
-- System               : Linux 4.2.0-30-generic
-- Install Prefix       : /usr
-- Source Directory     : /home/daedric/work/perso/commonpp
-- C++ Compiler ID      : Clang
-- Performing Test HAVE_CPP_VERSION
-- Performing Test HAVE_CPP_VERSION - Success
-- Performing Test HAVE_NOUNUSED_LOCAL_TYPEDEF
-- Performing Test HAVE_NOUNUSED_LOCAL_TYPEDEF - Success
-- Looking for clock_getcpuclockid
-- Looking for clock_getcpuclockid - found
-- Performing Test HAVE_MAKE_UNIQUE
-- Performing Test HAVE_MAKE_UNIQUE - Failed
-- Looking for include file sys/prctl.h
-- Looking for include file sys/prctl.h - found
-- Performing Test HAVE_THREAD_LOCAL_SPECIFIER
-- Performing Test HAVE_THREAD_LOCAL_SPECIFIER - Success
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found Intel TBB
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for module 'hwloc'
--   found hwloc, version 1.11.0
CMake Error at /usr/share/cmake-3.2/Modules/FindBoost.cmake:1202 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.58.0

  Boost include path: /usr/include

  Could not find the following static Boost libraries:

          boost_unit_test_framework
          boost_log
          boost_log_setup
          boost_filesystem
          boost_thread
          boost_system

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:128 (find_package)


-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring incomplete, errors occurred!
See also "/tmp/tmpQsNyYu/CMakeFiles/CMakeOutput.log".
See also "/tmp/tmpQsNyYu/CMakeFiles/CMakeError.log".

Running make...
$ make -i -j8
make: *** No targets specified and no makefile found.  Stop.

Cleaning up...

Build completed in 1.4 sec

Collected 0 relevant entries for C compilation (0 discarded).
Collected 0 relevant entries for C++ compilation (0 discarded).
()
ERROR: No commands were logged to the build logs (C: /tmp/tmpF7lVGA, C++: /tmp/tmpDkRSie).
Your build system may not be compatible.
$ 

Script done on Do 25 Feb 2016 11:50:49 CET

Please let me know if I can be of any assistance, Cheers,

daedric avatar Feb 25 '16 10:02 daedric

Could you please include a link to your project?

rdnetto avatar Feb 29 '16 08:02 rdnetto

It was on the report :) https://github.com/daedric/commonpp

daedric avatar Feb 29 '16 08:02 daedric

Sorry, must have missed the link.

I get the same error when I run cmake against your project outside of YCM-Gen. Assuming that you can run it without problems, it's likely that there's an environment variable in your profile which is changing cmake's behaviour. Running cmake as a different user (e.g. root) should verify if this is the case.

rdnetto avatar Mar 05 '16 01:03 rdnetto

I have the some problem for boost, ` Boost version: 1.58.0

Boost include path: /usr/include

Could not find the following Boost libraries:

      boost_system
      boost_thread
      boost_filesystem

` Does any one know how to solved this problem?

tianxingyzxq avatar Jun 10 '16 02:06 tianxingyzxq

@tianxingyzxq, could you run env | grep BOOST and see if there's any output?

rdnetto avatar Jun 11 '16 10:06 rdnetto

@daedric Did you resolve this at some point? I am running into the same problem.

ayeganov avatar May 29 '17 18:05 ayeganov

Same problem here.

davidkennedydev avatar Oct 11 '18 19:10 davidkennedydev