Hi,

I am trying to install TPP on my Fedora 25 desktop. I think I have all the 
prerequisites installed.

The output of gcc -v is as below.

Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/6.3.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap 
--enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared 
--enable-threads=posix --enable-checking=release --enable-multilib 
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions 
--enable-gnu-unique-object --enable-linker-build-id 
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array 
--disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function 
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) 


I have been able to fix a couple of other issues by reading older posts in 
this group but I cannot resolve this one which looks as if it is in the 
headers.
The problem is that make all end as below.

make -C /home/sco/builds/TPP_5.0.0-src/build/linux-x86_64/artifacts/fastar 
all
make[1]: Entering directory 
'/home/sco/builds/TPP_5.0.0-src/build/linux-x86_64/artifacts/fastar'
g++ -O3 -DINLINING -Wno-deprecated -Icommon -I./ -I../ -I../common -Ispare 
-Ispare/ac -Ispare/bf -Ispare/bm -Ispare/cw -Ispare/kmp -c -o aceftrie.o 
spare/ac/aceftrie.cpp
In file included from common/com-io.hpp:19:0,
                 from common/stateto_i.hpp:6,
                 from common/stateto.hpp:42,
                 from spare/ac/aceftrie.hpp:11,
                 from spare/ac/aceftrie.cpp:7:
common/com-io_i.hpp: In function ‘std::ostream& operator<<(std::ostream&, 
const std::vector<T>&)’:
common/com-io_i.hpp:15:47: error: two or more data types in declaration of 
‘iter’
  auto typename std::vector<T>::const_iterator iter;
                                               ^~~~
common/com-io_i.hpp:16:11: error: two or more data types in declaration of 
‘pos’
  auto int pos = 0;
           ^~~
common/com-io_i.hpp:17:7: error: ‘iter’ was not declared in this scope
  for( iter = v.begin(); iter != v.end(); ++iter, ++pos ) {
       ^~~~
common/com-io_i.hpp:17:52: error: ‘pos’ was not declared in this scope
  for( iter = v.begin(); iter != v.end(); ++iter, ++pos ) {
                                                    ^~~
common/com-io_i.hpp: In function ‘std::ostream& operator<<(std::ostream&, 
const std::set<T>&)’:
common/com-io_i.hpp:27:44: error: two or more data types in declaration of 
‘iter’
  auto typename std::set<T>::const_iterator iter;
                                            ^~~~
common/com-io_i.hpp:28:11: error: two or more data types in declaration of 
‘pos’
  auto int pos = 0;
           ^~~
common/com-io_i.hpp:29:7: error: ‘iter’ was not declared in this scope
  for( iter = v.begin(); iter != v.end(); ++iter, ++pos ) {
       ^~~~
common/com-io_i.hpp:29:52: error: ‘pos’ was not declared in this scope
  for( iter = v.begin(); iter != v.end(); ++iter, ++pos ) {
                                                    ^~~
In file included from common/trie.hpp:59:0,
                 from common/tries.hpp:9,
                 from spare/ac/aceftrie.hpp:13,
                 from spare/ac/aceftrie.cpp:7:
common/trie_i.hpp: In constructor ‘Trie<T, t_alphabet, 
alphabetsize>::Trie(const kwset_t&)’:
common/trie_i.hpp:45:14: error: expected initializer before ‘q’
   auto State q = FIRSTSTATE;
              ^
common/trie_i.hpp:48:10: error: expected initializer before ‘trav’
   auto T trav( i->c_str() );
          ^~~~
common/trie_i.hpp:57:15: error: ‘q’ was not declared in this scope
    if( image( q, alphabetNormalize( (i->c_str())
               ^
common/trie_i.hpp:58:7: error: ‘trav’ was not declared in this scope
      [trav.traverse( j-i->c_str() )] ) )
       ^~~~
common/trie_i.hpp:61:16: error: expected initializer before ‘latest’
     auto State latest = rep.size();
                ^~~~~~
common/trie_i.hpp:62:18: error: ‘latest’ was not declared in this scope
     rep.setSize( latest + 1 );
                  ^~~~~~
common/trie_i.hpp:90:4: error: ‘q’ was not declared in this scope
    q = image( q, alphabetNormalize( ( i->c_str() )
    ^
common/trie_i.hpp:91:7: error: ‘trav’ was not declared in this scope
      [trav.traverse( j - i->c_str() )] ) );
       ^~~~
common/trie_i.hpp: In member function ‘State Trie<T, t_alphabet, 
alphabetsize>::BFTsuccessor(State) const’:
common/trie_i.hpp:130:13: error: expected initializer before ‘r’
  auto State r;
             ^
common/trie_i.hpp:131:7: error: ‘r’ was not declared in this scope
  for( r = q + 1; r < size(); r++ ) {
       ^
common/trie_i.hpp:137:7: error: ‘r’ was not declared in this scope
  for( r = FIRSTSTATE; r < size(); r++ ) {
       ^
makefile:41: recipe for target 'aceftrie.o' failed
make[1]: *** [aceftrie.o] Error 1
make[1]: Leaving directory 
'/home/sco/builds/TPP_5.0.0-src/build/linux-x86_64/artifacts/fastar'
extern/Makefile:987: recipe for target 
'/home/sco/builds/TPP_5.0.0-src/build/linux-x86_64/lib/libspareparts.a' 
failed
make: *** 
[/home/sco/builds/TPP_5.0.0-src/build/linux-x86_64/lib/libspareparts.a] 
Error 2


Anyone else had or having this or similar problem? Any help / suggestions / 
pointers would be greatly appreciated.

Thanks

Govind

-- 
You received this message because you are subscribed to the Google Groups 
"spctools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spctools-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to