devel/boost build failure

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

devel/boost build failure

Christian Weisgerber
During my latest amd64 bulk build, devel/boost failed to build
because it couldn't find <pyconfig.h>.  I assume this is a race
condition, hidden dependency, or some such, since boost built fine
before.  Any ideas?

Here's the tail end of the build:

------------------------------------------------------------------------
    "ranlib" "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/libboost_python3.a"

common.copy stage/lib/libboost_python3.a

    cp "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/libboost_python3.a"  "stage/lib/libboost_python3.a"

clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/dtype.o

  "clang++" -c -x c++ -O2 -pipe   -pthread -O2 -pipe   -pthread -O3 -Wno-inline -Wall -m64 -O2 -pipe   -pthread -O2 -pipe   -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_NUMPY_SOURCE -DBOOST_NUMPY_STATIC_LIB -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python3.7" -I"/usr/local/lib/python3.7/site-packages/numpy/core/include" -o "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/dtype.o" "libs/python/src/numpy/dtype.cpp"

In file included from libs/python/src/numpy/dtype.cpp:11:
In file included from ./boost/python/numpy/internal.hpp:17:
In file included from ./boost/python.hpp:11:
In file included from ./boost/python/args.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found
# include <pyconfig.h>
          ^~~~~~~~~~~~
1 error generated.
clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/matrix.o

  "clang++" -c -x c++ -O2 -pipe   -pthread -O2 -pipe   -pthread -O3 -Wno-inline -Wall -m64 -O2 -pipe   -pthread -O2 -pipe   -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_NUMPY_SOURCE -DBOOST_NUMPY_STATIC_LIB -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python3.7" -I"/usr/local/lib/python3.7/site-packages/numpy/core/include" -o "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/matrix.o" "libs/python/src/numpy/matrix.cpp"

In file included from libs/python/src/numpy/matrix.cpp:8:
In file included from ./boost/python/numpy/internal.hpp:17:
In file included from ./boost/python.hpp:11:
In file included from ./boost/python/args.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found
# include <pyconfig.h>
          ^~~~~~~~~~~~
1 error generated.
...failed updating 2 targets...
*** Error 1 in devel/boost (Makefile:176 'do-build')

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: devel/boost build failure

Rafael Sadowski
On Sun Oct 27, 2019 at 09:25:36PM +0100, Christian Weisgerber wrote:

> During my latest amd64 bulk build, devel/boost failed to build
> because it couldn't find <pyconfig.h>.  I assume this is a race
> condition, hidden dependency, or some such, since boost built fine
> before.  Any ideas?
>
> Here's the tail end of the build:
>
> ------------------------------------------------------------------------
>     "ranlib" "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/libboost_python3.a"
>
> common.copy stage/lib/libboost_python3.a
>
>     cp "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/libboost_python3.a"  "stage/lib/libboost_python3.a"
>
> clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/dtype.o
>
>   "clang++" -c -x c++ -O2 -pipe   -pthread -O2 -pipe   -pthread -O3 -Wno-inline -Wall -m64 -O2 -pipe   -pthread -O2 -pipe   -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_NUMPY_SOURCE -DBOOST_NUMPY_STATIC_LIB -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python3.7" -I"/usr/local/lib/python3.7/site-packages/numpy/core/include" -o "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/dtype.o" "libs/python/src/numpy/dtype.cpp"

I tried hard to reproduce issue without luck today. I can't found this
line. But what I do know is that  -I"/usr/local/include/python3.7" is
wrong it should be  -I"/usr/local/include/python3.7m" Or do I see it
wrong?

RS

>
> In file included from libs/python/src/numpy/dtype.cpp:11:
> In file included from ./boost/python/numpy/internal.hpp:17:
> In file included from ./boost/python.hpp:11:
> In file included from ./boost/python/args.hpp:8:
> In file included from ./boost/python/detail/prefix.hpp:13:
> ./boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found
> # include <pyconfig.h>
>           ^~~~~~~~~~~~
> 1 error generated.
> clang-linux.compile.c++.without-pth bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/matrix.o
>
>   "clang++" -c -x c++ -O2 -pipe   -pthread -O2 -pipe   -pthread -O3 -Wno-inline -Wall -m64 -O2 -pipe   -pthread -O2 -pipe   -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_NUMPY_SOURCE -DBOOST_NUMPY_STATIC_LIB -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python3.7" -I"/usr/local/lib/python3.7/site-packages/numpy/core/include" -o "bin.v2/libs/python/build/clang-gnu-linux-8.0.1/release/link-static/pch-off/threadapi-pthread/numpy/matrix.o" "libs/python/src/numpy/matrix.cpp"
>
> In file included from libs/python/src/numpy/matrix.cpp:8:
> In file included from ./boost/python/numpy/internal.hpp:17:
> In file included from ./boost/python.hpp:11:
> In file included from ./boost/python/args.hpp:8:
> In file included from ./boost/python/detail/prefix.hpp:13:
> ./boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found
> # include <pyconfig.h>
>           ^~~~~~~~~~~~
> 1 error generated.
> ...failed updating 2 targets...
> *** Error 1 in devel/boost (Makefile:176 'do-build')
>
> --
> Christian "naddy" Weisgerber                          [hidden email]
>