status of migration to gfortran42 2007.1.17: currently all ports using fortran are unstable.

NAKATA Maho chat95 at mac.com
Wed Jan 17 09:04:06 UTC 2007


* currently all ports using fortran are unstable. please wait until I announce
about it....
* kris will tell me how they are broken ;)

current status of migration
wait ... wait for commit approval
source ... f90/f77 sources exist
link   ... only exist link against f90/f77 complied libraries
gfortran ... used compiler is gfortran42 
f77     ...  used compiler is g77 (there are some compilation problem with gfortran)

not yet
------------------------------------------------------------
graphics/robot         bad f77 code
devel/root            !for amd64
science/hdf           !for amd64
graphics/cimg         non fetchable
math/py-numpy         -lg2c -> -lgfortran (?)
science/py-scipy      -lg2c -> -lgfortran (?)
science/py-scipy03    -lg2c -> -lgfortran (?)
------------------------------------------------------------

done (but not yet stable) 
ports                   maintainer           Used Fortran  committed    f77/f90?
--------------------------------------------------------------------------------------
astro/cfitsio           ports at FreeBSD.org    gfortran        yes          source 
benchmarks/himenobench  maho at FreeBSD.org     gfortran        yes          source 
benchmarks/hpl          oliver at FreeBSD.org   gfortran        yes          source 
biology/molden          ports at FreeBSD.org    gfortran        yes          source 
biology/ortep3          ports at FreeBSD.org    gfortran        yes          source 
biology/platon          ports at FreeBSD.org    gfortran        yes          source 
biology/psi88           ports at FreeBSD.org    gfortran        yes          source 
biology/tinker          ports at FreeBSD.org    gfortran        yes          source 
cad/calculix            maho at FreeBSD.org     gfortran        yes          source 
cad/feappv              ports at FreeBSD.org    gfortran        yes          source 
cad/sceptre              grog at FreeBSD.org    f77             yes          source
cad/pdnmesh             sarod at users.sf.net   gfortran        yes          source 
cad/tochnog             ports at FreeBSD.org    gfortran        yes          source 
database/grass-i18n     hrs at FreeBSD.org      gfortran        yes          link
devel/libU77            ports at FreeBSD.org    gfortran        yes          source 
french/aster           thierry at FreeBSD.org   gfortran        yes          source 
french/med             ports at FreeBSD.org     gfortran        yes          source 
graphics/dataplot  beech at alaskaparadise.com  gfortran        yes          source 
graphics/gplot          ports at FreeBSD.org    gfortran        yes          source 
graphics/pgplot        jmz at FreeBSD.org       gfortran        yes          source 
graphics/xd3d        thierry at FreeBSD.org     gfortran        yes          source 
lang/ratfor           obrien at FreeBSD.org     gfortran        yes          source 
math/R             eric+fbports at vangyzen.net gfortran        yes          source 
math/algae             laszlof at FreeBSD.org   gfortran        yes          source 
math/arpack             ports at FreeBSD.org    gfortran        yes          source 
math/atlas              maho at FreeBSD.org     gfortran        yes          source 
math/atlas-devel        maho at FreeBSD.org     gfortran        yes          source 
math/blacs              maho at FreeBSD.org     gfortran        yes          source
math/blas               stas at FreeBSD.org     gfortran        yes          source 
math/blocksolve95       ports at FreeBSD.org    gfortran        yes          source 
math/elmer-umfpack     ports at FreeBSD.org     gfortran        yes          source 
math/elmer-mathlibs    ports at FreeBSD.org     gfortran        yes          source 
math/fftw              ports at FreeBSD.org     gfortran        yes          source
math/freefem++         ports at FreeBSD.org     gfortran        yes          source
math/freemat           ports at FreeBSD.org     gfortran        yes          source
math/it++              ports at FreeBSD.org     gfortran        yes          source
math/jags      eric+fbports at vangyzen.net     gfortran        yes          source 
math/kaskade            ports at FreeBSD.org    gfortran        yes          source
math/lapack             jmz at FreeBSD.org      gfortran        yes          source 
math/lapack++           maho at FreeBSD.org     gfortran        yes          source
math/lapack95           maho at FreeBSD.org     gfortran        yes          source
math/libRmath  eric+fbports at vangyzen.net     gfortran        yes          source 
math/linpack            ports at FreeBSD.org    gfortran        yes          source 
math/metis              ports at FreeBSD.org    gfortran        yes          source 
math/metis-edf          ports at FreeBSD.org    gfortran        yes          source 
math/mumps              ports at FreeBSD.org    gfortran        yes          source
math/nsc2ke             ports at FreeBSD.org    gfortran        yes          source 
math/octave       rainer.alves at gmail.com     gfortran        yes          source
math/octave-devel       maho at FreeBSD.org     gfortran        yes          source (*)
math/petsc              ports at FreeBSD.org    gfortran        yes          source 
math/plplot             ports at FreeBSD.org    gfortran        yes          source 
math/scalapack          maho at FreeBSD.org     gfortran        yes          source
math/scilab             js at jeannot.org       gfortran        yes          source
math/sdpa               maho at FreeBSD.org     gfortran        yes          link
math/sdpara             maho at FreeBSD.org     gfortran        yes          link
math/suitesparse        maho at FreeBSD.org     gfortran        yes          source
math/superlu            ports at FreeBSD.org    gfortran        yes          source 
math/superlu_mt         ports at FreeBSD.org    gfortran        yes          source 
math/taucs              ports at FreeBSD.org    gfortran        yes          source 
math/umfpack            ports at FreeBSD.org    gfortran        yes          source 
net/mpich2              thierry at FreeBSD.org  gfortran        yes          source
net/openmpi             brooks at FreeBSD.org   gfortran        yes          source 
net/pvm                 ports at FreeBSD.org    gfortran        yes          source 
science/2dhf            maho at FreeBSD.org     gfortran        yes          source 
science/abinit          maho at FreeBSD.org     gfortran        yes          source
science/at              ports at FreeBSD.org    gfortran        yes          source 
science/cdf            thierry at FreeBSD.org   gfortran        yes          source 
science/dft++           maho at FreeBSD.org     gfortran        yes          source
science/elmer-eio       ports at FreeBSD.org    gfortran        yes          source 
science/elmer-fem       ports at FreeBSD.org    gfortran        yes          source 
science/elmer-hutiter   ports at FreeBSD.org    gfortran        yes          source 
science/elmerfront      ports at FreeBSD.org    gfortran        yes          source 
science/elmerpost       ports at FreeBSD.org    gfortran        yes          source
science/getdp           ports at FreeBSD.org    gfortran        yes          source
science/ghemical        maho at FreeBSD.org     gfortran        yes          link
science/isaac-cdf       ports at FreeBSD.org    gfortran        yes          source 
science/libctl          ports at FreeBSD.org    gfortran        yes          source 
science/libghemical     maho at FreeBSD.org     gfortran        yes          link
science/mbdyn           kay_lehmann at web.de   gfortran        yes          source
science/mpb             ports at FreeBSD.org    gfortran        yes          source 
science/mpqc            maho at FreeBSD.org     gfortran        yes          link
science/mpqc-mpich      maho at FreeBSD.org     gfortran        yes          link
science/oases           ports at FreeBSD.org    gfortran        yes          source 
science/oof             maho at FreeBSD.org     gfortran        yes          source
--------------------------------------------------------------------------------------

Memo

WANT_FORTRAN=	yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC=		gfortran42
F77=		gfortran42
CONFIGURE_ENV+=	FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
MAKE_ENV+=	FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"

* Linking blas/lapack or atlas
next of .include <bsd.port.pre.mk>, add:
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
WITH_ATLAS=     yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+=   atlas.2:${PORTSDIR}/math/atlas
BLAS=		-lf77blas -latlas
LAPACK=		-lalapack
.else
LIB_DEPENDS+=   blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+=   lapack.4:${PORTSDIR}/math/lapack
BLAS=		-lblas
LAPACK=		-llapack
.endif

* Useful for other stuffs for gfortran related libaries when link against
-lblas with C/C++ programs  this corresponds to when some program want to
link against libg2c of libf2c with GNU f77.

FORTRANLIBS=    -lgfortranbegin -lgfortran
GCCLIBDIR=     -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
post-patch:
	${DIRNAME} `${LOCALBASE}/bin/${F77} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
	${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+${GCCLIBDIR}+" -e "s+%%FORTRANLIBS%%+${FORTRANLIBS}+" ${WRKSRC}/somefile.

* Remove dependency of g2c.h etc. Install f2c from ports, and must
link against libf2c.so. I'm checking with following environment:
FreeBSD 6.2-RELEASE/amd64 with following fortran killer 
% cat ~/killfortran
tar cvfz /home/maho/F77-FBSD62amd64.tar.gz /usr/include/g2c.h /usr/bin/f77 /usr/lib/libg2c.a  /usr/lib/libg2c.so /usr/lib/libg2c.so.2
rm /usr/include/g2c.h /usr/bin/f77 /usr/lib/libg2c.a  /usr/lib/libg2c.so /usr/lib/libg2c.so.2

thanks,
-- NAKATA, Maho (maho at FreeBSD.org)


More information about the freebsd-ports mailing list