I'm the Fedora spring maintainer.
I'm trying to get 98 built and tested.
While building spring I'm getting the following errors:
Code: Select all
[ 47%] Building CXX object tools/unitsync/CMakeFiles/unitsync.dir/__/__/rts/System/FileSystem/RapidHandler.cpp.o
cd /home/gilboa/work/redhat/BUILD/spring_98.0/tools/unitsync && /usr/lib64/ccache/c++ -DBITMAP_NO_OPENGL -DBOOST_NO_FENV_H -DHEADLESS -DNOT_USING_CREG -DNO_SOUND -DSPRING_DATADIR=\"/usr/share/spring\" -DSTREFLOP_SSE -DSYNCCHECK -DUNITSYNC -DUSE_LIBSQUISH -D_GLIBCXX_USE_NANOSLEEP -D_RANDOM_TCC -Dunitsync_EXPORTS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DBOOST_FILESYSTEM_VERSION=2 -fuse-ld=gold -std=gnu++11 -mtune=generic -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pthread -O2 -Wno-unknown-pragmas -DNDEBUG -g -fPIC -I/home/gilboa/work/redhat/BUILD/spring_98.0/include/SDL2 -I/home/gilboa/work/redhat/BUILD/spring_98.0/tools/unitsync/../../rts/lib/lua/include -I/home/gilboa/work/redhat/BUILD/spring_98.0/tools/unitsync/../../rts/lib/7zip -I/home/gilboa/work/redhat/BUILD/spring_98.0/tools/unitsync/../../rts -I/home/gilboa/work/redhat/BUILD/spring_98.0/src-generated/engine -fpic -o CMakeFiles/unitsync.dir/__/__/rts/System/FileSystem/RapidHandler.cpp.o -c /home/gilboa/work/redhat/BUILD/spring_98.0/rts/System/FileSystem/RapidHandler.cpp
In file included from /usr/include/boost/filesystem.hpp:15:0,
from /home/gilboa/work/redhat/BUILD/spring_98.0/rts/System/FileSystem/FileSystemAbstraction.cpp:21:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
# error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
^
Any idea what's broken?
Will adding add_definitions(-DBOOST_FILESYSTEM_VERSION=3) in the main CMakefiles do the job?
- Gilboa