building on python2.4 on powerpc

Hi, I'm trying to build matplotlib on an ubuntu hoary powerpc system
using python2.4, and I'm running into what seems to be some kind of
infinite loop? Basically the compiler just sits there and eats up all
my processor with no further output to the screen. I am compiling an
ubuntu package that I found, but it is matplotlib 0.73.1. I reproduced
the bug with a simple python2.4 setup.py build and it still failed in
the same way. Here is the output of that command.

scotth@...542...:~/Hacking/python-matplotlib/matplotlib-0.73.1$
python2.4 setup.py build
running build
running build_py
running build_ext
building 'matplotlib._na_transforms' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -Isrc -I. -I/usr/local/include -I/usr/include
-I/usr/include/python2.4 -c src/_na_transforms.cpp -o
build/temp.linux-ppc-2.4/src/_na_transforms.o -DNUMARRAY=1
In file included from /usr/include/python2.4/Python.h:8,
                 from CXX/Objects.hxx:9,
                 from CXX/Extensions.hxx:18,
                 from src/_transforms.h:12,
                 from src/_na_transforms.cpp:2:
/usr/include/python2.4/pyconfig.h:832:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/c
++/3.3/powerpc-linux/bits/os_defines.h:39,
                 from /usr/include/c++/3.3/powerpc-linux/bits/c
++config.h:35,
                 from /usr/include/c++/3.3/functional:53,
                 from src/_na_transforms.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the
previous definition

After this it just hangs and my cpu is pegged at 100%. Any thoughts?
Thanks.

···

--
Scott Henson <scotth@...541...>

How long are you waiting and how beefy is your processor? Compiling C++ is pretty compiler intensive...

···

On Mar 23, 2005, at 5:21 PM, Scott Henson wrote:

Hi, I'm trying to build matplotlib on an ubuntu hoary powerpc system
using python2.4, and I'm running into what seems to be some kind of
infinite loop? Basically the compiler just sits there and eats up all
my processor with no further output to the screen. I am compiling an
ubuntu package that I found, but it is matplotlib 0.73.1. I reproduced
the bug with a simple python2.4 setup.py build and it still failed in
the same way. Here is the output of that command.

scotth@...542...:~/Hacking/python-matplotlib/matplotlib-0.73.1$
python2.4 setup.py build
running build
running build_py
running build_ext
building 'matplotlib._na_transforms' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -Isrc -I. -I/usr/local/include -I/usr/include
-I/usr/include/python2.4 -c src/_na_transforms.cpp -o
build/temp.linux-ppc-2.4/src/_na_transforms.o -DNUMARRAY=1
In file included from /usr/include/python2.4/Python.h:8,
                 from CXX/Objects.hxx:9,
                 from CXX/Extensions.hxx:18,
                 from src/_transforms.h:12,
                 from src/_na_transforms.cpp:2:
/usr/include/python2.4/pyconfig.h:832:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/c
++/3.3/powerpc-linux/bits/os_defines.h:39,
                 from /usr/include/c++/3.3/powerpc-linux/bits/c
++config.h:35,
                 from /usr/include/c++/3.3/functional:53,
                 from src/_na_transforms.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the
previous definition

After this it just hangs and my cpu is pegged at 100%. Any thoughts?
Thanks.

--
Scott Henson <scotth@...541...>

Yeah, I figured that out late last night after digging through distutils
and most of matplotlib's extensions. Then I noticed the one it was
"hanging" on was a 1000+ line c++ file and I banged my head on my desk.
Sorry for the noise. Cool program. Oh, and on another note. For those
using debian/ubuntu. Be sure to install python-{numarray,numerics}-ext.
Otherwise matplotlib breaks.

···

On Thu, 2005-03-24 at 01:19 -0800, Andrew Straw wrote:

How long are you waiting and how beefy is your processor? Compiling
C++ is pretty compiler intensive...

--
Scott Henson <scotth@...541...>