Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2007 18:03:55 +0900 (JST)
From:      NAKATA Maho <chat95@mac.com>
To:        ports@freebsd.org
Subject:   status of migration to gfortran42 2007.1.17: currently all ports using fortran are unstable.
Message-ID:  <20070117.180355.02238085.chat95@mac.com>
In-Reply-To: <20070112.175508.90768420.chat95@mac.com>
References:  <20070109.175640.102530289.chat95@mac.com> <20070112.175508.90768420.chat95@mac.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070117.180355.02238085.chat95>