[Gecode] Problem compiling gecode.

Grégoire Dooms dooms at info.ucl.ac.be
Thu Feb 10 11:09:21 CET 2005


Hi,
I'm new to gecode and got a tarball of a cvs check-out from Christian.
I've encountered a problem while trying to compile gecode.

The error is in int/gcc/bnd_tree.icc .
I'm building on Pentium M, linux 2.6.4 , gcc version 3.3.4 (Debian
1:3.3.4-7).

The versions of the files in int/gcc are
/bnd_tree.icc/1.5/Tue Feb  1 12:55:53 2005//
/dom.icc/1.9/Tue Feb  1 12:55:53 2005//
/gccbndsup.icc/1.8/Tue Feb  1 12:55:53 2005//
/gccdomsup.icc/1.9/Tue Feb  1 12:55:53 2005//
/graphalg.icc/1.8/Tue Feb  1 12:55:53 2005//
/lbc.icc/1.4/Fri Jan 28 11:36:33 2005//
/post.cc/1.6/Tue Feb  1 12:55:53 2005//
/ubc.icc/1.5/Fri Jan 28 11:36:33 2005//
/val.icc/1.4/Tue Feb  1 12:55:53 2005//


make  all-recursive
make[1]: Entering directory `/home/dooms/gecode'
Making all in kernel
make[2]: Entering directory `/home/dooms/gecode/kernel'
make  all-am
make[3]: Entering directory `/home/dooms/gecode/kernel'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/dooms/gecode/kernel'
make[2]: Leaving directory `/home/dooms/gecode/kernel'
Making all in search
make[2]: Entering directory `/home/dooms/gecode/search'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/dooms/gecode/search'
Making all in int
make[2]: Entering directory `/home/dooms/gecode/int'
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
-I..   -DGECODE_BUILD_INT -O3 -finline-limit=3000 -DNDEBUG -Wall -MT
gcc/post.lo -MD -MP -MF "gcc/.deps/post.Tpo" \
  -c -o gcc/post.lo `test -f 'gcc/post.cc' || echo './'`gcc/post.cc; \
then mv -f "gcc/.deps/post.Tpo" "gcc/.deps/post.Plo"; \
else rm -f "gcc/.deps/post.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DGECODE_BUILD_INT -O3
-finline-limit=3000 -DNDEBUG -Wall -MT gcc/post.lo -MD -MP -MF
gcc/.deps/post.Tpo -c gcc/post.cc
../int/gcc/bnd_tree.icc: In constructor
`GCC::Bnd_Tree<Var>::Bnd_Tree(Space*,
   VarArray<T>&, SharedArray<int>&, SharedArray<int>&) [with Var = IntVar]':
../int/gcc/bnd_tree.icc:198:   instantiated from `static ExecStatus
GCC::Bnd_Tree<Var>::post(Space*, VarArray<T>&, SharedArray<int>&,
SharedArray<int>&) [with Var = IntVar]'
gcc/post.cc:62:   instantiated from here
../int/gcc/bnd_tree.icc:113: error: `counter' undeclared (first use this
   function)
../int/gcc/bnd_tree.icc:113: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
make[2]: *** [gcc/post.lo] Error 1
make[2]: Leaving directory `/home/dooms/gecode/int'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dooms/gecode'
make: *** [all] Error 2

If I try to remove everything related to int/gcc in int/Makefile, 
compilation fails in int/regular/dfa.cc

I can provide any additional information needed to spot the problem.
Cheers,
--
Grégoire Dooms




More information about the gecode-users mailing list