On my current OS [1], I found that I needed to replace this (in
{preprocess,search}/Makefile)...
CCOPT += -I/usr/include/c++/4.4/i686-linux-gnu
...with this...
CCOPT += -I/usr/include/c++/4.5/i686-linux-gnu
The errors were extremely cryptic [2], and I think it may be due to the bump
in g++ version number that is used.
[0]: uname -a
Linux mini-meee 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011
i686 i686 i386 GNU/Linux
[1]:
haz@mini-meee:~/Projects/fast-downward/src/preprocess$ make
g++ -m32 -g -Wall -W -Wno-sign-compare -Wno-deprecated -ansi -pedantic -Werror
-I/usr/include/c++/4.4/i686-linux-gnu -O3 -DNDEBUG -fomit-frame-pointer -c
planner.cc -o .obj/planner.o
In file included from /usr/include/c++/4.5/bits/ios_base.h:43:0,
from /usr/include/c++/4.5/ios:43,
from /usr/include/c++/4.5/ostream:40,
from /usr/include/c++/4.5/iostream:40,
from state.h:4,
from helper_functions.h:4,
from planner.cc:9:
/usr/include/c++/4.5/bits/locale_classes.h:394:5: error: ‘_GLIBCXX_CONST’ does
not name a type
In file included from /usr/include/c++/4.5/bits/locale_facets.h:2601:0,
from /usr/include/c++/4.5/bits/basic_ios.h:39,
from /usr/include/c++/4.5/ios:45,
from /usr/include/c++/4.5/ostream:40,
from /usr/include/c++/4.5/iostream:40,
from state.h:4,
from helper_functions.h:4,
from planner.cc:9:
/usr/include/c++/4.5/bits/locale_facets.tcc:136:3: error: ‘_GLIBCXX_PURE’ does
not name a type
/usr/include/c++/4.5/bits/locale_facets.tcc: In member function ‘_InIter
std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter,
std::ios_base&, std::ios_base::iostate&, std::string&) const’:
/usr/include/c++/4.5/bits/locale_facets.tcc:357:16: error: ‘__verify_grouping’
is not a member of ‘std’
/usr/include/c++/4.5/bits/locale_facets.tcc: In member function ‘_InIter
std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&,
std::ios_base::iostate&, _ValueT&) const’:
/usr/include/c++/4.5/bits/locale_facets.tcc:554:11: error: ‘__verify_grouping’
is not a member of ‘std’
In file included from /usr/include/c++/4.5/map:60:0,
from state.h:5,
from helper_functions.h:4,
from planner.cc:9:
/usr/include/c++/4.5/bits/stl_tree.h: At global scope:
/usr/include/c++/4.5/bits/stl_tree.h:140:3: error: ‘_GLIBCXX_PURE’ does not name
a type
/usr/include/c++/4.5/bits/stl_tree.h:143:3: error: ‘_GLIBCXX_PURE’ does not name
a type
/usr/include/c++/4.5/bits/stl_tree.h:146:3: error: ‘_GLIBCXX_PURE’ does not name
a type
/usr/include/c++/4.5/bits/stl_tree.h:149:3: error: ‘_GLIBCXX_PURE’ does not name
a type
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_iterator<_Tp>::_Self& std::_Rb_tree_iterator<_Tp>::operator++()’:
/usr/include/c++/4.5/bits/stl_tree.h:184:38: error: there are no arguments to
‘_Rb_tree_increment’ that depend on a template parameter, so a declaration of
‘_Rb_tree_increment’ must be available
/usr/include/c++/4.5/bits/stl_tree.h:184:38: note: (if you use ‘-fpermissive’,
G++ will accept your code, but allowing the use of an undeclared name is
deprecated)
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_iterator<_Tp>::_Self std::_Rb_tree_iterator<_Tp>::operator++
(int)’:
/usr/include/c++/4.5/bits/stl_tree.h:192:38: error: there are no arguments to
‘_Rb_tree_increment’ that depend on a template parameter, so a declaration of
‘_Rb_tree_increment’ must be available
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_iterator<_Tp>::_Self& std::_Rb_tree_iterator<_Tp>::operator--()’:
/usr/include/c++/4.5/bits/stl_tree.h:199:38: error: there are no arguments to
‘_Rb_tree_decrement’ that depend on a template parameter, so a declaration of
‘_Rb_tree_decrement’ must be available
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_iterator<_Tp>::_Self std::_Rb_tree_iterator<_Tp>::operator--
(int)’:
/usr/include/c++/4.5/bits/stl_tree.h:207:38: error: there are no arguments to
‘_Rb_tree_decrement’ that depend on a template parameter, so a declaration of
‘_Rb_tree_decrement’ must be available
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_const_iterator<_Tp>::_Self&
std::_Rb_tree_const_iterator<_Tp>::operator++()’:
/usr/include/c++/4.5/bits/stl_tree.h:259:38: error: there are no arguments to
‘_Rb_tree_increment’ that depend on a template parameter, so a declaration of
‘_Rb_tree_increment’ must be available
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_const_iterator<_Tp>::_Self
std::_Rb_tree_const_iterator<_Tp>::operator++(int)’:
/usr/include/c++/4.5/bits/stl_tree.h:267:38: error: there are no arguments to
‘_Rb_tree_increment’ that depend on a template parameter, so a declaration of
‘_Rb_tree_increment’ must be available
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_const_iterator<_Tp>::_Self&
std::_Rb_tree_const_iterator<_Tp>::operator--()’:
/usr/include/c++/4.5/bits/stl_tree.h:274:38: error: there are no arguments to
‘_Rb_tree_decrement’ that depend on a template parameter, so a declaration of
‘_Rb_tree_decrement’ must be available
/usr/include/c++/4.5/bits/stl_tree.h: In member function
‘std::_Rb_tree_const_iterator<_Tp>::_Self
std::_Rb_tree_const_iterator<_Tp>::operator--(int)’:
/usr/include/c++/4.5/bits/stl_tree.h:282:38: error: there are no arguments to
‘_Rb_tree_decrement’ that depend on a template parameter, so a declaration of
‘_Rb_tree_decrement’ must be available
/usr/include/c++/4.5/bits/stl_tree.h: At global scope:
/usr/include/c++/4.5/bits/stl_tree.h:1549:3: error: ‘_GLIBCXX_PURE’ does not
name a type
make: *** [.obj/planner.o] Error 1
haz@mini-meee:~/Projects/fast-downward/src/preprocess$
|