[SciPy-dev] newcore and gcc4/gfortran (only 3 tests fail now)

Pearu Peterson pearu at scipy.org
Sat Nov 19 12:11:15 CST 2005



On Sat, 19 Nov 2005, Ravikiran Rajagopal wrote:

> Hi,
>  A little more progress. I can now compile and run tests on 
> gcc4/gfortran without any segfaults. This is on Fedora Core 4, with gcc 
> 4.0.2 branch SVN checkout from Nov 9 along with a few patches from 
> Redhat. I can make the source/binary RPMs available to anyone - I don't 
> have a website to host it though. I think Arnd's build is messed up 
> because of his installed g77. He needs the following patch before he can 
> actually get a true compiled version:
>
> Index: scipy/distutils/fcompiler/gnu.py
> ===================================================================
> --- scipy/distutils/fcompiler/gnu.py    (revision 1513)
> +++ scipy/distutils/fcompiler/gnu.py    (working copy)
> @@ -230,7 +230,26 @@
>     module_dir_switch = '-M'
>     module_include_switch = '-I'
>
> +    def get_libraries(self):
> +        opt = []
> +        d = self.get_libgcc_dir()
> +        if d is not None:
> +            g2c = 'gfortran-pic'
> +            f = self.static_lib_format % (g2c, self.static_lib_extension)
> +            if not os.path.isfile(os.path.join(d,f)):
> +                g2c = 'gfortran'
> +        else:
> +            g2c = 'gfortran'
>
> +        if sys.platform=='win32':
> +            opt.append('gcc')
> +        if g2c is not None:
> +            opt.append(g2c)
> +        if sys.platform == 'darwin':
> +            opt.append('cc_dynamic')
> +        return opt
> +
> +

Thanks for the patch. It (variant of) is in SVN now.

> Note that this patch handles only gfortran. I don't have g95 available 
> to test. Could someone commit this and makesure the proper g95 library 
> is used for that case?

For g95 one should modify scipy/distutils/fcompiler/g95.py

Pearu




More information about the Scipy-dev mailing list