Fedora Linux Support Community & Resources Center
  #1  
Old 22nd August 2012, 05:37 PM
cyborg Offline
Registered User
 
Join Date: Apr 2004
Location: Brackley, England
Age: 23
Posts: 203
linuxfirefox
GCC error when building matplotlib

Not sure if this is an issue with an out-of-date GCC or if something else is wrong. I've got 1.1.0 on no problem. I've raised with the matplotlib mailing list, but just wondering if anyone recognizes the GCC error (it's annoying that it always exits with status 1 if there's an issue).

Code:
$python setup.py build
...
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/software/Python/272/lib/python2.7/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/software/Python/272/include/python2.7 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.7/src/ft2font.o
In file included from /software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:7,
                 from /software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from src/ft2font.cpp:7:
/software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:120:2: error: #error npy_cdouble definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform
/software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:127:2: error: #error npy_cfloat definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform
/software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:134:2: error: #error npy_clongdouble definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform
In file included from /software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:26,
                 from /software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from src/ft2font.cpp:7:
/software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h: In function 'int _import_array()':
/software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1226: error: 'NPY_ABI_VERSION' was not declared in this scope
/software/Python/272/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1232: error: 'NPY_API_VERSION' was not declared in this scope
error: command 'gcc' failed with exit status 1

$ gcc --version
gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
__________________
[joe@host]
Reply With Quote
  #2  
Old 23rd August 2012, 07:03 AM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 56
Posts: 12,371
linuxfirefox
Re: GCC error when building matplotlib

Code:
$ python setup.py build
basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.1.0
                python: 2.7.3 (default, Jul 24 2012, 10:05:38)  [GCC 4.7.0
                        20120507 (Red Hat 4.7.0-5)]
              platform: linux2

REQUIRED DEPENDENCIES
                 numpy: no
                        * You must install numpy 1.1 or later to build
                        * matplotlib.
[Seve@larissa matplotlib-1.1.0]$ python setup.py build
basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.1.0
                python: 2.7.3 (default, Jul 24 2012, 10:05:38)  [GCC 4.7.0
                        20120507 (Red Hat 4.7.0-5)]
              platform: linux2

REQUIRED DEPENDENCIES
                 numpy: 1.6.2
             freetype2: 14.0.8

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.5.10
               Tkinter: no
                        * Using default library and include directories for
                        * Tcl and Tk because a Tk window failed to open.
                        * You may need to define DISPLAY for Tk to work so
                        * that setup can determine where your libraries are
                        * located. Tkinter present, but header files are not
                        * found. You may need to install development
                        * packages.
            pkg-config: looking for pygtk-2.0 gtk+-2.0
                        * Package pygtk-2.0 was not found in the pkg-config
                        * search path. Perhaps you should add the directory
                        * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
                        * environment variable No package 'pygtk-2.0' found
                        * You may need to install 'dev' package(s) to
                        * provide header files.
                  Gtk+: no
                        * Could not find Gtk+ headers in any of
                        * '/usr/local/include', '/usr/include', '.'
       Mac OS X native: no
                    Qt: no
                   Qt4: no
                 Cairo: 1.8.10

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: 1.5
                  pytz: 2010h

OPTIONAL USETEX DEPENDENCIES
                dvipng: 1.14
           ghostscript: 9.05
                 latex: no
               pdftops: 0.18.4
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
Code:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.0/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.0 20120507 (Red Hat 4.7.0-5) (GCC)
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
Reply

Tags
building, error, gcc, matplotlib, python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
An error when building rpm youhaodeyi Using Fedora 0 23rd September 2008 10:59 AM
Error when building driver. shack Installation, Upgrades and Live Media 3 25th December 2006 06:00 PM
error building tcl/tk? chy1013m1 Using Fedora 2 8th December 2005 11:43 PM


Current GMT-time: 11:23 (Monday, 20-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Kuala Lumpur Travel Photos - Minnetonka Photos on Instagram - Xinglongshan Travel Photos