Compile Error [c23bfde]

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Compile Error [c23bfde]

#1 Post by AndrewW »

Any ideas on this one?

Code: Select all

Linking CXX shared library libfreeorioncommon.so
[ 42%] Built target freeorioncommon
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Other then that, mostly just seeing:

Code: Select all

warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Compile Error [c23bfde]

#2 Post by adrian_broher »

> Any ideas on this one?

Not without a full log file.

Also why you don't use the issue tracker?
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile Error [c23bfde]

#3 Post by AndrewW »

adrian_broher wrote:> Any ideas on this one?

Not without a full log file.
Got a little more out of it this time:

Code: Select all

[ 16%] Built target GiGi
Building v0.4.6+ build 2016-10-05.c23bfde
[ 16%] [ 16%] [ 17%] Built target freeorionversion
[ 17%] [ 18%] Building CXX object parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o
Building CXX object parse/CMakeFiles/freeorionparse.dir/BuildingsParser.cpp.o
Building CXX object parse/CMakeFiles/freeorionparse.dir/CommonParamsParser.cpp.o
Building CXX object GG/src/SDL/CMakeFiles/GiGiSDL.dir/SDLGUI.cpp.o
[ 43%] Built target freeorioncommon
[ 44%] Building CXX object parse/CMakeFiles/freeorionparse.dir/ConditionParser1.cpp.o
Linking CXX shared library ../../../libGiGiSDL.so
[ 44%] Built target GiGiSDL
[ 44%] Building CXX object parse/CMakeFiles/freeorionparse.dir/ConditionParser2.cpp.o
parse/CMakeFiles/freeorionparse.dir/build.make:54: recipe for target 'parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o' failed
parse/CMakeFiles/freeorionparse.dir/build.make:77: recipe for target 'parse/CMakeFiles/freeorionparse.dir/BuildingsParser.cpp.o' failed
parse/CMakeFiles/freeorionparse.dir/build.make:100: recipe for target 'parse/CMakeFiles/freeorionparse.dir/CommonParamsParser.cpp.o' failed
CMakeFiles/Makefile2:286: recipe for target 'parse/CMakeFiles/freeorionparse.dir/all' failed
Makefile:127: recipe for target 'all' failed
adrian_broher wrote:Also why you don't use the issue tracker?
Never messed with it, got enough places between here and the IRC channel.

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Compile Error [c23bfde]

#4 Post by adrian_broher »

AndrewW wrote:Got a little more out of it this time:
Unfortunately doesn't tell me anything useful.

Try running

Code: Select all

make VERBOSE=1
instead of the regular make
Never messed with it, got enough places between here and the IRC channel.
Fair enough.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile Error [c23bfde]

#5 Post by AndrewW »

adrian_broher wrote:Try running

Code: Select all

make VERBOSE=1
instead of the regular make

Code: Select all

/usr/bin/cmake -H/home/andrew/Games/freeorion -B/home/andrew/Games/freeorion --c
heck-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/andrew/Games/freeorion/CMakeFiles /
home/andrew/Games/freeorion/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/andrew/Games/freeorion'
make -f CMakeFiles/freeorionversion.dir/build.make CMakeFiles/freeorionversion.d
ir/depend
make[2]: Entering directory '/home/andrew/Games/freeorion'
cd /home/andrew/Games/freeorion && /usr/bin/cmake -E cmake_depends "Unix Makefil
es" /home/andrew/Games/freeorion /home/andrew/Games/freeorion /home/andrew/Games
/freeorion /home/andrew/Games/freeorion /home/andrew/Games/freeorion/CMakeFiles/
freeorionversion.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/andrew/Games/freeorion'
make -f CMakeFiles/freeorionversion.dir/build.make CMakeFiles/freeorionversion.d
ir/build
make[2]: Entering directory '/home/andrew/Games/freeorion'
/usr/bin/python2.7 /home/andrew/Games/freeorion/cmake/make_versioncpp.py /home/a
ndrew/Games/freeorion CMake
Building v0.4.6+ build 2016-10-05.c23bfde
make[2]: Leaving directory '/home/andrew/Games/freeorion'
/usr/bin/cmake -E cmake_progress_report /home/andrew/Games/freeorion/CMakeFiles 
[  0%] Built target freeorionversion
make -f CMakeFiles/freeorioncommon.dir/build.make CMakeFiles/freeorioncommon.dir
/depend
make[2]: Entering directory '/home/andrew/Games/freeorion'
cd /home/andrew/Games/freeorion && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/andrew/Games/freeorion /home/andrew/Games/freeorion /home/andrew/Games/freeorion /home/andrew/Games/freeorion /home/andrew/Games/freeorion/CMakeFiles/freeorioncommon.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/andrew/Games/freeorion'
make -f CMakeFiles/freeorioncommon.dir/build.make CMakeFiles/freeorioncommon.dir/build
make[2]: Entering directory '/home/andrew/Games/freeorion'
make[2]: Nothing to be done for 'CMakeFiles/freeorioncommon.dir/build'.
make[2]: Leaving directory '/home/andrew/Games/freeorion'
/usr/bin/cmake -E cmake_progress_report /home/andrew/Games/freeorion/CMakeFiles  50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
[ 25%] Built target freeorioncommon
make -f GG/src/CMakeFiles/GiGi.dir/build.make GG/src/CMakeFiles/GiGi.dir/depend
make[2]: Entering directory '/home/andrew/Games/freeorion'
cd /home/andrew/Games/freeorion && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/andrew/Games/freeorion /home/andrew/Games/freeorion/GG/src /home/andrew/Games/freeorion /home/andrew/Games/freeorion/GG/src /home/andrew/Games/freeorion/GG/src/CMakeFiles/GiGi.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/andrew/Games/freeorion'
make -f GG/src/CMakeFiles/GiGi.dir/build.make GG/src/CMakeFiles/GiGi.dir/build
make[2]: Entering directory '/home/andrew/Games/freeorion'
make[2]: Nothing to be done for 'GG/src/CMakeFiles/GiGi.dir/build'.
make[2]: Leaving directory '/home/andrew/Games/freeorion'
/usr/bin/cmake -E cmake_progress_report /home/andrew/Games/freeorion/CMakeFiles  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[ 41%] Built target GiGi
make -f GG/src/SDL/CMakeFiles/GiGiSDL.dir/build.make GG/src/SDL/CMakeFiles/GiGiSDL.dir/depend
make[2]: Entering directory '/home/andrew/Games/freeorion'
cd /home/andrew/Games/freeorion && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/andrew/Games/freeorion /home/andrew/Games/freeorion/GG/src/SDL /home/andrew/Games/freeorion /home/andrew/Games/freeorion/GG/src/SDL /home/andrew/Games/freeorion/GG/src/SDL/CMakeFiles/GiGiSDL.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/andrew/Games/freeorion'
make -f GG/src/SDL/CMakeFiles/GiGiSDL.dir/build.make GG/src/SDL/CMakeFiles/GiGiSDL.dir/build
make[2]: Entering directory '/home/andrew/Games/freeorion'
make[2]: Nothing to be done for 'GG/src/SDL/CMakeFiles/GiGiSDL.dir/build'.
make[2]: Leaving directory '/home/andrew/Games/freeorion'
/usr/bin/cmake -E cmake_progress_report /home/andrew/Games/freeorion/CMakeFiles  17
[ 42%] Built target GiGiSDL
make -f parse/CMakeFiles/freeorionparse.dir/build.make parse/CMakeFiles/freeorionparse.dir/depend
make[2]: Entering directory '/home/andrew/Games/freeorion'
cd /home/andrew/Games/freeorion && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/andrew/Games/freeorion /home/andrew/Games/freeorion/parse /home/andrew/Games/freeorion /home/andrew/Games/freeorion/parse /home/andrew/Games/freeorion/parse/CMakeFiles/freeorionparse.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/andrew/Games/freeorion'
make -f parse/CMakeFiles/freeorionparse.dir/build.make parse/CMakeFiles/freeorionparse.dir/build
make[2]: Entering directory '/home/andrew/Games/freeorion'
/usr/bin/cmake -E cmake_progress_report /home/andrew/Games/freeorion/CMakeFiles 80
[ 43%] Building CXX object parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o
cd /home/andrew/Games/freeorion/parse && /usr/bin/c++   -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LINK -DBOOST_LOG_DYN_LINK -DENABLE_BINRELOC -DFREEORION_BUILD_PARSE -DFREEORION_LINUX -DNDEBUG -Dfreeorionparse_EXPORTS -O3 -DNDEBUG -fPIC -I/home/andrew/Games/freeorion -I/usr/include/freetype2 -I/home/andrew/Games/freeorion/GG    -Wall -fvisibility=hidden -O3 -o CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o -c /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp
parse/CMakeFiles/freeorionparse.dir/build.make:54: recipe for target 'parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o' failed
make[2]: Leaving directory '/home/andrew/Games/freeorion'
CMakeFiles/Makefile2:286: recipe for target 'parse/CMakeFiles/freeorionparse.dir/all' failed
make[1]: Leaving directory '/home/andrew/Games/freeorion'
Makefile:127: recipe for target 'all' failed

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Compile Error [c23bfde]

#6 Post by adrian_broher »

Nothing suspicious so far.

What is the return value of the following command (you can get it with `echo $?`):

Code: Select all

cd /home/andrew/Games/freeorion/parse && /usr/bin/c++   -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LINK -DBOOST_LOG_DYN_LINK -DENABLE_BINRELOC -DFREEORION_BUILD_PARSE -DFREEORION_LINUX -DNDEBUG -Dfreeorionparse_EXPORTS -O3 -DNDEBUG -fPIC -I/home/andrew/Games/freeorion -I/usr/include/freetype2 -I/home/andrew/Games/freeorion/GG    -Wall -fvisibility=hidden -O3 -o CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o -c /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp
Does `/home/andrew/Games/freeorion/parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o` exist after calling this command (check via `ls -l /home/andrew/Games/freeorion/parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o`)?

What does the following command report?

Code: Select all

cd /home/andrew/Games/freeorion/parse && /usr/bin/c++ -v  -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LINK -DBOOST_LOG_DYN_LINK -DENABLE_BINRELOC -DFREEORION_BUILD_PARSE -DFREEORION_LINUX -DNDEBUG -Dfreeorionparse_EXPORTS -O3 -DNDEBUG -fPIC -I/home/andrew/Games/freeorion -I/usr/include/freetype2 -I/home/andrew/Games/freeorion/GG    -Wall -fvisibility=hidden -O3 -o CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o -c /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile Error [c23bfde]

#7 Post by AndrewW »

adrian_broher wrote:What is the return value of the following command (you can get it with `echo $?`):

Code: Select all

cd /home/andrew/Games/freeorion/parse && /usr/bin/c++   -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LINK -DBOOST_LOG_DYN_LINK -DENABLE_BINRELOC -DFREEORION_BUILD_PARSE -DFREEORION_LINUX -DNDEBUG -Dfreeorionparse_EXPORTS -O3 -DNDEBUG -fPIC -I/home/andrew/Games/freeorion -I/usr/include/freetype2 -I/home/andrew/Games/freeorion/GG    -Wall -fvisibility=hidden -O3 -o CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o -c /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp
1
adrian_broher wrote:Does `/home/andrew/Games/freeorion/parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o` exist after calling this command (check via `ls -l /home/andrew/Games/freeorion/parse/CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o`)?
No, the directory exists but not the file.
adrian_broher wrote:What does the following command report?

Code: Select all

cd /home/andrew/Games/freeorion/parse && /usr/bin/c++ -v  -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LINK -DBOOST_LOG_DYN_LINK -DENABLE_BINRELOC -DFREEORION_BUILD_PARSE -DFREEORION_LINUX -DNDEBUG -Dfreeorionparse_EXPORTS -O3 -DNDEBUG -fPIC -I/home/andrew/Games/freeorion -I/usr/include/freetype2 -I/home/andrew/Games/freeorion/GG    -Wall -fvisibility=hidden -O3 -o CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o -c /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp

Code: Select all

Using built-in specs.
COLLECT_GCC=/usr/bin/c++
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10) 
COLLECT_GCC_OPTIONS='-v' '-D' 'BOOST_ALL_DYN_LINK' '-D' 'BOOST_ALL_NO_LINK' '-D' 'BOOST_LOG_DYN_LINK' '-D' 'ENABLE_BINRELOC' '-D' 'FREEORION_BUILD_PARSE' '-D' 'FREEORION_LINUX' '-D' 'NDEBUG' '-D' 'freeorionparse_EXPORTS' '-O3' '-D' 'NDEBUG' '-fPIC' '-I' '/home/andrew/Games/freeorion' '-I' '/usr/include/freetype2' '-I' '/home/andrew/Games/freeorion/GG' '-Wall' '-fvisibility=hidden' '-O3' '-o' 'CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.9/cc1plus -quiet -v -I /home/andrew/Games/freeorion -I /usr/include/freetype2 -I /home/andrew/Games/freeorion/GG -imultiarch x86_64-linux-gnu -D_GNU_SOURCE -D BOOST_ALL_DYN_LINK -D BOOST_ALL_NO_LINK -D BOOST_LOG_DYN_LINK -D ENABLE_BINRELOC -D FREEORION_BUILD_PARSE -D FREEORION_LINUX -D NDEBUG -D freeorionparse_EXPORTS -D NDEBUG /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp -quiet -dumpbase AlignmentsParser.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/freeorionparse.dir/AlignmentsParser.cpp.o -O3 -O3 -Wall -version -fPIC -fvisibility=hidden -o /tmp/ccrXTw7v.s
GNU C++ (Debian 4.9.2-10) version 4.9.2 (x86_64-linux-gnu)
	compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/4.9"
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/andrew/Games/freeorion
 /usr/include/freetype2
 /home/andrew/Games/freeorion/GG
 /usr/include/c++/4.9
 /usr/include/x86_64-linux-gnu/c++/4.9
 /usr/include/c++/4.9/backward
 /usr/lib/gcc/x86_64-linux-gnu/4.9/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C++ (Debian 4.9.2-10) version 4.9.2 (x86_64-linux-gnu)
	compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: ff85870e740eb08c48a56c2c170390f8
In file included from /usr/include/boost/phoenix/core/is_nullary.hpp:14:0,
                 from /usr/include/boost/phoenix/core/actor.hpp:19,
                 from /usr/include/boost/log/expressions/keyword.hpp:21,
                 from /home/andrew/Games/freeorion/parse/../util/Logger.h:5,
                 from /home/andrew/Games/freeorion/parse/ParseImpl.h:6,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:3:
/usr/include/boost/phoenix/core/is_actor.hpp:26:12: error: redeclared with 2 template parameters
     struct is_actor
            ^
In file included from /usr/include/boost/spirit/home/phoenix/core.hpp:15:0,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:14,
                 from /usr/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/include/boost/spirit/home/lex.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /home/andrew/Games/freeorion/parse/Lexer.h:6,
                 from /home/andrew/Games/freeorion/parse/Label.h:4,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:1:
/usr/include/boost/spirit/home/phoenix/core/is_actor.hpp:23:12: note: previous declaration ‘template<class T> struct boost::phoenix::is_actor’ used 1 template parameter
     struct is_actor : mpl::false_ {};
            ^
In file included from /usr/include/boost/phoenix/core/is_nullary.hpp:14:0,
                 from /usr/include/boost/phoenix/core/actor.hpp:19,
                 from /usr/include/boost/log/expressions/keyword.hpp:21,
                 from /home/andrew/Games/freeorion/parse/../util/Logger.h:5,
                 from /home/andrew/Games/freeorion/parse/ParseImpl.h:6,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:3:
/usr/include/boost/phoenix/core/is_actor.hpp:41:12: error: redefinition of ‘struct boost::phoenix::is_actor<boost::phoenix::actor<BaseT0> >’
     struct is_actor<actor<Expr> >
            ^
In file included from /usr/include/boost/spirit/home/phoenix/core.hpp:15:0,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:14,
                 from /usr/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/include/boost/spirit/home/lex.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /home/andrew/Games/freeorion/parse/Lexer.h:6,
                 from /home/andrew/Games/freeorion/parse/Label.h:4,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:1:
/usr/include/boost/spirit/home/phoenix/core/is_actor.hpp:26:12: error: previous definition of ‘struct boost::phoenix::is_actor<boost::phoenix::actor<BaseT0> >’
     struct is_actor<actor<Base> > : mpl::true_ {};
            ^
In file included from /usr/include/boost/log/expressions/keyword.hpp:21:0,
                 from /home/andrew/Games/freeorion/parse/../util/Logger.h:5,
                 from /home/andrew/Games/freeorion/parse/ParseImpl.h:6,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:3:
/usr/include/boost/phoenix/core/actor.hpp:41:16: error: redefinition of ‘struct boost::phoenix::detail::error_expecting_arguments’
         struct error_expecting_arguments
                ^
In file included from /usr/include/boost/spirit/home/phoenix/core.hpp:13:0,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:14,
                 from /usr/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/include/boost/spirit/home/lex.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /home/andrew/Games/freeorion/parse/Lexer.h:6,
                 from /home/andrew/Games/freeorion/parse/Label.h:4,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:1:
/usr/include/boost/spirit/home/phoenix/core/actor.hpp:46:16: error: previous definition of ‘struct boost::phoenix::detail::error_expecting_arguments’
         struct error_expecting_arguments
                ^
In file included from /usr/include/boost/log/expressions/keyword.hpp:21:0,
                 from /home/andrew/Games/freeorion/parse/../util/Logger.h:5,
                 from /home/andrew/Games/freeorion/parse/ParseImpl.h:6,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:3:
/usr/include/boost/phoenix/core/actor.hpp:161:12: error: redefinition of ‘struct boost::phoenix::actor<Eval>’
     struct actor
            ^
In file included from /usr/include/boost/spirit/home/phoenix/core.hpp:13:0,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:14,
                 from /usr/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/include/boost/spirit/home/lex.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /home/andrew/Games/freeorion/parse/Lexer.h:6,
                 from /home/andrew/Games/freeorion/parse/Label.h:4,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:1:
/usr/include/boost/spirit/home/phoenix/core/actor.hpp:65:12: error: previous definition of ‘struct boost::phoenix::actor<Eval>’
     struct actor : Eval
            ^
In file included from /usr/include/boost/log/expressions/keyword.hpp:21:0,
                 from /home/andrew/Games/freeorion/parse/../util/Logger.h:5,
                 from /home/andrew/Games/freeorion/parse/ParseImpl.h:6,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:3:
/usr/include/boost/phoenix/core/actor.hpp:281:12: error: redefinition of ‘struct boost::result_of<boost::phoenix::actor<BaseT0>()>’
     struct result_of<phoenix::actor<Expr>()>
            ^
In file included from /usr/include/boost/spirit/home/phoenix/core.hpp:13:0,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:14,
                 from /usr/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/include/boost/spirit/home/lex.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /home/andrew/Games/freeorion/parse/Lexer.h:6,
                 from /home/andrew/Games/freeorion/parse/Label.h:4,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:1:
/usr/include/boost/spirit/home/phoenix/core/actor.hpp:183:12: error: previous definition of ‘struct boost::result_of<boost::phoenix::actor<BaseT0>()>’
     struct result_of<phoenix::actor<Eval>()>
            ^
In file included from /usr/include/boost/log/expressions/keyword.hpp:21:0,
                 from /home/andrew/Games/freeorion/parse/../util/Logger.h:5,
                 from /home/andrew/Games/freeorion/parse/ParseImpl.h:6,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:3:
/usr/include/boost/phoenix/core/actor.hpp:286:12: error: redefinition of ‘struct boost::result_of<const boost::phoenix::actor<BaseT0>()>’
     struct result_of<phoenix::actor<Expr> const()>
            ^
In file included from /usr/include/boost/spirit/home/phoenix/core.hpp:13:0,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:14,
                 from /usr/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/include/boost/spirit/home/lex.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /home/andrew/Games/freeorion/parse/Lexer.h:6,
                 from /home/andrew/Games/freeorion/parse/Label.h:4,
                 from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:1:
/usr/include/boost/spirit/home/phoenix/core/actor.hpp:189:12: error: previous definition of ‘struct boost::result_of<const boost::phoenix::actor<BaseT0>()>’
     struct result_of<phoenix::actor<Eval> const()>
            ^
In file included from /home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:3:0:
/home/andrew/Games/freeorion/parse/ParseImpl.h: In instantiation of ‘bool parse::detail::parse_file(const boost::filesystem::path&, Arg1&) [with Rules = {anonymous}::rules; Arg1 = std::vector<Alignment>]’:
/home/andrew/Games/freeorion/parse/AlignmentsParser.cpp:95:95:   required from here
/home/andrew/Games/freeorion/parse/ParseImpl.h:90:38: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
         return success && (!distance || distance == 1 && *first == '\n');

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Compile Error [c23bfde]

#8 Post by adrian_broher »

Did you update the compiler recently? What debian version are you using?
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

dbenage-cx
Programmer
Posts: 389
Joined: Sun Feb 14, 2016 12:08 am

Re: Compile Error [c23bfde]

#9 Post by dbenage-cx »

Are you able to compile from a previous commit? (last known working one, or maybe 63f4283)

From the gcc version, I'm assuming Debian 8 (Jessie) with boost 1.55.
If so, might try adding to Parse.h:3

Code: Select all

#define BOOST_SPIRIT_USE_PHOENIX_V3

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile Error [c23bfde]

#10 Post by AndrewW »

adrian_broher wrote:Did you update the compiler recently? What debian version are you using?
No updates to the compiler since the last build (09-26-2016).

Linux version 3.16.0-4-amd64 ([email protected]) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29)
dbenage-cx wrote:Are you able to compile from a previous commit? (last known working one, or maybe 63f4283)
Haven't tried.
dbenage-cx wrote:From the gcc version, I'm assuming Debian 8 (Jessie) with boost 1.55.
Package: libboost-all-dev
Version: 1.55.0.2

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Compile Error [c23bfde]

#11 Post by adrian_broher »

Did you try out the change dbenage-cx suggested (defining BOOST_SPIRIT_USE_PHOENIX_V3)?
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile Error [c23bfde]

#12 Post by AndrewW »

adrian_broher wrote:Did you try out the change dbenage-cx suggested (defining BOOST_SPIRIT_USE_PHOENIX_V3)?
Haven't gotten back to it yet. Will see about trying that today.

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile Error [c23bfde]

#13 Post by AndrewW »

adrian_broher wrote:Did you try out the change dbenage-cx suggested (defining BOOST_SPIRIT_USE_PHOENIX_V3)?
Tried with 6769e6d. Didn't help:

Code: Select all

[ 38%] Building CXX object CMakeFiles/freeorioncommon.dir/util/SerializeMultiplayerCommon.cpp.o
/home/andrew/Games/freeorion/util/SaveGamePreviewUtils.cpp: In function ‘void LoadSaveGamePreviews(const boost::filesystem::path&, const string&, std::vector<FullPreview>&)’:
/home/andrew/Games/freeorion/util/SaveGamePreviewUtils.cpp:243:51: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
             if (it->path().filename().extension() == extension & !fs::is_directory(it->path())) {
                                                   ^
[ 39%] Building CXX object CMakeFiles/freeorioncommon.dir/util/SerializeOrderSet.cpp.o
[ 39%] Building CXX object CMakeFiles/freeorioncommon.dir/util/SerializeUniverse.cpp.o
[ 40%] Building CXX object CMakeFiles/freeorioncommon.dir/util/SitRepEntry.cpp.o
[ 40%] Building CXX object CMakeFiles/freeorioncommon.dir/util/StringTable.cpp.o
[ 40%] Building CXX object CMakeFiles/freeorioncommon.dir/util/VarText.cpp.o
[ 41%] Building CXX object CMakeFiles/freeorioncommon.dir/util/Version.cpp.o
[ 41%] Building CXX object CMakeFiles/freeorioncommon.dir/util/XMLDoc.cpp.o
[ 42%] Building C object CMakeFiles/freeorioncommon.dir/util/binreloc.c.o
Linking CXX shared library libfreeorioncommon.so
[ 42%] Built target freeorioncommon
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Compile Error [c23bfde]

#14 Post by adrian_broher »

Can you checkout the `force-phoenix-version` from the freeorion repository and try to compile it?
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile Error [c23bfde]

#15 Post by AndrewW »

adrian_broher wrote:Can you checkout the `force-phoenix-version` from the freeorion repository and try to compile it?
Same problem:

Code: Select all

[ 42%] Building C object CMakeFiles/freeorioncommon.dir/util/binreloc.c.o
Linking CXX shared library libfreeorioncommon.so
[ 42%] Built target freeorioncommon
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Post Reply