Print

Print


Hello,
           FSL4.0.4 (and previous) has some problems compiling on the  
solaris platform. If you include the following code in src/miscmaths/ 
nonlin.h :

#include <ieeefp.h>
#define isfinite(_fsl_n) (finite(_fsl_n) && !isnan(_fsl_n))

miscmaths should hopefully compile ( as well as projects depending on  
miscmaths )

Hope this helps

Matthew

> Hi, I'm having a few problems compiling FSL 4.0.4
> - uname -a: SunOS solaris-211 5.10 Generic_118833-36 sun4u sparc
> SUNW,Sun-Blade-1000 Solaris
> - gcc (GCC) 4.0.2
>
> Some errors in the build.log file:
> -------------------------------------
> BUILD successfully made all projects
> !!ERROR in INSTALL!!
>  Could not fully install the following projects successfully:
>    irtk
>
> -------------------------------------
> g++ -Wall -pedantic    -mcpu=ultrasparc3 -ffast-math -fomit-frame- 
> pointer
> -O2 -fexpensive-optimizations -mcpu=ultrasparc3 -ffast-math
> -fomit-frame-pointer  -I/export/home/test/fsl/extras/include/newmat
> -I/export/home/test/fsl/extras/include/boost
> -I/export/home/test/fsl/extras/include/libprob
> -I/export/home/test/fsl/extras/include -I. -I/export/home/test/fsl/ 
> include
> -I/export/home/test/fsl/include   -c -o nonlin.o nonlin.cpp
>
> nonlin.cpp: In function 'std::pair<double, double>  
> MISCMATHS::bracket(const
> NEWMAT::ColumnVector&, const NEWMAT::ColumnVector&, const
> MISCMATHS::NonlinCF&, double, double, std::pair<double, double>*,
> std::pair<double, double>*)':
> nonlin.cpp:875: error: 'isfinite' was not declared in this scope
> make: *** [nonlin.o] Error 1
>
> Line 875 of nonlin.cpp:  while (!isfinite(cf1)) {
>
> --------------------------------------
> Making project src/newimage
>
> /bin/rm -f /tmp/fslgrot *.o *.a *.exe core depend.mk
> /bin/rm -f /tmp/fslgrot  testprog skeletonapp
> /export/home/test/fsl/config/common/rules.mk:320: depend.mk: No such  
> file or
> directory
> Building dependency file depend.mk
> In file included from newimagefns.h:79,
>                 from complexvolume.cc:65:
> newimage.h:81:33: error: miscmaths/miscmaths.h: No such file or  
> directory
> newimage.h:82:30: error: miscmaths/kernel.h: No such file or directory
> In file included from newimageall.h:72,
>                 from costfns.h:73,
>                 from costfns.cc:74:
> newimage.h:81:33: error: miscmaths/miscmaths.h: No such file or  
> directory
> newimage.h:82:30: error: miscmaths/kernel.h: No such file or directory
>
> ---------------------------------------
> Packages that need miscmaths also failed.
>
> Where is 'isfinite?' I looked everywhere (I found one in the cmath  
> header
> file, but isn't that for C only? I don't know) including the boost  
> headers
> in $FSLDIR/extras/include/boost, but still can't find isfinite.
>
> I've tried compiling with different versions of gcc (I've tried  
> 2.95, 3.4.6
> and 4.0.2). I also removed the -ansi option from systemvars.mk. Has  
> anyone
> encountered a similar problem? Any help will be greatly appreciated.  
> Thanks
> in advance.
>
> Cipta
>