Re: GNU gfortran on Mac OSX
- From: breyfogle <breyfogle@xxxxxxx>
- Date: Mon, 26 May 2008 13:05:07 -0700
In article
<53d25208-eab4-40d5-9fbb-c3c782e4ba98@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
dominiq <dominiq@xxxxxxxxxx> wrote:
On 26 mai, 19:06, breyfogle <cldmcns...@xxxxxxxxxxxxx> wrote:
I have been successfully using GNU g77 for years on a variety of Mac
platforms. Recently I installed GNU gfortran 4.3 (over an existing g77
install) on a ppc Mac running 10.4.10. Everything appeared to install
properly. Applications upgraded to gortran build successfully and run
as intended. However, every build produces an error message about being
unable to find one particular shared dynamic library. See below:
Applicable versions:
PB15:~ dpm$ ld -v
Apple Computer, Inc. version cctools-590.36~obj
PB15:~ dpm$ gfortran -v
Using built-in specs.
Target: powerpc-apple-darwin8.10.0
Configured with: /tmp/gfortran-20071017/ibin/../gcc/configure
--prefix=/usr/local/gfortran --enable-languages=c,fortran
--with-gmp=/tmp/gfortran-20071017/gfortran_libs --enable-bootstrap
Thread model: posix
gcc version 4.3.0 20071017 (experimental) [trunk revision 129405] (GCC)
Sample compile & link messages:
PB15:~ dpm$ gfortran testgf.f
/usr/bin/ld: warning can't open dynamic library: /libgcc_s.1.dylib
referenced
from:/usr/local/gfortran/lib/gcc/powerpc-apple-darwin8.10.0/4.3.0/../../.
./libgfortran.dylib (checking for undefined symbols may be affected) (No
such file or directory, errno = 2)
The "libgcc_s.1.dylib" clearly exists, its in the same directory as
libgfortran.dylib and a bunch of others. While this error does not
effect application functionality directly, I don't really like link
errors. Something is obviously not correct and I would like to resolve
this if at all possible. Any ideas ? Any and all help would be greatly
appreciated.
This is an old bug of gcc (now fixed, though I don't remember when).
A fix (that worked for me) is to do a symbolic link for /libgcc_s.
1.dylib:
ln -s /your_path/libgcc_s.1.dylib /libgcc_s.1.dylib
Dominique
Your fix works for me. Sure is ugly having a library link at root !!
thanks
--
breyfogle
.
- Follow-Ups:
- Re: GNU gfortran on Mac OSX
- From: dominiq
- Re: GNU gfortran on Mac OSX
- References:
- GNU gfortran on Mac OSX
- From: breyfogle
- Re: GNU gfortran on Mac OSX
- From: dominiq
- GNU gfortran on Mac OSX
- Prev by Date: Re: one-liner for characater replacement
- Next by Date: Re: RtlMoveMemory not being found to link in
- Previous by thread: Re: GNU gfortran on Mac OSX
- Next by thread: Re: GNU gfortran on Mac OSX
- Index(es):
Relevant Pages
|
|