problem compiling matplotlib (-mtune=i686)

I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) and
have python:
Python 2.4.1 (#1, Sep 13 2005, 00:39:20)

I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or
setupext.py at all. I think I have all the graphics things installed.

The error message goes:

[snip]

building 'matplotlib._agg' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
creating build/temp.linux-i686-2.4/agg23
creating build/temp.linux-i686-2.4/agg23/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -I/usr/X11R6/include -fPIC
-Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o
build/temp.linux-i686-2.4/src/agg.o
cc1plus: error: invalid option `tune=i686'
error: command 'gcc' failed with exit status 1

gcc --version

gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.

I cant find anywhere in the matplotlib-0.87 directory structure that sets
this "tune=i686". I have searched all the files in the directory structure
for "tune" and "i686", so I'm guessing it's set somewhere else, but I dont
know where.
Can anyone help?

thanks
Sue

Numpy and Scipy highjack distutils now, and this may be something they
add in. Do you ave numpy installed? That looks like a valid option
though.

···

On 2/25/06, Sue Tranter <sej28@...1008...> wrote:

I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) and
have python:
Python 2.4.1 (#1, Sep 13 2005, 00:39:20)

I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or
setupext.py at all. I think I have all the graphics things installed.

The error message goes:
>>> [snip]
building 'matplotlib._agg' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
creating build/temp.linux-i686-2.4/agg23
creating build/temp.linux-i686-2.4/agg23/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -I/usr/X11R6/include -fPIC
-Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o
build/temp.linux-i686-2.4/src/agg.o
cc1plus: error: invalid option `tune=i686'
error: command 'gcc' failed with exit status 1

>> gcc --version
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.

I cant find anywhere in the matplotlib-0.87 directory structure that sets
this "tune=i686". I have searched all the files in the directory structure
for "tune" and "i686", so I'm guessing it's set somewhere else, but I dont
know where.
Can anyone help?

thanks
Sue

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Numpy and Scipy highjack distutils now, and this may be something they
add in. Do you ave numpy installed? That looks like a valid option
though.

erm. I'm not entirely sure. I've somehow broken my "yast" in suse whilst
trying to install matplotlib and now I cant see what's installed.
[ any help on how to fix a malloc memory corruption in yast greatfully
accepted :wink: ]
I ran python and tried to import numpy and scipy but that didnt work, so
I'm assuming I dont have them. (is there a better way to tell? - I'm sorry
if I sound very ignorant, but I've only been learning python a few weeks).

thanks alot.
Sue

···

On Sun, 26 Feb 2006, Charlie Moad wrote:

> I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) and
> have python:
> Python 2.4.1 (#1, Sep 13 2005, 00:39:20)
>
> I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or
> setupext.py at all. I think I have all the graphics things installed.
>
> The error message goes:
> >>> [snip]
> building 'matplotlib._agg' extension
> creating build/temp.linux-i686-2.4
> creating build/temp.linux-i686-2.4/src
> creating build/temp.linux-i686-2.4/agg23
> creating build/temp.linux-i686-2.4/agg23/src
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686
> -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -I/usr/X11R6/include -fPIC
> -Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o
> build/temp.linux-i686-2.4/src/agg.o
> cc1plus: error: invalid option `tune=i686'
> error: command 'gcc' failed with exit status 1
>
> >> gcc --version
> gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
> Copyright (C) 2003 Free Software Foundation, Inc.
>
> I cant find anywhere in the matplotlib-0.87 directory structure that sets
> this "tune=i686". I have searched all the files in the directory structure
> for "tune" and "i686", so I'm guessing it's set somewhere else, but I dont
> know where.
> Can anyone help?
>
> thanks
> Sue
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> matplotlib-users List Signup and Options
>

------------------------------------------------------------------|
email sue@...1008... |
WWW http://www.pooh-room.freeserve.co.uk |
------------------------------------------------------------------|

Charlie Moad wrote:

Numpy and Scipy highjack distutils now, and this may be something they
add in. Do you ave numpy installed? That looks like a valid option
though.

Neither numpy nor scipy do anything to the main distutils. numpy.distutils
(replacing the old scipy_distutils) extends distutils only if you import it;
nothing happens to distutils if you just import numpy. matplotlib doesn't import
numpy.distutils at all.

···

--
Robert Kern
robert.kern@...287...

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
  -- Richard Harter

I guess I find it strange that I always get color output when
compiling matplotlib now. I know it is using numpy's distutils
because I have done some printing in the setup.py before. I wonder if
having numpy and family installed with setuptools is doing this. Any
clues?

···

On 2/28/06, Robert Kern <robert.kern@...287...> wrote:

Charlie Moad wrote:
> Numpy and Scipy highjack distutils now, and this may be something they
> add in. Do you ave numpy installed? That looks like a valid option
> though.

Neither numpy nor scipy do anything to the main distutils. numpy.distutils
(replacing the old scipy_distutils) extends distutils only if you import it;
nothing happens to distutils if you just import numpy. matplotlib doesn't import
numpy.distutils at all.

--
Robert Kern
robert.kern@...287...

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
  -- Richard Harter

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Charlie Moad wrote:

   I guess I find it strange that I always get color output when
compiling matplotlib now. I know it is using numpy's distutils
because I have done some printing in the setup.py before. I wonder if
having numpy and family installed with setuptools is doing this. Any
clues?

No, you're right, numpy.distutils is getting pulled in through the backdoor. I'm
entering this as a bug in numpy.

···

--
Robert Kern
robert.kern@...287...

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
  -- Richard Harter