Steven Mestdagh [2010-06-14, 20:22:02]:
> sure, 4.2.1 port attached (hardly changed wrt 4.2.4 port).
> only built blas/cblas with it, and that also works.

tested with gfortran 4.2.1 the ports which have fortran in MODULES.
this is on amd64. now we should compare regress to building with g77.

                        package regress
audio/cmu-sphinx3       ok      ok
audio/cmu-sphinxbase    ok      ok
devel/lam               ok      n/a
devel/libtool           ok      3/111 tests fail (not f77 related)
devel/openmpi           ok      ok
graphics/molden         marked broken
math/R                  ok      errors out in reg-tests-1.R
math/amd                ok      n/a
math/arpack             ok      n/a
math/blas               ok      n/a
math/cblas              ok      ok
math/freemat            ok      run_tests caused segfault...
math/lapack             ok      complex number test seems to hang somewhere
math/matio              ok      ok (add self to regress depends)
math/netcdf             ok      ok (use -DgFortran instead of -Df2cFortran)
math/octave             ok      pass 4040, fail 35 (mainly sparse matrices)
math/plplot             ok      n/a
math/py-numpy           ok      6/2030 tests fail (maybe not fortran related)
math/py-scipy           ok      3/3628 tests fail (maybe not fortran related)
math/qrupdate           ok      n/a

and below some tweaks needed to build these

Index: audio/cmu-sphinxbase/Makefile
===================================================================
RCS file: /cvs/ports/audio/cmu-sphinxbase/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- audio/cmu-sphinxbase/Makefile       23 May 2010 13:08:09 -0000      1.4
+++ audio/cmu-sphinxbase/Makefile       17 Jun 2010 06:26:07 -0000
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2010/05/23 13:08:09 espie Exp $
+# $OpenBSD: Makefile,v 1.3 2010/04/26 07:12:30 eric Exp $
 
 COMMENT=       common libraries for the CMU speech recognition engines
 
@@ -36,7 +36,8 @@
 CONFIGURE_ARGS=                --without-python
 CONFIGURE_ENV=         CPPFLAGS=-I${LOCALBASE}/include \
                        LDFLAGS=-L${LOCALBASE}/lib      \
-                       LIBS="-lblas -lm -lg2c -lsndio"
+                       LIBS="-lblas -lm -lgfortran -lsndio"
+#                      LIBS="-lblas -lm -lg2c -lsndio"
 
 pre-build:
        @cp ${FILESDIR}/ad_sndio.c ${WRKSRC}/src/libsphinxad/
Index: devel/lam/Makefile
===================================================================
RCS file: /cvs/ports/devel/lam/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- devel/lam/Makefile  4 Jun 2010 11:45:37 -0000       1.19
+++ devel/lam/Makefile  17 Jun 2010 06:26:07 -0000
@@ -29,7 +29,8 @@
 USE_LIBTOOL=           Yes
 CONFIGURE_STYLE=       gnu
 MODGNU_CONFIG_GUESS_DIRS=      ${WRKSRC}/config ${WRKSRC}/mpi2c++
-CONFIGURE_ARGS+=       --with-rsh="ssh -x"
+CONFIGURE_ARGS+=       --with-rsh="ssh -x" \
+                       --with-fc=gfortran
 
 MODULES=               fortran
 MODFORTRAN_WANTG77=    Yes
Index: math/arpack/files/Makefile
===================================================================
RCS file: /cvs/ports/math/arpack/files/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- math/arpack/files/Makefile  19 Oct 2006 16:19:54 -0000      1.1.1.1
+++ math/arpack/files/Makefile  17 Jun 2010 06:26:07 -0000
@@ -17,6 +17,7 @@
        znaitr.f znapps.f znaup2.f znaupd.f zneigh.f zneupd.f zngets.f \
         zgetv0.f zsortc.f zstatn.f \
        zvout.f zmout.f \
-       icnteq.f icopy.f iset.f iswap.f ivout.f second.f
+       icnteq.f icopy.f iset.f iswap.f ivout.f
+# second.f
 
 .include <bsd.lib.mk>
Index: math/lapack/Makefile
===================================================================
RCS file: /cvs/ports/math/lapack/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- math/lapack/Makefile        12 Jun 2010 18:00:14 -0000      1.13
+++ math/lapack/Makefile        17 Jun 2010 06:26:07 -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 \
@@ -60,7 +60,13 @@
        ${INSTALL_MAN} ${WRKDIST}/manpages/man/manl/*.3f ${PREFIX}/man/man3f/
 
 do-regress:
-       cd ${WRKDIST}/TESTING/MATGEN && ${MAKE} ${ALL_REGRESS_FLAGS}
-       cd ${WRKDIST}/TESTING && ${MAKE} ${ALL_REGRESS_FLAGS}
+       cd ${WRKDIST}/TESTING/MATGEN && ${MAKE} ${ALL_REGRESS_FLAGS} OPTS=-O2
+       cd ${WRKDIST}/TESTING && ${MAKE} ${ALL_REGRESS_FLAGS} OPTS=-O2
 
 .include <bsd.port.mk>
+
+.if ${FC:Mgfortran}
+MAKE_ENV+=     TIMER=INT_ETIME
+.else
+MAKE_ENV+=     TIMER=EXT_ETIME
+.endif
Index: math/netcdf/Makefile
===================================================================
RCS file: /cvs/ports/math/netcdf/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- math/netcdf/Makefile        23 May 2010 10:22:33 -0000      1.13
+++ math/netcdf/Makefile        17 Jun 2010 06:26:08 -0000
@@ -28,7 +28,8 @@
 MASTER_SITES=          ftp://ftp.unidata.ucar.edu/pub/netcdf/
 
 CONFIGURE_STYLE=       gnu
-CONFIGURE_ENV=         CPPFLAGS="-Df2cFortran"
+#CONFIGURE_ENV=                CPPFLAGS="-Df2cFortran"
+CONFIGURE_ENV=         CPPFLAGS="-DgFortran"
 CONFIGURE_ARGS+=       ${CONFIGURE_SHARED} \
                        --disable-f90
 
Index: math/octave/Makefile
===================================================================
RCS file: /cvs/ports/math/octave/Makefile,v
retrieving revision 1.46
diff -u -r1.46 Makefile
--- math/octave/Makefile        29 May 2010 15:28:18 -0000      1.46
+++ math/octave/Makefile        17 Jun 2010 06:26:08 -0000
@@ -75,7 +75,8 @@
 
 # need to use fpic version of libgcc.a
 post-configure:
-       @perl -pi -e 's#(gcc-lib/${GCC_ARCH}/[\d.]+)\s#\1/fpic #' \
+#      @perl -pi -e 's#(gcc-lib/${GCC_ARCH}/[\d.]+)\s#\1/fpic #' \
+       @perl -pi -e 's#(gcc/${GCC_ARCH}/[\d.]+)\s#\1/fpic #' \
                ${WRKBUILD}/Makeconf
 
 .ifmake regress
Index: math/qrupdate/Makefile
===================================================================
RCS file: /cvs/ports/math/qrupdate/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- math/qrupdate/Makefile      29 May 2010 15:28:50 -0000      1.3
+++ math/qrupdate/Makefile      17 Jun 2010 06:26:08 -0000
@@ -27,6 +27,7 @@
 BUILD_DEPENDS =                ${MODFORTRAN_BUILD_DEPENDS}
 LIB_DEPENDS =          ${MODFORTRAN_LIB_DEPENDS}
 
+MAKE_ENV =             FC=${FC}
 USE_GMAKE =            Yes
 NO_REGRESS =           Yes
 

Reply via email to