This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LD error with gfortran


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]