Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421355 - dev-libs/boost-1.49.0-r1 fails to compile with USE=python on prefix
Summary: dev-libs/boost-1.49.0-r1 fails to compile with USE=python on prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-16 10:43 UTC by MATSUI Tetsushi
Modified: 2012-07-13 13:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild diff (boost-1.49.0-r1.ebuild.diff,549 bytes, text/plain)
2012-06-16 10:43 UTC, MATSUI Tetsushi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2012-06-16 10:43:34 UTC
Created attachment 315485 [details]
ebuild diff

With USE=python, dev-libs/boost-1.49.0-r1 fails to compile on prefix.
A part of the log indicates the reason:

    "i686-apple-darwin10-g++"  -ftemplate-depth-128 -O2 -march=nocona -pipe -finline-functions -Wno-inline -Wall -dynamic -no-cpp-precomp -gdwarf-2 -fexceptions -fPIC -fno-strict-aliasing -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/darwin-4.2.1/gentoorelease/boost.locale.icu-off/pch-off/numeric.o" "libs/python/src/numeric.cpp"

./boost/python/detail/prefix.hpp:13 から include されたファイル中,
                 ./boost/python/numeric.hpp:8 から,
                 libs/python/src/numeric.cpp:6 から:
./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
./boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory
./boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python.
./boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No such file or directory

The include directory for python is /usr/include/python2.7 instead of desired ${EPREFIX}usr/include/python2.7.

The attachment is a possible patch against the ebuild changing just one line.
Comment 1 Benda Xu gentoo-dev 2012-07-13 12:40:52 UTC
reproduced this on ~amd64-linux
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-07-13 13:01:14 UTC
applied, thanks MATSUI