/usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:399: error: expec ted init-declarator before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:399: error: expec ted `;' before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:439: error: expec ted nested-name-specifier before "deque" /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:439: error: expec ted init-declarator before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:439: error: expec ted `;' before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:473: error: expec ted init-declarator before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:473: error: expec ted `;' before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:550: error: expec ted init-declarator before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:550: error: expec ted `;' before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:630: error: expec ted init-declarator before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:630: error: expec ted `;' before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:652: error: expec ted init-declarator before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:652: error: expec ted `;' before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:674: error: expec ted init-declarator before '<' token /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/deque.tcc:674: error: expec ted `;' before '<' token In file included from ./calc++-parser.hh:56, from ./calc++-scanner.ll:7: stack.hh:28: error: `std::deque' has not been declared stack.hh:28: error: expected `>' before '<' token stack.hh:28: error: expected unqualified-id before '>' token stack.hh:28: error: expected `;' before '>' token stack.hh:90: error: `stack' has not been declared stack.hh:90: error: expected `>' before '<' token stack.hh:90: error: expected unqualified-id before '>' token stack.hh:90: error: expected `;' before '>' token In file included from location.hh:31, from ./calc++-parser.hh:57, from ./calc++-scanner.ll:7: position.hh:88: error: expected init-declarator before '&' token position.hh:88: error: expected `,' or `;' before '&' token position.hh:97: error: expected init-declarator before "operator" position.hh:97: error: expected `,' or `;' before "operator" position.hh:104: error: expected init-declarator before '&' token position.hh:104: error: expected `,' or `;' before '&' token position.hh:112: error: expected init-declarator before "operator" position.hh:112: error: expected `,' or `;' before "operator" position.hh:122: error: expected `,' or `...' before '&' token position.hh:123: error: ISO C++ forbids declaration of `position' with no type position.hh: In function `std::ostream& yy::operator<<(std::ostream&, int)': position.hh:124: error: `pos' undeclared (first use this function) In file included from ./calc++-parser.hh:57, from ./calc++-scanner.ll:7: location.hh: At global scope: location.hh:76: error: `position' does not name a type location.hh:78: error: `position' does not name a type location.hh: In constructor `yy::location::location()': location.hh:44: error: class `yy::location' does not have any field named `begin' location.hh:45: error: class `yy::location' does not have any field named `end' location.hh: In member function `void yy::location::step()': location.hh:57: error: `begin' undeclared (first use this function) location.hh:57: error: `end' undeclared (first use this function) location.hh: In member function `void yy::location::columns(unsigned int)': location.hh:63: error: `end' undeclared (first use this function) location.hh: In member function `void yy::location::lines(unsigned int)': location.hh:69: error: `end' undeclared (first use this function) location.hh: At global scope: location.hh:82: error: expected init-declarator before "operator" location.hh:82: error: expected `,' or `;' before "operator" location.hh:90: error: expected init-declarator before "operator" location.hh:90: error: expected `,' or `;' before "operator" location.hh:98: error: expected init-declarator before '&' token location.hh:98: error: expected `,' or `;' before '&' token location.hh:110: error: expected `,' or `...' before '&' token location.hh:111: error: ISO C++ forbids declaration of `location' with no type location.hh: In function `std::ostream& yy::operator<<(std::ostream&, int)': location.hh:111: error: redefinition of `std::ostream& yy::operator<<(std::ostream&, int) ' position.hh:123: error: `std::ostream& yy::operator<<(std::ostream&, int)' previously def ined here location.hh:112: error: `position' undeclared (first use this function) location.hh:112: error: expected `;' before "last" location.hh:113: error: `loc' undeclared (first use this function) location.hh:114: error: `last' undeclared (first use this function) location.hh:117: error: no match for 'operator<<' in 'ostr << '-'' location.hh:119: error: no match for 'operator<<' in 'ostr << '-'' location.hh:121: error: no match for 'operator<<' in 'ostr << '-'' In file included from ./calc++-scanner.ll:7: ./calc++-parser.hh: At global scope: ./calc++-parser.hh:130: error: `traits' is not a template ./calc++-parser.hh:130: error: `calcxx_parser' was not declared in this scope ./calc++-parser.hh:131: error: redeclaration of `yy::traits

' as a non-template ./calc++-parser.hh:146: error: ISO C++ forbids declaration of `traits' with no type ./calc++-parser.hh:146: error: expected `;' before '<' token ./calc++-parser.hh:148: error: ISO C++ forbids declaration of `traits' with no type ./calc++-parser.hh:148: error: expected `;' before '<' token ./calc++-parser.hh:183: error: expected `,' or `...' before '&' token ./calc++-parser.hh:183: error: ISO C++ forbids declaration of `location_type' with no typ e ./calc++-parser.hh:195: error: expected `,' or `...' before '*' token ./calc++-parser.hh:196: error: ISO C++ forbids declaration of `semantic_type' with no typ e ./calc++-parser.hh:201: error: ISO C++ forbids declaration of `traits' with no type ./calc++-parser.hh:201: error: expected `;' before '<' token ./calc++-parser.hh:203: error: ISO C++ forbids declaration of `stack' with no type ./calc++-parser.hh:203: error: expected `;' before '<' token ./calc++-parser.hh:205: error: ISO C++ forbids declaration of `stack' with no type ./calc++-parser.hh:205: error: expected `;' before '<' token ./calc++-parser.hh:207: error: ISO C++ forbids declaration of `stack' with no type ./calc++-parser.hh:207: error: expected `;' before '<' token ./calc++-parser.hh:210: error: `state_stack_type' does not name a type ./calc++-parser.hh:212: error: `semantic_stack_type' does not name a type ./calc++-parser.hh:214: error: `location_stack_type' does not name a type ./calc++-parser.hh:217: error: ISO C++ forbids declaration of `traits' with no type ./calc++-parser.hh:217: error: expected `;' before '<' token ./calc++-parser.hh:261: error: ISO C++ forbids declaration of `traits' with no type ./calc++-parser.hh:261: error: expected `;' before '<' token ./calc++-parser.hh:263: error: `rhs_number_type' does not name a type ./calc++-parser.hh:277: error: `token_number_type' does not name a type ./calc++-parser.hh:286: error: `semantic_type' has not been declared ./calc++-parser.hh:287: error: `location_type' has not been declared ./calc++-parser.hh:287: error: ISO C++ forbids declaration of `yyvaluep' with no type ./calc++-parser.hh:287: error: ISO C++ forbids declaration of `yylocationp' with no type ./calc++-parser.hh:303: error: `token_number_type' does not name a type ./calc++-parser.hh: In constructor `yy::calcxx_parser::calcxx_parser(calcxx_driver&)': ./calc++-parser.hh:154: error: `cerr' is not a member of `std' ./calc++-scanner.ll: At global scope: ./calc++-scanner.ll:32: error: invalid use of undefined type `struct std::allocator ' /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/stringfwd.h:49: error: decl aration of `struct std::allocator' ./calc++-scanner.ll:36: error: invalid use of undefined type `struct std::allocator ' /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/stringfwd.h:49: error: decl aration of `struct std::allocator' ./calc++-scanner.ll:37: error: invalid use of undefined type `struct std::allocator ' /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/stringfwd.h:49: error: decl aration of `struct std::allocator' ./calc++-scanner.ll:46: error: invalid use of undefined type `struct std::allocator ' /usr/lib/gcc/mips-unknown-linux-gnu/3.4.3/include/g++-v3/bits/stringfwd.h:49: error: decl aration of `struct std::allocator' make[4]: *** [calc++-scanner.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1/examples/calc++' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1/examples/calc++' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1' make: *** [all] Error 2 !!! ERROR: sys-devel/bison-2.1 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message.