gfortran, Mac OS X and -fno-second-underscore

From: Dario Berzano <berzano_at_to.infn.it>
Date: Fri, 29 Jan 2010 16:29:00 +0100


Dear ROOT experts,

  is there any reason why, in $ROOTSYS/etc/vmc/Makefile.macosx64 (which is used on my current architecture: 64 bit on Snow Leopard), the gfortran option "-fno-second-underscore" is appended to FOPT?

As Mac users know well, gfortran is not provided along with Apple Developer Tools. Generally, the solution is to install the whole gcc, including gfortran, with Fink or MacPorts.

However, on this web page - http://r.research.att.com/tools/ - only the missing gfortran matching your gcc version provided with Apple Developer Tools can be found.

Installing only gfortran, rather than a second entire set of compilers, can save a lot of disk space.

Unfortunately, the gfortran provided at the mentioned web page does not come with a new version of cc1. Apple's version is used instead, but it does not support some Fortran-specific options like "-fno-second-underscore", so the build process fails with the following error:

cc1: error: unrecognized command line option "-fno-second-underscore"

Personally, I have noticed that compilation succeeds if I remove "-fno-second-underscore" from FOPT in
$ROOTSYS/etc/vmc/Makefile.macosx64, but I really don't know if it is safe to do that. Is it?

Thank you in advance.

Regards,

-- 

: Dario Berzano
: Wiki: http://newton.ph.unito.it/~berzano
: GPG: http://newton.ph.unito.it/~berzano/gpg
: Mobile: +39 348 72 22 520
Received on Fri Jan 29 2010 - 16:29:06 CET

This archive was generated by hypermail 2.2.0 : Fri Jan 29 2010 - 23:50:01 CET