Hi Phil,
MIST (and I believe some other parts of 5.0.10) require a c++11 compiler to build - have a look at the CXX11= line in config/linux_64-gcc4.8/systemvars.mk.
The default setting is to use SCL to activate a newer version of GCC, which allows FSL to be built on systems with older versions of GCC. If your default version is 4.8, I think you can just change the line to read
CXX11=c++
Hope that helps!
Eelke
> On 9 May 2017, at 13:33, Phill Harvey-Smith <[log in to unmask]> wrote:
>
> Hi all,
>
> I'm trying to build FSL 5.0.10 on Centos 7, to install as an alternate to 5.0.9 which I was able to compile successfully a couple of months ago.
>
> # uname -a
> Linux test-r710 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> Steps taken so far :
>
> 1) Downloaded and unpacked the fsl tar file to /usr/local/packages/fsl and renamed it to fsl-5.0.10.
>
> 2) Changed into fsl-5.0.10 and set FSLDIR=`pwd`
>
> 3) edited ${FSLDIR}/etc/fslconf/fsl.sh so that it correctly sets FSLCONFDIR and FSLMACHTYPE.
>
> 4) run . ${FSLDIR}/etc/fslconf/fsl.sh and checked that the FSLMACHTYPE folder exists in config :
> ls -d $FSLDIR/config/$FSLMACHTYPE
> /usr/local/packages/fsl-5.0.10/config/linux_64-gcc4.8
>
> 5) run build, this runs for a while and then exits reporting an error making one of the modules.
>
> 6) On looking at the build.log I find the following errors (near the
> end of the file).
>
> /usr/local/packages/fsl-5.0.10/config/common/rules.mk:32: warning: ignoring old recipe for target `clean'
> scl enable devtoolset-2 -- c++ -c -Wall -ansi -pedantic -Wno-long-long -std=c++11 -m64 -g -O3 -fexpensive-optimizations -m64 -I/usr/local/packages/fsl-5.0.10/extras/include/boost -I/usr/local/packages/fsl-5.0.10/include/newimage -I/usr/local/packages/fsl-5.0.10/extras/include/newmat -I/usr/include -I/usr/local/packages/fsl-5.0.10/extras/include/libgdc -I/usr/local/packages/fsl-5.0.10/extras/include -I/usr/local/packages/fsl-5.0.10/extras/include/libsqlite -I/usr/local/packages/fsl-5.0.10/extras/include -I/home/fs0/cowboy/var/caper_linux_64-gcc4.4/VTK7/include/vtk-7.0 -Icommon -I. -I/usr/local/packages/fsl-5.0.10/include -I/usr/local/packages/fsl-5.0.10/include -o common/gibbsshapemodel.o common/gibbsshapemodel.cpp
> Unable to open /etc/scl/conf/devtoolset-2!
> make: *** [common/gibbsshapemodel.o] Error 1
>
> There are also a bunch of errors removing .o files before this, but this can be solved by modifying src/mist-clean/Makefile to do an rm-f instead of just rm (this is what the other makefiles seem to do).
>
> Does anyone know what the solution to this might be?
>
> Cheers.
>
> Phill.
|