DragonFly users List (threaded) for 2008-05
Re: Fortran in the base
Hasso Tepper wrote:
> Quite a big number of pkgsrc build failures come from fact that we don't
> have Fortran compiler in our gcc-4.1. We have it in gcc-3.4 though, but
> for some reason not in gcc-4.1.
> The question is what we should do? Due to fact that it's quite widely
> used, we should do something, but what? I'd prefer to add fortran into
> gcc-4.1 as well. Are there objections?
Well ... the biggest problem isn't that we don't have fortran in our gcc-4.1
but that pkgsrc checks for fortran only by checking if the files exist not by
actually running/testing if it actually works (try running g77 -v or f77 -v
without setting CCVER to gcc34) afaik (if i remember correctly, deleting
f77&co. makes pkgsrc automatically pull in f2c so that everything after that
works, but it's been quite some time since i last tried that, so i could be
remembering it incorrectly).
You can override the problems with fortran by adding "PKGSRC_COMPILER= f2c gcc"
in your mk.conf (or was it PKGSRC_COMPILERS? would have to check). But since
it seems that pkgsrc has broken checks regarding ONLY_FOR_COMPILER you won't
be able to compile packages such as mplayer after adding that line in your
mk.conf (I usually compile mplayer manually by commenting that line in mk.conf
after everything else is done).
my 2 cents