After an upgrade to gcc-4.3.4: i686-pc-linux-gnu-gcc -pthread -DNDEBUG -O2 -march=prescott -pipe -fPIC -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/lib/python2.6/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/include -I. -I/usr/include/python2.6 -c src/ft2font.cpp -o build/temp.linux-i686-2.6/src/ft2font.o In file included from src/ft2font.h:4, from src/ft2font.cpp:1: /usr/include/python2.6/CXX/Extensions.hxx:50:34: error: CXX/Python2/Config.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:51:36: error: CXX/Python2/CxxDebug.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:52:35: error: CXX/Python2/Objects.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:182:43: error: CXX/Python2/ExtensionModule.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:183:38: error: CXX/Python2/PythonType.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:184:45: error: CXX/Python2/ExtensionTypeBase.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:185:44: error: CXX/Python2/ExtensionOldType.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:186:41: error: CXX/Python2/ExtensionType.hxx: No such file or directory In file included from src/ft2font.h:4, from src/ft2font.cpp:1: /usr/include/python2.6/CXX/Extensions.hxx:67: error: expected class-name before '{' token /usr/include/python2.6/CXX/Extensions.hxx:73: error: expected unqualified-id before '&' token /usr/include/python2.6/CXX/Extensions.hxx:73: error: expected ',' or '...' before '&' token /usr/include/python2.6/CXX/Extensions.hxx:74: error: expected unqualified-id before '&' token /usr/include/python2.6/CXX/Extensions.hxx:74: error: expected ',' or '...' before '&' token /usr/include/python2.6/CXX/Extensions.hxx:74: error: 'void Py::ExtensionExceptionType::init(Py::ExtensionModuleBase&)' cannot be overloaded /usr/include/python2.6/CXX/Extensions.hxx:73: error: with 'void Py::ExtensionExceptionType::init(Py::ExtensionModuleBase&)' /usr/include/python2.6/CXX/Extensions.hxx:110: error: expected identifier before '*' token /usr/include/python2.6/CXX/Extensions.hxx:110: error: ISO C++ forbids declaration of 'Object' with no type /usr/include/python2.6/CXX/Extensions.hxx:110: error: 'Object' declared as function returning a function /usr/include/python2.6/CXX/Extensions.hxx:111: error: expected ',' or '...' before '&' token /usr/include/python2.6/CXX/Extensions.hxx:111: error: 'method_varargs_function_t' declared as function returning a function /usr/include/python2.6/CXX/Extensions.hxx:111: error: ISO C++ forbids declaration of 'Tuple' with no type /usr/include/python2.6/CXX/Extensions.hxx:112: error: expected ',' or '...' before '&' token /usr/include/python2.6/CXX/Extensions.hxx:112: error: 'method_keyword_function_t' declared as function returning a function /usr/include/python2.6/CXX/Extensions.hxx:112: error: ISO C++ forbids declaration of 'Tuple' with no type /usr/include/python2.6/CXX/Extensions.hxx:118: error: 'method_noargs_function_t' has not been declared /usr/include/python2.6/CXX/Extensions.hxx:175: error: 'method_noargs_function_t' does not name a type /usr/include/python2.6/CXX/Extensions.hxx: In constructor 'Py::MethodDefExt<T>::MethodDefExt(const char*, int, PyObject* (*)(PyObject*, PyObject*), const char*)': /usr/include/python2.6/CXX/Extensions.hxx:128: error: 'ext_noargs_function' was not declared in this scope /usr/include/python2.6/CXX/Extensions.hxx: In constructor 'Py::MethodDefExt<T>::MethodDefExt(const char*, int (T::*)(int), PyObject* (*)(PyObject*, PyObject*), const char*)': /usr/include/python2.6/CXX/Extensions.hxx:147: error: 'ext_noargs_function' was not declared in this scope /usr/include/python2.6/CXX/Extensions.hxx: In constructor 'Py::MethodDefExt<T>::MethodDefExt(const char*, int (T::*)(int), PyObject* (*)(PyObject*, PyObject*, PyObject*), const char*)': /usr/include/python2.6/CXX/Extensions.hxx:166: error: 'ext_noargs_function' was not declared in this scope In file included from src/ft2font.cpp:1: src/ft2font.h: At global scope: src/ft2font.h:23: error: expected template-name before '<' token src/ft2font.h:23: error: expected `{' before '<' token src/ft2font.h:23: error: expected unqualified-id before '<' token error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 * * ERROR: dev-python/matplotlib-0.99.0 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3008: Called distutils_src_compile * environment, line 776: Called die * The specific snippet of code: * ${python} setup.py build "$@" || die "compilation failed"; * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/matplotlib-0.99.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/matplotlib-0.99.0/temp/environment Reproducible: Always Steps to Reproduce: 1. Have gcc-4.3.4 installed. 2. Emerge matplotlib-0.99.0 Actual Results: Emerge build fails. I am looking into rolling back my GCC version to see if that works.
I think the problem is not on GCC .... but the new pycxx installs header files in a different place ... they're now in /usr/include/python2.6/CXX/ but the #includes specifies something Python2 and Python3 ... pycxx seems to be broken ...?!
the real problem is bug 280732
I'll try the fix in bug 280732 to confirm.
(In reply to comment #3) > I'll try the fix in bug 280732 to confirm. > The sed one-liner mentioned in bug 280732 resolves the problem.
I posted a patch to bug 280732 to resolve the problem. *** This bug has been marked as a duplicate of bug 280732 ***