Subject: Re: [PATCH] math/fftw and DragonFly
To: None <pkgsrc-users@netbsd.org>
From: Rumko <rumcic@gmail.com>
List: pkgsrc-users
Date: 12/16/2007 17:21:03
Greg Troxel wrote:
> Index: Makefile
> ===================================================================
> RCS file: /cvsroot/pkgsrc/math/fftw/Makefile,v
> retrieving revision 1.27
> diff -r1.27 Makefile
> 30a31,34
> > .if ${OPSYS} == "DragonFly"
> > ALL_ENV+= CCVER=gcc34
> > .endif
> >
>
> It's no big deal, but please use "diff -u" for patches.
oops, forgot -u (added it to cvsrc :) )
>
> It seems that this should be done by USE_LANGAGES+=fortran, rather than
> an OS-specific fix. That's already in the Makefile.
>
> NetBSD-current has:
>
> gdt 40 /usr/pkgsrc/math/fftw > cc -v
> Using built-in specs.
> Target: i386--netbsdelf
> Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure
> --enable-long-long --disable-multilib --enable-threads --disable-symvers
> --build=x86_64-unknown-netbsd4.99.17 --host=i386--netbsdelf
> --target=i386--netbsdelf Thread model: posix gcc version 4.1.3 20070620
> prerelease (NetBSD nb1 20070620)
DragonFly-HEAD (with default CCVER, that is gcc41):
# cc -v
Using built-in specs.
Target:
Configured with: DragonFly/i386 system compiler
Thread model: posix
gcc version 4.1.2 (DragonFly)
>
> On my system, building fftw starts to build f2c.
> What happens on yours?
Dies during configure stage since it can't find f77 when using gcc41:
checking for i386-pc-dragonfly-g77... (cached) f77
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether f77 accepts -g... (cached) no
checking how to get verbose linking output from f77... configure: WARNING:
compilation failed
checking for Fortran 77 libraries of f77...
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: cannot
compile a simple Fortran program
See `config.log' for more details.
*** Error code 1
well adding "PKGSRC_COMPILER= f2c gcc" in my mk.conf installs f2c and makes
fftw compilable with gcc41 ... but im not sure if it should be the default
since gcc34 that is also included in the system also has a fortran compiler.