Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTBFS: make utils #181

Open
onlyjob opened this issue May 9, 2021 · 0 comments
Open

FTBFS: make utils #181

onlyjob opened this issue May 9, 2021 · 0 comments

Comments

@onlyjob
Copy link
Contributor

onlyjob commented May 9, 2021

make utils FTBFS as follows:

g++ -D_REENTRANT_ -D_CHECK_FORMAT_STRING_ -I. -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable -std=c++98  -c addtest.cpp
IndexReadInfo.h:109:23: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
  109 |  char m_startKeys   [ MAX_QUERY_TERMS * MAX_KEY_BYTES ];
      |                       ^~~~~~~~~~~~~~~
      |                       ABS_MAX_QUERY_TERMS
IndexReadInfo.h:110:23: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
  110 |  char m_endKeys     [ MAX_QUERY_TERMS * MAX_KEY_BYTES ];
      |                       ^~~~~~~~~~~~~~~
      |                       ABS_MAX_QUERY_TERMS
IndexReadInfo.h:112:27: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
  112 |  int32_t  m_readSizes   [ MAX_QUERY_TERMS ];
      |                           ^~~~~~~~~~~~~~~
      |                           ABS_MAX_QUERY_TERMS
IndexReadInfo.h:113:24: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
  113 |  char  m_ignore      [ MAX_QUERY_TERMS ];
      |                        ^~~~~~~~~~~~~~~
      |                        ABS_MAX_QUERY_TERMS
IndexReadInfo.h: In member function ‘char* IndexReadInfo::getStartKeys()’:
IndexReadInfo.h:76:43: error: ‘m_startKeys’ was not declared in this scope; did you mean ‘getStartKeys’?
   76 |  char *getStartKeys  ( ) { return (char *)m_startKeys  ; };
      |                                           ^~~~~~~~~~~
      |                                           getStartKeys
IndexReadInfo.h: In member function ‘char* IndexReadInfo::getEndKeys()’:
IndexReadInfo.h:77:43: error: ‘m_endKeys’ was not declared in this scope
   77 |  char *getEndKeys    ( ) { return (char *)m_endKeys    ; };
      |                                           ^~~~~~~~~
IndexReadInfo.h: In member function ‘char IndexReadInfo::getIgnored(int32_t)’:
IndexReadInfo.h:78:45: error: ‘m_ignore’ was not declared in this scope; did you mean ‘sigignore’?
   78 |  char  getIgnored    ( int32_t i ) { return m_ignore[i]   ; };
      |                                             ^~~~~~~~
      |                                             sigignore
IndexReadInfo.h: In member function ‘int32_t IndexReadInfo::getReadSize(int32_t)’:
IndexReadInfo.h:83:47: error: ‘m_readSizes’ was not declared in this scope; did you mean ‘getReadSizes’?
   83 |  int32_t   getReadSize ( int32_t i ) { return m_readSizes[i]; };
      |                                               ^~~~~~~~~~~
      |                                               getReadSizes
IndexReadInfo.h: In member function ‘int32_t* IndexReadInfo::getReadSizes()’:
IndexReadInfo.h:85:44: error: ‘m_readSizes’ was not declared in this scope; did you mean ‘getReadSizes’?
   85 |  int32_t  *getReadSizes(        ) { return m_readSizes; };
      |                                            ^~~~~~~~~~~
      |                                            getReadSizes
In file included from addtest.cpp:18:
IndexTable.h: At global scope:
IndexTable.h:68:49: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
   68 |  void addLists_r ( IndexList   lists[MAX_TIERS][MAX_QUERY_TERMS] ,
      |                                                 ^~~~~~~~~~~~~~~
      |                                                 ABS_MAX_QUERY_TERMS
IndexTable.h:68:65: error: expected ‘)’ before ‘,’ token
   68 |  void addLists_r ( IndexList   lists[MAX_TIERS][MAX_QUERY_TERMS] ,
      |                  ~                                              ^~
      |                                                                 )
IndexTable.h:69:6: error: variable or field ‘int32_t’ declared void
   69 |      int32_t        numTiers        ,
      |      ^~~~~~~
IndexTable.h:69:6: error: expected ‘;’ at end of member declaration
   69 |      int32_t        numTiers        ,
      |      ^~~~~~~
      |             ;
IndexTable.h:69:21: error: ‘numTiers’ does not name a type
   69 |      int32_t        numTiers        ,
      |                     ^~~~~~~~
IndexTable.h:129:41: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
  129 |  bool alloc (IndexList lists[MAX_TIERS][MAX_QUERY_TERMS],
      |                                         ^~~~~~~~~~~~~~~
      |                                         ABS_MAX_QUERY_TERMS
IndexTable.h:129:57: error: expected ‘)’ before ‘,’ token
  129 |  bool alloc (IndexList lists[MAX_TIERS][MAX_QUERY_TERMS],
      |             ~                                           ^
      |                                                         )
IndexTable.h:130:7: error: expected ‘;’ at end of member declaration
  130 |       int32_t      numTiers                  ,
      |       ^~~~~~~
      |              ;
IndexTable.h:130:7: error: declaration of ‘bool IndexTable::int32_t’ changes meaning of ‘int32_t’ [-fpermissive]
In file included from /usr/include/stdint.h:34,
                 from /usr/lib/gcc/x86_64-linux-gnu/10/include/stdint.h:9,
                 from /usr/include/inttypes.h:27,
                 from gb-include.h:25,
                 from addtest.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdint-intn.h:26:19: note: ‘int32_t’ declared here as ‘typedef __int32_t int32_t’
   26 | typedef __int32_t int32_t;
      |                   ^~~~~~~
In file included from addtest.cpp:18:
IndexTable.h:130:20: error: ‘numTiers’ does not name a type
  130 |       int32_t      numTiers                  ,
      |                    ^~~~~~~~
IndexTable.h:137:2: error: ‘int32_t’ does not name a type
  137 |  int32_t getNumDocsInTier ( int32_t i ) { return m_numDocsInTier[i]; };
      |  ^~~~~~~
IndexTable.h:142:2: error: ‘int32_t’ does not name a type
  142 |  int32_t *getScoreWeights ( ) { return m_scoreWeights; };
      |  ^~~~~~~
IndexTable.h:146:50: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
  146 |  void addLists2_r ( IndexList   lists[MAX_TIERS][MAX_QUERY_TERMS] ,
      |                                                  ^~~~~~~~~~~~~~~
      |                                                  ABS_MAX_QUERY_TERMS
IndexTable.h:146:66: error: expected ‘)’ before ‘,’ token
  146 |  void addLists2_r ( IndexList   lists[MAX_TIERS][MAX_QUERY_TERMS] ,
      |                   ~                                              ^~
      |                                                                  )
IndexTable.h:147:7: error: variable or field ‘int32_t’ declared void
  147 |       int32_t        numTiers        ,
      |       ^~~~~~~
IndexTable.h:147:7: error: expected ‘;’ at end of member declaration
  147 |       int32_t        numTiers        ,
      |       ^~~~~~~
      |              ;
IndexTable.h:147:22: error: ‘numTiers’ does not name a type
  147 |       int32_t        numTiers        ,
      |                      ^~~~~~~~
IndexTable.h:161:10: error: ‘int32_t’ is not a type
  161 |          int32_t           *scores       ,
      |          ^~~~~~~
IndexTable.h:165:10: error: ‘int32_t’ is not a type
  165 |          int32_t            numSlots     ) ;
      |          ^~~~~~~
IndexTable.h:169:2: error: ‘int32_t’ does not name a type
  169 |  int32_t getWeakestTopDocId ( char          **topp         ,
      |  ^~~~~~~
IndexTable.h:179:36: error: ‘int32_t’ is not a type
  179 |  qvec_t getTermImplicitBitMask_r ( int32_t i );
      |                                    ^~~~~~~
IndexTable.h:183:22: error: ‘int32_t’ is not a type
  183 |  void setBitScores ( int32_t count );
      |                      ^~~~~~~
IndexTable.h:186:33: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
  186 |  bool m_swapped [ MAX_TIERS ] [ MAX_QUERY_TERMS ] ;
      |                                 ^~~~~~~~~~~~~~~
      |                                 ABS_MAX_QUERY_TERMS
IndexTable.h:189:2: error: ‘int32_t’ does not name a type
  189 |  int32_t       m_scoreWeights  [ MAX_QUERY_TERMS ];
      |  ^~~~~~~
IndexTable.h:194:2: error: ‘int32_t’ does not name a type
  194 |  int32_t            m_topScores       [ MAX_TIERS ] [ MAX_RESULTS ];
      |  ^~~~~~~
IndexTable.h:198:2: error: ‘int32_t’ does not name a type
  198 |  int32_t            m_numTopDocIds    [ MAX_TIERS ] ;
      |  ^~~~~~~
IndexTable.h:199:2: error: ‘int32_t’ does not name a type
  199 |  int32_t            m_numExactExplicitMatches [ MAX_TIERS ];
      |  ^~~~~~~
IndexTable.h:200:2: error: ‘int32_t’ does not name a type
  200 |  int32_t            m_numExactImplicitMatches [ MAX_TIERS ];
      |  ^~~~~~~
IndexTable.h:201:2: error: ‘int32_t’ does not name a type
  201 |  int32_t            m_numTiers;
      |  ^~~~~~~
IndexTable.h:222:2: error: ‘int32_t’ does not name a type
  222 |  int32_t            m_logstate;
      |  ^~~~~~~
IndexTable.h:232:2: error: ‘int32_t’ does not name a type
  232 |  int32_t            *m_topScores2;
      |  ^~~~~~~
IndexTable.h:235:2: error: ‘int32_t’ does not name a type
  235 |  int32_t             m_maxTopDocIds2;
      |  ^~~~~~~
IndexTable.h:236:2: error: ‘int32_t’ does not name a type
  236 |  int32_t             m_numTopDocIds2;
      |  ^~~~~~~
IndexTable.h:237:2: error: ‘int32_t’ does not name a type
  237 |  int32_t             m_nexti;
      |  ^~~~~~~
IndexTable.h:238:2: error: ‘int32_t’ does not name a type
  238 |  int32_t             m_oldnexti;
      |  ^~~~~~~
IndexTable.h:243:2: error: ‘int32_t’ does not name a type
  243 |  int32_t  m_bufSize;
      |  ^~~~~~~
IndexTable.h:248:2: error: ‘int32_t’ does not name a type
  248 |  int32_t  m_bigBufSize;
      |  ^~~~~~~
IndexTable.h:251:2: error: ‘int32_t’ does not name a type
  251 |  int32_t m_imap      [ MAX_QUERY_TERMS ];
      |  ^~~~~~~
IndexTable.h:252:2: error: ‘int32_t’ does not name a type
  252 |  int32_t m_sizes     [ MAX_QUERY_TERMS ];
      |  ^~~~~~~
IndexTable.h:253:2: error: ‘int32_t’ does not name a type
  253 |  int32_t m_blocksize [ MAX_QUERY_TERMS ];
      |  ^~~~~~~
IndexTable.h:254:2: error: ‘int32_t’ does not name a type
  254 |  int32_t m_nb;
      |  ^~~~~~~
IndexTable.h:259:2: error: ‘int32_t’ does not name a type
  259 |  int32_t *m_componentCodes;
      |  ^~~~~~~
IndexTable.h:262:2: error: ‘int32_t’ does not name a type
  262 |  int32_t  m_numDocsInTier [ MAX_TIERS ] ;
      |  ^~~~~~~
IndexTable.h: In member function ‘int32_t* IndexTable::getTopScores(int32_t)’:
IndexTable.h:87:55: error: ‘m_topScores’ was not declared in this scope; did you mean ‘getTopScores’?
   87 |  int32_t      *getTopScores ( int32_t tier ) { return m_topScores[tier]; };
      |                                                       ^~~~~~~~~~~
      |                                                       getTopScores
IndexTable.h: In member function ‘int32_t IndexTable::getNumTopDocIds(int32_t)’:
IndexTable.h:91:54: error: ‘m_numTopDocIds’ was not declared in this scope; did you mean ‘getNumTopDocIds’?
   91 |  int32_t   getNumTopDocIds ( int32_t tier ) { return m_numTopDocIds[tier]; };
      |                                                      ^~~~~~~~~~~~~~
      |                                                      getNumTopDocIds
IndexTable.h: In member function ‘int32_t IndexTable::getNumExactExplicitMatches(int32_t)’:
IndexTable.h:97:10: error: ‘m_numExactExplicitMatches’ was not declared in this scope; did you mean ‘getNumExactExplicitMatches’?
   97 |   return m_numExactExplicitMatches[tier];};
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
      |          getNumExactExplicitMatches
IndexTable.h: In member function ‘int32_t IndexTable::getNumExactImplicitMatches(int32_t)’:
IndexTable.h:100:10: error: ‘m_numExactImplicitMatches’ was not declared in this scope; did you mean ‘getNumExactImplicitMatches’?
  100 |   return m_numExactImplicitMatches[tier];};
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
      |          getNumExactImplicitMatches
IndexTable.h: At global scope:
IndexTable.h:270:11: error: ‘int32_t’ is not a type
  270 |           int32_t           *tops         ,
      |           ^~~~~~~
IndexTable.h:272:11: error: ‘int32_t’ is not a type
  272 |           int32_t            numTop       ,
      |           ^~~~~~~
IndexTable.h:274:11: error: ‘int32_t’ is not a type
  274 |           int32_t           *score        ,
      |           ^~~~~~~
IndexTable.h:269:16: error: no declaration matches ‘int32_t IndexTable::getWeakestTopDocId(char**, int*, unsigned char*, int, unsigned char*, int*, char**)’
  269 | inline int32_t IndexTable::getWeakestTopDocId ( char          **topp         ,
      |                ^~~~~~~~~~
IndexTable.h:269:16: note: no functions named ‘int32_t IndexTable::getWeakestTopDocId(char**, int*, unsigned char*, int, unsigned char*, int*, char**)’
IndexTable.h:46:7: note: ‘class IndexTable’ defined here
   46 | class IndexTable {
      |       ^~~~~~~~~~
addtest.cpp: In function ‘void test0(int)’:
addtest.cpp:22:29: error: ‘MAX_QUERY_TERMS’ was not declared in this scope; did you mean ‘ABS_MAX_QUERY_TERMS’?
   22 |  IndexList lists[MAX_TIERS][MAX_QUERY_TERMS];
      |                             ^~~~~~~~~~~~~~~
      |                             ABS_MAX_QUERY_TERMS
addtest.cpp:31:26: error: no matching function for call to ‘Mem::init(int)’
   31 |  g_mem.init ( 1024*1024*3);
      |                          ^
In file included from addtest.cpp:4:
Mem.h:86:7: note: candidate: ‘bool Mem::init()’
   86 |  bool init ( );//int64_t maxMem );
      |       ^~~~
Mem.h:86:7: note:   candidate expects 0 arguments, 1 provided
addtest.cpp:35:4: error: ‘class Query’ has no member named ‘set’; did you mean ‘set2’?
   35 |  q.set ( qs , gbstrlen(qs) , NULL , 0 , false );
      |    ^~~
      |    set2
addtest.cpp:47:20: error: ‘lists’ was not declared in this scope; did you mean ‘list’?
   47 |   RdbList *list = &lists[0][i];
      |                    ^~~~~
      |                    list
addtest.cpp:86:33: error: no matching function for call to ‘IndexTable::init(Query*, bool, NULL)’
   86 |  table.init ( &q , false , NULL );
      |                                 ^
In file included from addtest.cpp:18:
IndexTable.h:57:7: note: candidate: ‘void IndexTable::init(Query*, bool, void*, bool, TopTree*)’
   57 |  void init (Query *q,bool isDebug,void *logstate,bool requireAllTerms,
      |       ^~~~
IndexTable.h:57:7: note:   candidate expects 5 arguments, 3 provided
addtest.cpp:87:8: error: ‘class IndexTable’ has no member named ‘prepareToAddLists’
   87 |  table.prepareToAddLists();
      |        ^~~~~~~~~~~~~~~~~
addtest.cpp:93:21: error: ‘lists’ was not declared in this scope; did you mean ‘listen’?
   93 |  table.addLists_r ( lists    ,
      |                     ^~~~~
      |                     listen
make: *** [Makefile:607: addtest.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@onlyjob and others