For Programmers: Free Programming Magazines  


Home > Archive > Fortran > December 2004 > PROBLEM WITH COMPILATION on Linux









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PROBLEM WITH COMPILATION on Linux
Roberto

2004-12-22, 3:57 am

Hi all.
I must compile a software written in C++/Fortran on Linux (RH 9.A)
For c++, i use the intel compiler (icc), while for fortran i use the intel
fortran compiler (ifc).
When i execute the command make to run the compilatotion of sources i have
this problem
http://www.nomorepasting.com/paste.php?pasteID=27390
as reguard as a library (libintrins)
The compiler shows a message" ld: cannot find lintrins"
I looked for the library libintrins (i looked for lintrins too) but there
isn't in my file system.
How can i solve this problem?
Help me, please...i'm becoming crazy!!


Tim Prince

2004-12-22, 4:04 pm


"Steve Lionel" <Steve.Lionel@REMOVEintelME.com> wrote in message
news:dtvis0h24igm7bn0avf6vqp4p90amlb6ou@
4ax.com...
> On Wed, 22 Dec 2004 06:31:48 GMT, "Roberto" <gioeroby@NOSPAMlibero.it>

wrote:
>
intel[color=darkred]
have[color=darkred]
>
> The text you linked to starts out saying "Version 8.1" but your ld command
> lists various Intel Forttan 7.1 libraries, along with 8.x libraries. This
> isn't going to work.
>
> If you have Fortran code that was compiled by Intel Fortran 7.1 (or

earlier),
> it must all be recompiled with version 8..1. You also need to go through

the
> ld command and remove references to libraries such as "lintrins -lIEPCF90
> -lF90 " which are not valid for version 8.1.
>
> I recommend using the ifort command driver to do the linking - it knows

where
> to find the various Fortran libraries. See the Intel Fortran User's Guide

for
> more information on using libraries.


Likewise, the C++ compiler icpc knows about C++ libraries, while the 8.1 C
and Fortran compilers don't. It looks like you are set up to use g++-3.2
libraries, so the most likely additional library not known to ifort would
be -lstdc++.


Roberto

2004-12-22, 4:04 pm


"Steve Lionel" <Steve.Lionel@REMOVEintelME.com> ha scritto nel messaggio

You also need to go through the
> ld command and remove references to libraries such as "lintrins -lIEPCF90
> -lF90 " which are not valid for version 8.1.
> I recommend using the ifort command driver to do the linking


ok. done. but know, a new message show : "ld: cannot find -llapack"
Sometimes shows -lblas too
How can i solve the problem?


Roberto

2004-12-22, 4:04 pm


"Steve Lionel" <Steve.Lionel@REMOVEintelME.com> ha scritto nel messaggio

> Make sure that the paths to all your library files are specified with -L.
> Since those are not standard Intel Fortran libraries, I can't tell you
> where
> they might be located.


my path is
-L/opt/intel_ifc_80/lib \
Do you say me where can i download this libraries?


Steve Lionel

2004-12-22, 9:13 pm

On Wed, 22 Dec 2004 19:19:04 GMT, "Roberto" <gioeroby@NOSPAMlibero.it> wrote:

>
>"Steve Lionel" <Steve.Lionel@REMOVEintelME.com> ha scritto nel messaggio
>
>
>my path is
>-L/opt/intel_ifc_80/lib \
>Do you say me where can i download this libraries?


That path is for the libraries supplied with Intel Fortran. You may want to
look at www.netlib.org for libraries such as lapack and blas. The Intel Math
Kernel Library product offers optimized versions of BLAS and LAPACK.
http://developer.intel.com/software...s/mkl/index.htm


Steve Lionel
Software Products Division
Intel Corporation
Nashua, NH

User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://developer.intel.com/software/products/support/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com