boost compilation error

Issue #66 resolved
skaluzka created an issue

hi,

I'm facing below compilation errors after your last commit...

gcc.compile.c++ bin.v2/libs/python/build/gcc-4.9.1/release/link-static/threading-multi/numeric.o
In file included from ./boost/python/detail/prefix.hpp:13:0,
                 from ./boost/python/numeric.hpp:8,
                 from libs/python/src/numeric.cpp:6:
./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
 # include <pyconfig.h>
                       ^
compilation terminated.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_WAVE_SUPPORT_MS_EXTENSIONS=1  -w  -w -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG  -I"." -I"/usr/include/python3.4" -c -o "bin.v2/libs/python/build/gcc-4.9.1/release/link-static/threading-multi/numeric.o" "libs/python/src/numeric.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.9.1/release/link-static/threading-multi/numeric.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.9.1/release/link-static/threading-multi/list.o
In file included from ./boost/python/detail/prefix.hpp:13:0,
                 from ./boost/python/list.hpp:8,
                 from libs/python/src/list.cpp:5:
./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
 # include <pyconfig.h>
                       ^
compilation terminated.

...

but pyconfig.h is available in my system:

[kaluzka@CNU3099HPJ include]$ find . -name pyconfig.h -type f
./python2.7/pyconfig.h
./python3.4m/pyconfig.h
[kaluzka@CNU3099HPJ include]$ 

I'm using arch linux where default python is python3 (maybe that's the issue). do you know how to fix it?

Comments (7)

  1. Gaëtan Lehmann

    Hi,

    I suppose we have to pass the python path to build boost. In the mean time, you can use the system boost, as it was done before, by setting the cmake option VERA_USE_SYSTEM_BOOST to ON.

  2. skaluzka reporter

    thanks for reply and clarifications. I confirm, it's enough to change src/boost.cmake file as below:

    -  option(VERA_USE_SYSTEM_BOOST "Build boost" OFF)
    +  option(VERA_USE_SYSTEM_BOOST "Build boost" ON)
    
  3. Gaëtan Lehmann

    Could you test with this last change? I think it should help, but have no arch linux to test.

  4. Log in to comment