Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280765 - dev-python/matplotlib-0.99.0: Fails to compile with gcc-4.3.4
Summary: dev-python/matplotlib-0.99.0: Fails to compile with gcc-4.3.4
Status: RESOLVED DUPLICATE of bug 280732
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on: 280732
Blocks:
  Show dependency tree
 
Reported: 2009-08-08 15:08 UTC by Eric N. Vander Weele
Modified: 2011-10-30 23:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric N. Vander Weele 2009-08-08 15:08:49 UTC
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.
Comment 1 Horace Ip 2009-08-08 15:18:58 UTC
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 ...?!
Comment 2 Horace Ip 2009-08-08 15:20:53 UTC
the real problem is bug 280732
Comment 3 Eric N. Vander Weele 2009-08-08 15:25:28 UTC
I'll try the fix in bug 280732 to confirm.
Comment 4 Eric N. Vander Weele 2009-08-08 15:33:20 UTC
(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.
Comment 5 Eric N. Vander Weele 2009-08-08 15:56:35 UTC
I posted a patch to bug 280732 to resolve the problem.

*** This bug has been marked as a duplicate of bug 280732 ***