This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: g77/Mountain Lion/XCode 4.6
- From: Andrew Pinski <pinskia at gmail dot com>
- To: "Fisher, Zack" <zfisher at email dot unc dot edu>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Tue, 30 Jul 2013 11:00:28 -0700
- Subject: Re: g77/Mountain Lion/XCode 4.6
- References: <0DC618C116F09143B254AE5FC904D1D25D932335 at ITS-MSXMBS4M dot ad dot unc dot edu> <0DC618C116F09143B254AE5FC904D1D25D932378 at ITS-MSXMBS4M dot ad dot unc dot edu>
On Tue, Jul 30, 2013 at 10:57 AM, Fisher, Zack <zfisher@email.unc.edu> wrote:
>
>
> First, let me state that I know g77 is deprecated.
>
> Second, I'm not a fortran developer, I'm simply trying to set up a lab for some grad students in the Geological Sciences department at UNC-CH.
It is not just deprecated, it is no longer supported.
gfortran should support every thing g77 has supported so there is no
reason to try to install g77.
If you want you can make a symbolic link for g77 to gfortran or make a
small script which forces the defaults to what g77 did.
Thanks,
Andrew
>
> I volunteered to help them set up there new lab with a brand new software image, including the following:
> Mountain Lion 10.8.4
>
> Xcode 4.6
>
> Fink 0.35.1
>
> gfortran 4.8.1 (downloaded from hpc.sourceforge.net)
>
> g77 3.4.0 (also downloaded from hpc.sourceforge.net)
>
> among others...
>
> I can compile just fine with gfortran, but when I attempt to compile anything with g77 (even a simple hello.f) I receive the following error:
>
> ld: warning: -macosx_version_min not specified, assuming 10.7
> ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in __start from /usr/lib/crt1.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
>
> I've done a fair amount a research, but most solutions are to "stop using g77". And while I agree that that would be the ideal solution, the PI and grad students are adamant they need g77 to compile some of their older code.
>
> FWIW, if I run: g77 hello.f [-no_pie] I receive the following response:
>
> g77: no match.
>
> Any help would be very much appreciated. If there is another/better avenue to request support, I'd be happy to follow those recommendations as well. I can't be the only person trying to get g77 to compile on a freshly installed copy of mountain lion, right?
>
> Thanks so much in advance,
> Zachary Fisher
> Systems Administrator, UNC-Chapel Hill
>
>
>
>