Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758170 - media-gfx/blender-2.91.0 - pyconfig.h: No such file or directory
Summary: media-gfx/blender-2.91.0 - pyconfig.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-03 04:38 UTC by Einstok Fair
Modified: 2021-06-16 22:47 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,96.84 KB, application/x-xz)
2020-12-03 04:41 UTC, Einstok Fair
Details
environment.xz (environment.xz,35.44 KB, application/x-xz)
2020-12-03 04:42 UTC, Einstok Fair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Einstok Fair 2020-12-03 04:38:18 UTC
In file included from /usr/include/boost/python/detail/prefix.hpp:13,
                 from /usr/include/boost/python/object_fwd.hpp:8,
                 from /usr/local/include/pxr/base/tf/pyObjWrapper.h:32,
                 from /usr/local/include/pxr/base/vt/value.h:32,
                 from /usr/local/include/pxr/base/vt/dictionary.h:31,
                 from /usr/local/include/pxr/usd/sdf/types.h:65,
                 from /usr/local/include/pxr/usd/pcp/site.h:31,
                 from /usr/local/include/pxr/usd/pcp/types.h:29,
                 from /usr/local/include/pxr/usd/pcp/node.h:29,
                 from /usr/local/include/pxr/usd/usd/editTarget.h:31,
                 from /usr/local/include/pxr/usd/usd/stage.h:32,
                 from /var/tmp/portage/media-gfx/blender-2.91.0/work/blender-2.91.0/source/blender/io/usd/intern/usd_capi.cc:25:
/usr/include/boost/python/detail/wrap_python.hpp:57:11: fatal error: pyconfig.h: No such file or directory
   57 | # include <pyconfig.h>
      |           ^~~~~~~~~~~~
compilation terminated.

see also https://bugs.gentoo.org/578354

Reproducible: Always
Comment 1 Einstok Fair 2020-12-03 04:41:06 UTC
Created attachment 676378 [details]
build.log.xz
Comment 2 Einstok Fair 2020-12-03 04:42:30 UTC
Created attachment 676381 [details]
environment.xz
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-03 04:43:18 UTC
The build system seems to be picking up garbage from /usr/local (this is why it’s a bad place to use for local things, unfortunately). I think we hit this before and it’s why we disabled the Python bindings?

I’ll have to check.
Comment 4 Einstok Fair 2020-12-03 05:41:36 UTC
# find / -iname "pyconfig.h" 2>/dev/null
/usr/include/python3.8/pyconfig.h
/usr/include/python3.6m/pyconfig.h
/usr/include/python3.7m/pyconfig.h
/usr/include/python2.7/pyconfig.h
/usr/include/python3.9/pyconfig.h
Comment 5 Einstok Fair 2020-12-03 07:52:20 UTC
# python -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())'
/usr/include/python3.8
Comment 6 Einstok Fair 2020-12-03 19:00:53 UTC
this error occurs only with USE="usd"
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-16 22:47:36 UTC
Fixed already in https://github.com/gentoo/gentoo/pull/20565.

See the work in: 
bug 795003
bug 778008
bug 774372
bug 673422
bug 737388