LD error with gfortran
Asher Langton
langton@gmail.com
Wed Jun 27 17:54:00 GMT 2007
On 6/27/07, Neil Gajare <nerajag@gmail.com> wrote:
> Hello,
>
> I have recently installed the Mac OSX binary of gfortran, and am
> attempting to compile a program. The program compiles fine, but the
> linking process terminates with an error. I have tried to set the
> LD_LIBRARY_PATH, but that did not seem to work. The errors are below.
>
> xx:~/desktop/source neil$ gfortran surfnet.f
> /usr/bin/ld: warning can't open dynamic library: /libgcc_s.1.dylib
> referenced from:
> /usr/local/gfortran/lib/gcc/i386-apple-darwin8.8.1/4.3.0/../../../libgfortran.dylib
> (checking for undefined symbols may be affected) (No such file or
> directory, errno = 2)
This part of the warning is due to a bug in the darwin configuration files:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572
I've been ignoring the warning without problems, but a workaround is
to use the option "-Wl,-dylib_file,/libgcc_s.1.dylib:<your gcc install
path>/lib/libgcc_s.1.dylib"
Try that, and see if the warning goes away.
-Asher
More information about the Fortran
mailing list