[Numpy-discussion] Trouble building NumPy on 64bit Ubuntu Linux

Rudolph van der Merwe rudolphv at gmail.com
Fri Mar 17 00:14:03 CST 2006


Nils,

Thanks... that solved the problem. Much appreciated!

Rudolph


On 3/16/06, Nils Wagner <nwagner at mecha.uni-stuttgart.de> wrote:
>
>  Did you use
>
> #
> # On 64 bit systems with GNU compiler
> #
> OPTS     = -O2 -m64 -fPIC
> NOOPT    = -m64 -fPIC
>
> (two lines of make.inc)
>
> to compile lapack ?
>
> Also I have added -m64 -fPIC to some lines in  the ATLAS generated makefile (
> Make.Linux_HAMMER64SSE3)
>
>    F77 = /usr/bin/g77
>    F77FLAGS = -fomit-frame-pointer -O -m64 -fPIC
>    FLINKER = $(F77)
>    FLINKFLAGS = $(F77FLAGS)
>    FCLINKFLAGS = $(FLINKFLAGS)
>
>
> #  ---------------------------------------------------------------------------
> #  Various C compilers, and the linker to be used when we are not linking in
> #  non-ATLAS BLAS (which usually necessitate using the Fortran linker).
> #  The C compilers recognized by ATLAS are:
> #     CC :  Compiler to use to compile regular, non-generated code
> #    MCC :  Compiler to use to compile generated, highly-optimized code
> #    XCC :  Compiler to be used on the compile engine of a cross-compiler
> #  These will typically all be the same.  An example of where this is not
> #  the case would be DEC ALPHA 21164, where you want to use gcc for MCC,
> #  because DEC's cc does not allow the programmer access to all 32 floating
> #  point registers.  However, on normal C code, DEC's cc produces much faster
> #  code than gcc, so you CC set to cc.  Of course, any system where you are
> #  cross-compiling, you will need to set XCC differently than CC & MCC.
> #  ---------------------------------------------------------------------------
>    CDEFS = $(L2SIZE) $(INCLUDES) $(F2CDEFS) $(ARCHDEFS)
>
>    GOODGCC = gcc
>    CC = /usr/bin/gcc
>    CCFLAG0 = -fomit-frame-pointer -O -mfpmath=387 -m64 -fPIC
>    CCFLAGS = $(CDEFS) $(CCFLAG0)
>    MCC = /usr/bin/gcc
>    MMFLAGS = -fomit-frame-pointer -O -mfpmath=387 -m64 -fPIC
>    XCC = /usr/bin/gcc
>    XCCFLAGS = $(CDEFS) -fomit-frame-pointer -O -mfpmath=387 -m64 -fPIC
>    CLINKER = $(CC)
>    CLINKFLAGS = $(CCFLAGS)
>    BC = $(CC)
>    BCFLAGS = $(CCFLAGS)
>    ARCHIVER = ar
>    ARFLAGS  = r
>    RANLIB   = echo
>
>
> Nils
>
>
>
>
>


--
Rudolph van der Merwe




More information about the Numpy-discussion mailing list