Date: Wed, 03 Oct 2007 11:55:45 -0500 From: Stephen Montgomery-Smith <stephen@math.missouri.edu> To: Harald Servat <redcrash@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: papi port, fortran issues Message-ID: <4703C991.8060408@math.missouri.edu> In-Reply-To: <d825e0270710030048s3a1633fco9d4d096843aaf5b2@mail.gmail.com> References: <d825e0270710030048s3a1633fco9d4d096843aaf5b2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Harald Servat wrote: > Hello to everybody, > > recently I received an automated mail about a port I'm maintaining. Such > mail includes a full report (which is good in order to review the problems > ;) ) of the port build on amd64/freebsd7. > The program needs fortran compiler, and looking at the report, I see that > fortran compiler is installed, however the compiler name is gfortran42 (due > to the gcc package is 4.2 I think). As the configure of the ported program > does not look for gfortran42 explicitly (but looks for gfortran, g77, > fortran, xlf and so) it fails when trying to compile the fortran code. > > So two questions arise to my mind, > and which is the good way to solve this? Maybe should I look for > gfortran42 (and change it for every compiler version), or should gcc package > install a softlink from gfortran to gfortran42 --or the latest installed > version--? > why this doesn't happen on i386/freebsd7? > > Regards, I think adding a line to your Makefile like this might fix it: CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" F77="${F77}"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4703C991.8060408>