rrtoolset-5.0.0 compile error gcc 4.7.1

Darren Baginski kickbsd at yandex.ru
Fri Jul 13 18:29:04 UTC 2012


13.07.2012, 21:58, "Darren Baginski" <kickbsd at yandex.ru>:
> Debian Wheezy.
>
> $ find /usr -type f -name stdint.h
> /usr/include/stdint.h
> /usr/include/c++/4.7/tr1/stdint.h
> /usr/lib/gcc/x86_64-linux-gnu/4.7/include/stdint.h
>
> 13.07.2012, 21:56, "Havard Eidnes" <he at uninett.no>:
>
>>  You didn't say which OS you were trying to build on.
>>
>>  It appears to be a missing definition of intptr_t which is root
>>  to most of the problems.  You need to ensure <stdint.h> is
>>  included.
>>
>>  Regards,
>>
>>  - Håvard
>

If I include
#include <stdint.h>
in to the ./src/irr/cache.hh 
I get:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -g -O2 -c IPv6RadixSet.cc  -fPIC -DPIC -o .libs/IPv6RadixSet.o
In file included from IPv6RadixSet.hh:49:0,
                 from IPv6RadixSet.cc:54:
Stack.hh: In instantiation of 'void BoundedStack<TYPE>::push(TYPE) [with TYPE = IPv6RadixTree*]':
IPv6RadixSet.cc:387:22:   required from here
Stack.hh:96:26: error: 'enq' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Stack.hh:96:26: note: declarations in dependent base 'BoundedQueue<IPv6RadixTree*>' are not found by unqualified lookup
Stack.hh:96:26: note: use 'this->enq' instead
Stack.hh: In instantiation of 'void BoundedStack<TYPE>::push(TYPE) [with TYPE = IPv6RadixTree::Direction]':
IPv6RadixSet.cc:532:20:   required from here
Stack.hh:96:26: error: 'enq' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Stack.hh:96:26: note: declarations in dependent base 'BoundedQueue<IPv6RadixTree::Direction>' are not found by unqualified lookup
Stack.hh:96:26: note: use 'this->enq' instead
Stack.hh: In instantiation of 'void BoundedStack<TYPE>::push(TYPE) [with TYPE = const IPv6RadixTree*]':
IPv6RadixSet.cc:652:38:   required from here
Stack.hh:96:26: error: 'enq' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Stack.hh:96:26: note: declarations in dependent base 'BoundedQueue<const IPv6RadixTree*>' are not found by unqualified lookup
Stack.hh:96:26: note: use 'this->enq' instead
Stack.hh: In instantiation of 'void BoundedStack<TYPE>::push(TYPE) [with TYPE = ipv6_addr_t]':
IPv6RadixSet.cc:654:24:   required from here
Stack.hh:96:26: error: 'enq' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Stack.hh:96:26: note: declarations in dependent base 'BoundedQueue<ipv6_addr_t>' are not found by unqualified lookup
Stack.hh:96:26: note: use 'this->enq' instead
make[3]: *** [IPv6RadixSet.lo] Error 1
make[3]: Leaving directory `/root/irrtoolset-5.0.0/src/normalform'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/irrtoolset-5.0.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/irrtoolset-5.0.0/src'


Something similar with clang-c++ on FreeBSD 9.0:

libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../../src -g -O2 -MT IPv6RadixSet.lo -MD -MP -MF .deps/IPv6RadixSet.Tpo -c IPv6RadixSet.cc  -fPIC -DPIC -o .libs/IPv6RadixSet.o
In file included from IPv6RadixSet.cc:54:
In file included from ./IPv6RadixSet.hh:49:
./Stack.hh:96:26: error: use of undeclared identifier 'enq'
   void push(TYPE elt) { enq(elt); }
                         ^
                         this->
IPv6RadixSet.cc:387:11: note: in instantiation of member function 'BoundedStack<IPv6RadixTree *>::push' requested here
   pStack.push(parent);
          ^
./Stack.hh:74:9: note: must qualify identifier to find this declaration in dependent base class
   void enq(TYPE elt) { 
        ^
1 error generated.
*** Error code 1

Stop in /home/asheshka/irrtoolset-5.0.0/src/normalform.
*** Error code 1

Stop in /home/asheshka/irrtoolset-5.0.0/src.
*** Error code 1

Stop in /home/asheshka/irrtoolset-5.0.0/src.
*** Error code 1

Stop in /home/asheshka/irrtoolset-5.0.0.



More information about the irrtoolset mailing list