On 02/11/2009 01:01 PM, Rafael Marco de Lucas wrote:
> Hello,
>
> i found problems installing FSL in a powerPC 64bits running suse linux (sles9),
> it looks there is a problem with the definition of the function roundl,
> (i am using gcc-3.4.6 for compilation),
>
> you can see part of the build.log here:
> --------------
> ...
> c++ -Wall -ansi -pedantic -Wno-long-long -m64 -O3 -fexpensive-optimizations -m64 -I/gpfs/projects/uc19/soft/fsl/extras/include/newmat -I/gpfs/projects/uc19/soft/fsl/extras/include/boost -I. -I/gpfs/projects/uc19/soft/fsl/include -I/gpfs/projects/uc19/soft/fsl/include -c -o splinefield.o splinefield.cpp
> splinefield.cpp: In member function `unsigned int BASISFIELD::splinefield::fake_old_ksp(double, unsigned int, double) const':
> splinefield.cpp:1476: error: `roundl' was not declared in this scope
> splinefield.cpp:1476: warning: unused variable 'roundl'
> make: *** [splinefield.o] Error 1
> ...
> ---------------
>
> i tried to add #include <cmath> to splinefield.cpp but it did not work,
> i also tried to add the function definition by hand but then after it failed the link,
>
> i guess it would work to compile roundl by hand on my own, but i like to understand why it is not working (i.e. i dis the same in a i386 and it worked ok) and apply the official distribution fix,
>
> any help please ?
>
>
> thanks in advance,
> Rafa
>
From the man entry for roundl it says: "Compile with -std=c99". I don't
see that in your reported command line - or any of our config files?
:-( - so perhaps you need to try this first. Manually re-run the failed
command line adding the switch. If this works then your config file
($FSLCONFDIR/$FSLMACHTYPE/systemvars.mk) may need modifying.
--
Dave Flitney, IT Manager
Oxford Centre for Functional MRI of the Brain
E:[log in to unmask] W:+44-1865-222713 F:+44-1865-222717
URL: http://www.fmrib.ox.ac.uk/~flitney
|