Landry Breuil [2010-06-14, 09:22:41]:
> > > > this is a standalone port of gfortran, to be used on archs which have 
> > > > gcc4
> > > > in base. this port is based on the gcc/4.2 port.
> > > > 
> > > > gfortran compiles both fortran 77 and fortran 95 code.
> > > > 
> > > > tested ok on amd64. if someone can try it on sparc64, i'd appreciate it.
> > > > comments on the port welcome of course.
> > > 
> > > Seems the fpic libs don't build on sparc64. I can send you the buildlog
> > > if needed..
> > > 
> > > Error in package: 
> > > /usr/ports/pobj/gfortran-4.2.4/fake-sparc64/usr/local/lib/fpic/libgfortran.so.2.0
> > >  does not exist
> > 
> > Let's try without that; I've put in the PIC fragment like in the gcc port.
> 
> Builds and packages fine. I've built blas/cblas with the fortran.port.mk
> diff, and it correctly installed gfortran port.
> 
> Make regress fails though :
> 
> ===>  Regression check for cblas-1.0
> gfortran  -o xscblat1 c_sblat1.o c_sblas1.o
> -L/usr/ports/pobj/cblas-1.0/CBLAS/src -lcblas -L/usr/local/lib -lblas
> /usr/local/lib/libgfortran.so.2.0: warning: strcpy() is almost always
> misused, please use strlcpy()
> /usr/local/lib/libgfortran.so.2.0: warning: strcat() is almost always
> misused, please use strlcat()
> /usr/local/lib/libgfortran.so.2.0: warning: sprintf() is often misused,
> please use snprintf()
> c_sblat1.o(.text+0x20): In function `MAIN__':
> : undefined reference to `s_wsfe'

this works fine for me (amd64).
did you also build math/blas with gfortran? if yes, then please send me the
build logs.

have not yet looked into py-scipy, but in case anyone wants to try
math/lapack and stuff depending on it, the diff below will help.
(you still need the fortran.port.mk diff too)

Index: Makefile
===================================================================
RCS file: /cvs/ports/math/lapack/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile    12 Jun 2010 18:00:14 -0000      1.13
+++ Makefile    14 Jun 2010 18:14:57 -0000
@@ -30,8 +30,8 @@
 
 MAKE_ENV=      SHLIB_MAJOR=${LIBlapack_VERSION:R} \
                SHLIB_MINOR=${LIBlapack_VERSION:E} \
-               TIMER=EXT_ETIME \
                FC=${FC}
+
 FAKE_FLAGS=    LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
 REGRESS_FLAGS= PLAT= OPTS= FORTRAN=${FC} LOADER=${FC} \
                LAPACKLIB=SRC/liblapack.a \
@@ -64,3 +64,9 @@
        cd ${WRKDIST}/TESTING && ${MAKE} ${ALL_REGRESS_FLAGS}
 
 .include <bsd.port.mk>
+
+.if ${FC:Mgfortran}
+MAKE_ENV+=     TIMER=INT_ETIME
+.else
+MAKE_ENV+=     TIMER=EXT_ETIME
+.endif

Reply via email to