[SciPy-user] problem building svn scipy

Robert Kern robert.kern@gmail....
Fri Apr 25 20:34:08 CDT 2008


On Fri, Apr 25, 2008 at 8:20 PM, Damian Eads <eads@soe.ucsc.edu> wrote:
> Hi,
>
>  I learned there is a compatibility package called compat-gcc-34, which I
>  installed with yum. This is the first time I've tried compiling scipy
>  with gcc-34.
>
>  $ yum install compat-gcc-34 gcc-gcc-34-c++
>
>  Then, I tried doing a clean, changing CC, reconfigure, and build.
>
>  $ python setup.py clean # in the scipy root
>  $ rm -rf build          # just to be sure
>  $ export CC=gcc34
>  $ python setup.py config
>  $ python setup.py build
>
>  ...
>
>  C compiler: gcc34 -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
>  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>  --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
>  -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
>
>  compile options: '-c'
>  gcc34: optimize/Zeros/bisect.c
>  cc1: error: unrecognized command line option "-fstack-protector"
>  cc1: error: invalid parameter `ssp-buffer-size'
>  optimize/Zeros/bisect.c:1: error: bad value (generic) for -mtune= switch
>  cc1: error: unrecognized command line option "-fstack-protector"
>  cc1: error: invalid parameter `ssp-buffer-size'
>  optimize/Zeros/bisect.c:1: error: bad value (generic) for -mtune= switch
>  error: Command "gcc34 -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
>  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>  --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
>  -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -c
>  optimize/Zeros/bisect.c -o
>  build/temp.linux-i686-2.5/optimize/Zeros/bisect.o" failed with exit status 1
>  removed ./__svn_version__.py
>  $
>
>  For some reason, the options -fstack-protector, -mtune=generic are being
>  inserted in the gcc command. I have a hunch this is an error may be
>  caused by the distutils that comes bundled with Fedora's Python 2.5,
>  which was probably compiled with gcc 4.1.2.

Quite probably, yes. I don't recommend trying to build extensions with
gcc 3.4 when your Python is gcc 4.1.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco


More information about the SciPy-user mailing list