Martyn,
I have just insatlled intel fortran compiler on SUSE 9.0 (with x86_64 opteron). When i try and link any fortran program I get the error
:/root/$ ifc test.f program TEST
4 Lines Compiled ld: skipping incompatible /opt/intel/compiler70/ia32/lib/libintrins.a when searching for -lintrins ld: cannot find -lintrins
This is a simple one - ifc will call upon the standard linker on the Opteron, which (naturally) defaults to making 64-bit binaries. Tell it to make 32bit binaries with "-Wl,-m elf_i386" and .. hey presto - it works. viz: --- cut here -- dan@quad0:~> cat hello.f print*,"Hello World" end dan@quad0:~> ifc hello.f -Wl,-m elf_i386 main program 3 Lines Compiled dan@quad0:~> file ./a.out ./a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped dan@quad0:~> ./a.out Hello World --- cut here -- Yours, Daniel. -------------------------------------------------------------- Dr. Dan Kidger, Quadrics Ltd. daniel.kidger@quadrics.com One Bridewell St., Bristol, BS1 2AA, UK 0117 915 5505 ----------------------- www.quadrics.com --------------------
participants (1)
-
Daniel Kidger