Problem linking 32-bit lapack on linux 64-bit with intel fortran compiler



Hi everybody,

I'm currently trying to compile lapack from source on jaunty 64 bits,
but linking fails on first link with GNU ld.

I followed lapack installation instructions so adapted my make.inc
like the following:
Compilation options:
FORTRAN = ifort -implicitnone
OPTS = -O2
DRVOPTS = $(OPTS)
NOOPT = -g
LOADER = ld
LOADOPTS = --format=elf32-i386 -melf_i386
TIMER = INT_CPU_TIME
(BLASLIB was also adapted, but the compile process doesn't even go
that far)

The first call to ld fails:
( cd INSTALL; make; ./testlsame; ./testslamch; \
./testdlamch; ./testsecond; ./testdsecnd; ./testversion )
make[1]: Entering directory `/home/fred/lapack-3.2.1/INSTALL'
ifort -implicitnone -O2 -c lsame.f -o lsame.o
ifort -implicitnone -O2 -c lsametst.f -o lsametst.o
ld --format=elf32-i386 -melf_i386 -o testlsame lsame.o lsametst.o
ld: warning: cannot find entry symbol _start; defaulting to
0000000008048094

Objects files are both ELF 32-bit LSB relocatable, Intel 80386,
version 1 (GNU/Linux), not stripped

Running ld with --verbose seems to indicate the 32 bits compatibility
libs are used:
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
"elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_DIR("/usr/x86_64-linux-gnu/lib32"); SEARCH_DIR("/usr/i386-linux-
gnu/lib32"); SEARCH_DIR("/usr/local/lib32"); SEARCH_DIR("/lib32");
SEARCH_DIR("/usr/lib32"); SEARCH_DIR("/usr/i386-linux-gnu/lib");
SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/
lib");

System used:
standard Ubuntu Jaunty x86_64 GNU/Linux
kernel 2.6.28-11
binutils 2.19.1
gcc 4.3.3
libc 2.9.4
Intel Fortran Compiler 9.1
lapack 3.2.1

Can someone please help ? This is driving me mad...

Thanks in advance.

Frédéric
.



Relevant Pages

  • Free LAPACK for Intel Fortran 8 on Windows?
    ... The compiler we're using is Intel Visual Fortran on Windows, which means using it via the Visual Studio interface. ... I know that one can easily download a copy of LAPACK and the reference BLAS implementation from Netlib. ... The Netlib version is designed to be built with a makefile, and it looks like it would be rather a distinct pain to set things up to compile it through Visual Studio instead. ... Thus: question: Is there an easier way to obtain a compiled LAPACK library that is compatible with Intel Fortran, which does not involve lots of work translating makefiles, and which also does not involve buying Intel's Math Kernel Library? ...
    (comp.lang.fortran)
  • Re: GNU Fortran 95: Opinions?
    ... > idea for linux users. ... > If rpms, debs of compiled versions of blas, lapack, lapack95, fftw etc ... But the lapack documentation is not so straightforward. ... blas is needed to compile lapack which in turn is ...
    (comp.lang.fortran)
  • Visual Studio C++6 and VisualC++.Net
    ... Trying to compile the netlib lapack++. ... The libraries for Visual C++6.0 for clapack are available from netlib. ...
    (microsoft.public.vstudio.general)
  • FC4: lapack-3.0-30.fc4 (please help!)
    ... I tried using LAPACK after a couple of months and the same program will not ... compile. ... (It complains that it can not find -llapack). ... Mail - PC Magazine Editors' Choice 2005 ...
    (Fedora)
  • Re: GNU Fortran 95: Opinions?
    ... I would like to see something like this - a link from gfortran website ... But the lapack documentation is not so straightforward. ... blas is needed to compile lapack which in turn is ... think providing compiled versions of packages is a better idea. ...
    (comp.lang.fortran)