Hi,

Could you please try to following commands to locate the libgfortran.a
on your system:
$ gfortran -m32 --print-file-name=libgfortran.a
$ gfortran -m32 --print-file-name=libgfortran.so

If there is no libgfortran.a on your system, you have to link the
crayf90 with the shared library. You can change the value of
F90_RTLIBS defined in osprey/linux/make/gcommondefs:
Current value:
F90_RTLIBS = -Wl,-Bstatic -lgfortran -Wl,-Bdynamic
Change to:
F90_RTLIBS = -lgfortran

2011/11/12 Hanfeng Qin <hanfengt...@gmail.com>:
> Hello all,
> I downloaded open64-5.0 and met a compiling error as follows:
> -------
> GEN    compiler_build_date.c
> C
> /home/hanfeng/Workspace/tools/build-open64/osprey/targdir/crayf90/sgi/compil
> er_build_date.c
> LD
> /home/hanfeng/Workspace/tools/build-open64/osprey/targdir/crayf90/sgi/mfef95
> /usr/bin/ld: cannot find -lgfortran
> collect2: ld returned 1 exit status
> make[4]: *** [mfef95] Error 1
> make[3]: *** [default] Error 2
> make[2]: *** [first] Error 2
> make[2]: Leaving directory
> `/home/hanfeng/Workspace/tools/build-open64/osprey/targdir/crayf90'
> make[1]: *** [mfef95] Error 2
> make[1]: Leaving directory `/home/hanfeng/Workspace/tools/build-open64'
> make: *** [build] Error 2
> -------
> The version of gcc in my platform is 4.6.2 (actually, I work on Fedora 16,
> x86_64). I also checked the related development packages:
> $ rpm -qa | grep gfortran
> libgfortran-4.6.2-1.fc16.i686
> gcc-gfortran-4.6.2-1.fc16.x86_64
> libgfortran-4.6.2-1.fc16.x86_64
>
> Can anyone give my some suggestions to conquer that?
>
> Best regards,
> Hanfeng
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Open64-devel mailing list
> Open64-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/open64-devel
>



-- 
Regards,
Lai Jian-Xin

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to