[SciPy-dev] FTBFS on Debian

Ondrej Certik ondrej@certik...
Mon Apr 14 09:43:02 CDT 2008

On Mon, Apr 14, 2008 at 4:19 PM, Robert Kern <robert.kern@gmail.com> wrote:
> On Mon, Apr 14, 2008 at 8:19 AM, Ondrej Certik <ondrej@certik.cz> wrote:
>  >  Now I am trying to figure out how to set the -fPIC for the gfortran.
>  >  Probably in some setup.py.
>  No, this flag is coded into the FCompiler implementation for each
>  compiler. Check FFLAGS. This will override the compilation flags just
>  like LDFLAGS overrides the link flags.

Thanks for the tip. Indeed the following patch fixes the problem on amd64 too:

$ svn di
Index: debian/rules
--- debian/rules	(revision 5014)
+++ debian/rules	(working copy)
@@ -9,6 +9,7 @@
 #export DH_VERBOSE=1

 unexport LDFLAGS
+export FFLAGS="-fPIC"

 PYVERS:= $(shell pyversions -v -r debian/control)
 BASE=$(shell pwd)/debian

>  >  I have no idea why these errors suddenly started to pop up, but
>  >  anyway, here we are.
>  Environment variables, usually.

Right. Those packages are built in a clean environment (always
starting from a base Debian install and then installing all necessary
packages), so this means some other package changed that.

Thanks again for pointing me to the right direction.


More information about the Scipy-dev mailing list