Hi Chuck,
I ran/run into the same issue:
http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind04&L=FSL&P=R144881&I=-3
Uncommenting the ntpsi and ntapsi lines in the constructor did the
trick.
-Chris
--
Christopher Bailey <[log in to unmask]>
PET Centre and
Center for Functionally Integrative Neuroscience
Aarhus University Hospital, Denmark
http://www.cfin.au.dk/
On Tue, 2005-08-16 at 11:01 -0700, Chuck Theobald wrote:
> Hi,
>
> I am having a problem building FLAME on my machine:
>
> AMD Athlon 64
> Gentoo Linux 2.6.11
> GCC 3.3.5
>
> The error I get following a "build flame" is:
>
> chuck@gruyere fsl $ tail -n 40 build.log
>
>
> BUILD successfully made all projects
>
>
>
> Making project src/flame
>
> c++ -Wall -ansi -pedantic -Wno-deprecated -Wno-long-long -O3
> -fexpensive-optimizations -march=i686 -mcpu=i686
> -I/usr/local/fsl/extras/include/newmat
> -I/usr/local/fsl/extras/include/libprob
> -I/usr/local/fsl/extras/include/zlib -I. -I/usr/local/fsl/include
> -I/usr/local/fsl/include -c -o gsmanager.o gsmanager.cc
> In file included from gsmanager.cc:69:
> gsmanager.h: In constructor `Gs::Gsmanager::Gsmanager()':
> gsmanager.h:42: error: uninitialized member 'Gs::Gsmanager::ntapsi' with
> 'const' type 'const int'
> gsmanager.h:42: error: uninitialized member 'Gs::Gsmanager::ntpsi' with
> 'const'
> type 'const int'
> make: *** [gsmanager.o] Error 1
> c++ -Wall -ansi -pedantic -Wno-deprecated -Wno-long-long -O3
> -fexpensive-optimizations -march=i686 -mcpu=i686
> -I/usr/local/fsl/extras/include/newmat
> -I/usr/local/fsl/extras/include/libprob
> -I/usr/local/fsl/extras/include/zlib -I. -I/usr/local/fsl/include
> -I/usr/local/fsl/include -c -o flame.o flame.cc
> In file included from flame.cc:80:
> gsmanager.h: In constructor `Gs::Gsmanager::Gsmanager()':
> gsmanager.h:42: error: uninitialized member 'Gs::Gsmanager::ntapsi' with
> 'const' type 'const int'
> gsmanager.h:42: error: uninitialized member 'Gs::Gsmanager::ntpsi' with
> 'const'
> type 'const int'
> make: *** [flame.o] Error 1
> make: Target `all' not remade because of errors.
>
> =========================
> ERROR::Could not make flame successfully
>
>
>
>
>
> !!ERROR in BUILD!!
> Could not make the following projects successfully:
> flame
>
>
>
>
> chuck@gruyere fsl $
>
>
> The code from gsmanager.h shows:
>
> chuck@gruyere fsl $ grep -C 5 ntapsi src/flame/gsmanager.h
> public:
>
> // constructor
> Gsmanager() :
> opts(GsOptions::getInstance()),
> /* ntapsi(16), */
> /* ntpsi(23), */
> /* psics(ntpsi), */
> /* apsics(ntapsi), */
> nmaskvoxels(0)
> /* doflut(50) */
> {
> /* doflut = 0; */
> /* for(int d=1;d <=doflut.Nrows();d++) */
> --
> int ysize;
> int zsize;
>
> GsOptions& opts;
>
> const int ntapsi;
> const int ntpsi;
> ColumnVector psics;
> ColumnVector apsics;
>
> int nmaskvoxels;
> chuck@gruyere fsl $
>
>
> It seems the 3.3.5 compiler is picky about the uninitialized const
> int. Earlier versions (3.2.2 on ppc64) pass the above code without
> argument. I am tempted to simply initialize these const's with 16 and 23,
> respectively, but don't know where that would land me. Alternatively, I
> could make them not const and see where that goes. Any advice would be
> appreciated. At this point, second-level analysis is stalled on our
> fastest machine until this is resolved.
>
> Regards,
>
> Chuck Theobald
> System Administrator
> The Robert and Beverly Lewis Center for Neuroimaging
> University of Oregon
> P: 541-346-0343
> F: 541-346-0345
|