2010-05-03 11:07:37     Problem with fortran compiler

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-05-03 11:07:37     Problem with fortran compiler

Mattias K (SWEDEN)

Message: 89093   

 

Hi,

 

I try to compile with the fortran compiler but gets the following error, what I'm doing wrong

 

bfin-uclinux-gfortran-4.1.2 -g  -c lsame.f -o lsame.o

/opt/uClinux/bfin-uclinux/bin/../libexec/gcc/bfin-uclinux/4.1.2/f951: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory

make: *** [lsame.o] Error 1

 

I'm using the 2008-R1 release, so its quite old but according to test reports the fortran compiler should work fine. Does anyone has any input?

 

I have attached the fortran source lsame.f

 

/Mattias

 

lsame.f

QuoteReplyEditDelete

 

 

2010-05-03 13:52:34     Re: Problem with fortran compiler

Robin Getz (UNITED STATES)

Message: 89095   

 

Mattias:

 

The fortran compiler expects to find (on your host) the gmp library - you don't have it installed - so it errors out.

 

Your example works for me on my system, since I have that lib installed...

 

rgetz@imhotep:~> ls /usr/lib/libgmp.* -l

-rw-r--r-- 1 root root 520710 2006-11-25 07:22 /usr/lib/libgmp.a

-rw-r--r-- 1 root root    779 2006-11-25 07:22 /usr/lib/libgmp.la

lrwxrwxrwx 1 root root     15 2007-01-05 21:26 /usr/lib/libgmp.so -> libgmp.so.3.4.1

lrwxrwxrwx 1 root root     15 2007-01-05 21:25 /usr/lib/libgmp.so.3 -> libgmp.so.3.4.1

-rwxr-xr-x 1 root root 237088 2006-11-25 07:22 /usr/lib/libgmp.so.3.4.1

rgetz@imhotep:~>                                           

QuoteReplyEditDelete

 

 

2010-05-04 02:55:23     Re: Problem with fortran compiler

Mattias K (SWEDEN)

Message: 89101   

 

Hi,

 

I have another version of the gmp library, can that be the problem?

 

mokn@sews00095:~$ ls /usr/lib/libgmp.* -l

-rw-r--r-- 1 root root 795232 2009-02-27 02:48 /usr/lib/libgmp.a

-rw-r--r-- 1 root root    795 2009-02-27 02:48 /usr/lib/libgmp.la

lrwxrwxrwx 1 root root     15 2010-05-03 17:10 /usr/lib/libgmp.so -> libgmp.so.3.4.4

lrwxrwxrwx 1 root root     15 2009-08-31 10:49 /usr/lib/libgmp.so.3 -> libgmp.so.3.4.4

-rwxr-xr-x 1 root root 268504 2009-02-27 02:48 /usr/lib/libgmp.so.3.4.4

 

 

Is there any other library that I need?

 

/Mattias

QuoteReplyEditDelete

 

 

2010-05-04 03:23:17     Re: Problem with fortran compiler

Mike Frysinger (UNITED STATES)

Message: 89107   

 

the minor version doesnt mater

 

is the bitness of the Blackfin toolchain the same as that of your host ?  run `file` on the Blackfin compiler, /bin/bash, and that libgmp.so.3.  they should all report the same ELF bit size.

QuoteReplyEditDelete

 

 

2010-05-04 03:54:35     Re: Problem with fortran compiler

Mattias K (SWEDEN)

Message: 89108   

 

Hi again,

 

This was a lib32 problem. My host is running on a 64bit machine, so after manually downloading the gmp x86 package from ubuntu and unpacking it in my /usr/lib32 everything works fine.

 

/Mattias

QuoteReplyEditDelete

 

 

2010-05-04 09:31:09     Re: Problem with fortran compiler

Robin Getz (UNITED STATES)

Message: 89111   

 

Mattias:

 

Glad you got things going - for future reference - we also release x86_64 rpms and tar files for 64-bit machines... You might get a slight performance increase if you wanted to try those out...

 

-Robin

QuoteReplyEditDelete

 

 

2010-05-04 16:10:51     Re: Problem with fortran compiler

Mattias K (SWEDEN)

Message: 89131   

 

Hi,

 

Right now we have products based on this toolchain version and don't want to make any upgrades. For the next generation of products we will definitely use the x64 version.

 

thanks,

 

Mattias

Attachments

Outcomes