Date: Sun, 23 Feb 2014 06:48:05 +0100 (CET) From: Gerald Pfeifer <gerald@pfeifer.com> To: William Grzybowski <william88@gmail.com>, python@freebsd.org Subject: Re: python packages struggling with GCC 4.7 Message-ID: <alpine.LSU.2.11.1402230644200.13144@tuna.site> In-Reply-To: <alpine.LNX.2.00.1312051208100.2185@tuna.site> References: <201311060508.rA658XmR012155@svn.freebsd.org> <20131106063906.GA1385@medusa.sysfault.org> <20131106070255.GE60770@FreeBSD.org> <CAHtVNLMxUbFTS1J%2Bh1GQv_nEW84NE1t4FdDy8Sinkn2FKr8i_w@mail.gmail.com> <alpine.LNX.2.00.1312040220450.2185@tuna.site> <CAHtVNLMVRgO7xrGCqad-MOPCzojXTAXJE16uTaKOULd4ZLf_BQ@mail.gmail.com> <alpine.LNX.2.00.1312041405490.2185@tuna.site> <CAHtVNLO0c9aBnL7tDkXO4XTVzDy1DuVVEDJwRjAbj4oEfDf-ng@mail.gmail.com> <alpine.LNX.2.00.1312051208100.2185@tuna.site>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Dec 2013, Gerald Pfeifer wrote: > On Wed, 4 Dec 2013, William Grzybowski wrote: >> It looks like the build is not respecting FFLAGS, so no -Wl,rpath= for >> gfortran. As far as it working for gcc46, it looks like it fails to >> detect gfortran46 as a compiler and uses gcc46, which respects CFLAGS. > > That is, hmm, interesting. =:-) Nice analysis. > >> Can you try http://people.freebsd.org/~wg/py-numpy.patch ? > > Thanks for the patch! > > Is there any chance that someone on python@ can give it a try? That > would be great since I am traveling right now and hardly can test. No takers? :-) With some unplanned offline-ness on my side, this has now taken far longer than I had hoped for, but I managed to test this patch now (reproducing both the original failure and then a build without) -- and this patch, once I got it to apply, works! Thanks a lot. Shall I go ahead and commit it, or would you prefer to? Gerald Index: math/py-numpy/files/patch-numpy-distutils-fcompiler-gnu.py =================================================================== --- math/py-numpy/files/patch-numpy-distutils-fcompiler-gnu.py (revision 345690) +++ math/py-numpy/files/patch-numpy-distutils-fcompiler-gnu.py (working copy) @@ -17,7 +17,16 @@ + g2c = '%%FC%%' suggested_f90_compiler = 'gnu95' + +@@ -101,6 +101,8 @@ + def get_flags_linker_so(self): + opt = self.linker_so[1:] ++ if 'FFLAGS' in os.environ: ++ opt.append(os.environ['FFLAGS']) + if sys.platform=='darwin': + target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None) + # If MACOSX_DEPLOYMENT_TARGET is set, we simply trust the value @@ -249,7 +249,7 @@ # GNU Fortran 95 (GCC) 4.2.0 20060218 (experimental) # GNU Fortran (GCC) 4.3.0 20070316 (experimental)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.2.11.1402230644200.13144>