cvs compile: error while doing hard_coded_scripts.cpp

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
shevek
Explorer
Explorer
Posts: 8
Joined: Mon Jun 23, 2003 1:49 pm

cvs compile: error while doing hard_coded_scripts.cpp

Post by shevek »

Hi,
i just tried to compile VS from cvs, sadly it aborts with following errors(in the second one i omitted lots of similar "pasting "operator" and "*" does not give a valid preprocessing token" errors):

Code: Select all

if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I ../../   -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_SDL_MIXER=1      -DHAVE_AL=1   -I/usr/include/python2.2 -DHAVE_PYTHON=1  -I../boost129 -I../../boost129 -I../src/boost129 -DUSE_BOOST_129=1   -pipe -O3 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math   -I/usr/include/SDL -D_REENTRANT -pipe  -MT hard_coded_scripts.o -MD -MP -MF ".deps/hard_coded_scripts.Tpo" \
  -c -o hard_coded_scripts.o `test -f 'hard_coded_scripts.cpp' || echo './'`hard_coded_scripts.cpp; \
then mv -f ".deps/hard_coded_scripts.Tpo" ".deps/hard_coded_scripts.Po"; \
else rm -f ".deps/hard_coded_scripts.Tpo"; exit 1; \
fi
In file included from ../../boost129/boost/config.hpp:35,
                 from ../../boost129/boost/python/ptr.hpp:17,
                 from ../../boost129/boost/python/converter/arg_to_python.hpp:9,
                 from ../../boost129/boost/python/call.hpp:14,
                 from ../../boost129/boost/python/object_core.hpp:11,
                 from ../../boost129/boost/python/object.hpp:9,
                 from ../../python/python_class.h:13,
                 from hard_coded_scripts.cpp:9:
../../boost129/boost/config/compiler/gcc.hpp:57:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results"
and then (directly after the first one);

Code: Select all

In file included from ../../boost129/boost/python.hpp:43,
                 from ../../python/python_class.h:16,
                 from hard_coded_scripts.cpp:9:
../../boost129/boost/python/operators.hpp:184:42: pasting "operator" and "+" does not give a valid preprocessing token
../../boost129/boost/python/operators.hpp:185:42: pasting "operator" and "-" does not give a valid preprocessing token

... lots of those operator preprocessing errors

In file included from ../../python/python_class.h:16,
                 from hard_coded_scripts.cpp:9:
../../boost129/boost/python.hpp:62:8: warning: extra tokens at end of #endif directive
make[4]: *** [hard_coded_scripts.o] Error 1
make[4]: Leaving directory `/home/andreas/Downloads/src/vegastrike/src/cmd/ai'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/andreas/Downloads/src/vegastrike/src/cmd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andreas/Downloads/src/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andreas/Downloads/src/vegastrike'
make: *** [all] Error 2
As compilers i tried gcc3.2 and gcc3.3 , i am using debian unstable and have no idea what the problem is. ./configure runs through without errors, but if you want, i can paste that too(it is 2228 lines). The configure compiler tests give me:

Code: Select all

configure:2137: gcc --version </dev/null >&5
gcc.real (GCC) 3.3 (Debian)
configure:2142: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3 (Debian)

Thanks in advance and keep up the good work! :)
Jadel
Merchant
Merchant
Posts: 59
Joined: Tue Jun 24, 2003 2:19 pm
Location: South Australia

Post by Jadel »

I had the same problem on gentoo with gcc 3.3
It was solved using the --enable-boost-128 on ./configure that I saw mentioned by energyman in the "cvs fails-missing depcomp" thread.
Can this get added to the FAQ?
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

shevek
Explorer
Explorer
Posts: 8
Joined: Mon Jun 23, 2003 1:49 pm

Post by shevek »

Cool, that fixed it. Thank you!
Post Reply