Problem linking 32-bit lapack on linux 64-bit with intel fortran compiler
- From: Frédéric Delanoy <frederic.delanoy@xxxxxxxxx>
- Date: Fri, 8 May 2009 00:07:27 -0700 (PDT)
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
.
- Follow-Ups:
- Prev by Date: Re: Fortran Wiki
- Next by Date: For opaque syntax Fortran has nothing on C++
- Previous by thread: MTL, Lapack and Visual C++
- Next by thread: Re: Problem linking 32-bit lapack on linux 64-bit with intel fortran compiler
- Index(es):
Relevant Pages
|