[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #YXM-629438]: netCDF v4.0 build with Lahey Fortran on Fedora core 10 ( 32 bit )



> Hi -
> 
> The main build ran OK with the previously recommended settings -
> 
> >lf95 --version
> Lahey/Fujitsu Fortran 95 Express Release L6.20d
> 
> setenv CPPFLAGS  '-DNDEBUG -DpgiFortran'
> setenv FC        `which lf95`
> setenv F77 $FC
> setenv CC        `which gcc`
> setenv CXX       `which g++`
> 
> $ ./configure --prefix=/home/$USER/..  --enable-netcdf-4
> --with-temp-large=/tmp/$USER --with-hdf5=/usr/lib
> 
> [ needs --with-hdf5 even if hdf5 is already on library path.. ]
> 
> 
> make check gave some problems -
> 
> /home/****/lib/source/netcdf-4.0/libsrc/nc.c:246: undefined reference to
> `__divdi3'
> 
> which I fixed by adding -lfst to LDADD in
> nf_test/Makefile              examples/F77/Makefile
> examples/F90/Makefile
> ( after having run configure ; possibly there is switch or variable in
> configure to do this more elegantly ?? )

Howdy Jim!

I hope that fusion is going well there - I'm depending on it for some cool 
spaceships. ;-)

Adding a library can also be done (without modifying any files) by setting 
environment variable LIBS before running configure. (In bash: LIBS=-lfst 
./configure && make check).

Some compilers seem to require some special library to find this function. I am 
not sure why this happens, or what to do about it. I suspect that it really 
means there is some slight problem with the compiler installation (because the 
compiler should supply this function without any involvement on the part of the 
user.)

Do you also have to add this when compiling your applications? That is, if you 
have a fortran applcation without netCDF, do you have to include -lfst in its 
build flags?

Thanks,

Ed

Thanks Jim!

Ed

Ticket Details
===================
Ticket ID: YXM-629438
Department: Support netCDF
Priority: Normal
Status: Closed