From: Daniel Macks <dmacks@ne...> - 2012-02-24 06:47:42
On Thu, 23 Feb 2012 14:53:28 +0100, Martin Costabel
On 22/02/12 11:49, smail MERABET wrote:
> > checking for f77... f77
> > checking whether we are using the GNU Fortran 77 compiler... no
> > checking for f77 option to produce PIC... -fno-common
> > checking if f77 PIC flag -fno-common works... rm: conftest.dSYM: is a
> > directory
> > no
> > checking if f77 supports -c -o file.o... rm: conftest.dSYM: is a directory
> > yes
> > checking whether the f77 linker
> > (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared
> > libraries... yes
> > checking dynamic linker characteristics... getopt: illegal option -- p
> > getopt: illegal option -- p
> > darwin10.8.0 dyld
> There is something fishy with your "f77" Fortran compiler. It does
> not understand the usual options -fno-common and -print-search-dirs.
> > fink-package-precedence --prohibit-bdep=opensp5-dev .
> > Scanning binaries for incorrect dyld linking...
> > /usr/bin/otool: unknown char `n' in flag -common
> > Error reading /usr/bin/otool -L: 256
> > ### execution of fink-package-precedence failed, exit code 1
> The failure of fink-package-precedence in otool indicates that
> somehow the build process created a file named "-common". My wild
> guess is that the "f77" compiler did this when it misunderstood some
Ooh, good catch on that previous diagnostic!
fink-package-precedence isn't protecting filenames from the shell when
passing them to the otool command, so otool is seeing "-fcommon" as an
option instead of a filename. And apple is so special, it decided to
use "-" rather than the universal "--" standard as the flag to solve
that problem. There's long been a problem with filenames with spaces in
them, but fortunately it's so rare that nobody has complained that I
can recall. To fix all of this will require rewriting the IPC mechanism
for communicating with otool. But in the mean time, the f-p-p bug
uncovered a system problem or other package breakage for the user?
Sounds like it's doing its job:)