Opened 6 years ago

Closed 5 years ago

#57738 closed defect (worksforme)

doxygen @1.8.14: error: no template named 'LetterToIndexMap'

Reported by: platipodium (Carsten Lemmen) Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: doxygen

Description

doxygen fails on High Sierra with missing template 'LetterToIndexMap'

Here's the (presumably) relevant part of main.log

:info:build [ 32%] Building CXX object src/CMakeFiles/_doxygen.dir/__/generated_src/pyscanner.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/src && /usr/bin/clang++  -DYY_BUF_SIZE=262144 -DYY_READ_BUF_SIZE=262144 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/qtools -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/libmd5 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/vhdlparser -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/generated_src  -pipe -Os -stdlib=libc++ -DNDEBUG -arch x86_64 -mmacosx-version-min=10.13 -fvisibility=hidden -fvisibility-inlines-hidden   -o CMakeFiles/_doxygen.dir/__/generated_src/pyscanner.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/generated_src/pyscanner.cpp
:info:build In file included from pycode.l:41:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/src/searchindex.h:158:3: error: no template named 'LetterToIndexMap'
:info:build   LetterToIndexMap<SearchIndexList> symbolList;
:info:build   ^
:info:build pyscanner.l:701:45: error: use of undeclared identifier 'substitute'
:info:build                   current->name=removeRedundantWhiteSpace(substitute(item,".","::"));
:info:build                                                           ^
:info:build pyscanner.l:712:45: error: use of undeclared identifier 'substitute'
:info:build                   current->name=removeRedundantWhiteSpace(substitute(item,".","::"));
:info:build                                                           ^
:info:build pyscanner.l:722:45: error: use of undeclared identifier 'substitute'
:info:build                   current->name=removeRedundantWhiteSpace(substitute(item,".","::"));
:info:build                                                           ^
:info:build pyscanner.l:747:44: error: use of undeclared identifier 'substitute'
:info:build                         current->name=removeRedundantWhiteSpace(substitute(yytext,".","::"));
:info:build                                                                 ^
:info:build pyscanner.l:980:29: error: use of undeclared identifier 'argListToString'
:info:build                           current->args = argListToString(current->argList);
:info:build                                           ^
:info:build pyscanner.l:1010:26: error: use of undeclared identifier 'argListToString'
:info:build                               current->args = argListToString(current->argList);
:info:build                                               ^
:info:build pycode.l:168:16: error: use of undeclared identifier 'getResolvedClass'
:info:build       (varType=getResolvedClass(g_currentDefinition,g_sourceFileDef,ltype)) // look for global class definitions
:info:build                ^
:info:build pycode.l:329:10: error: use of undeclared identifier 'extractClassNameFromType'
:info:build   while (extractClassNameFromType(type,pos,className,templSpec)!=-1)
:info:build          ^
:info:build pycode.l:336:10: error: use of undeclared identifier 'getResolvedClass'
:info:build       cd=getResolvedClass(d,g_sourceFileDef,g_classScope+"::"+clName);
:info:build          ^
:info:build pyscanner.l:1153:25: error: use of undeclared identifier 'substitute'
:info:build                                               new BaseInfo(substitute(yytext,".","::"),Public,Normal)
:info:build                                                            ^
:info:build pycode.l:340:10: error: use of undeclared identifier 'getResolvedClass'
:info:build       cd=getResolvedClass(d,g_sourceFileDef,clName);
:info:build          ^
:info:build pycode.l:553:7: error: use of undeclared identifier 'getDefs'
:info:build   if (getDefs(c,m,"()",md,cd,fd,nd,gd,FALSE,g_sourceFileDef) && 
:info:build       ^
:info:build pycode.l:572:2: error: use of undeclared identifier 'addDocCrossReference'
:info:build         addDocCrossReference(g_currentMemberDef,md);
:info:build         ^
:info:build pycode.l:589:14: error: use of undeclared identifier 'removeRedundantWhiteSpace'
:info:build   QCString m=removeRedundantWhiteSpace(memberName);
:info:build              ^
:info:build pycode.l:626:22: error: use of undeclared identifier 'substitute'
:info:build     QCString scope = substitute(className,".","::");
:info:build                      ^
:info:build pycode.l:628:45: error: use of undeclared identifier 'substitute'
:info:build     cd = getResolvedClass(d,g_sourceFileDef,substitute(className,".","::"),&md);
:info:build                                             ^
:info:build pycode.l:637:26: error: use of undeclared identifier 'getResolvedNamespace'
:info:build       NamespaceDef *nd = getResolvedNamespace(scope);
:info:build                          ^
:info:build pycode.l:672:9: error: use of undeclared identifier 'addDocCrossReference'
:info:build         addDocCrossReference(g_currentMemberDef,md);
:info:build         ^
:info:build pycode.l:681:24: error: use of undeclared identifier 'substitute'
:info:build       QCString scope = substitute(className.left(scopeEnd),".","::");
:info:build                        ^
:info:build 7 errors generated.
:info:build pycode.l:683:23: error: use of undeclared identifier 'getClass'
:info:build       ClassDef *mcd = getClass(scope);
:info:build                       ^
:info:build make[2]: *** [src/CMakeFiles/_doxygen.dir/__/generated_src/pyscanner.cpp.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build pycode.l:699:6: error: use of undeclared identifier 'addDocCrossReference'
:info:build             addDocCrossReference(g_currentMemberDef,md);
:info:build             ^
:info:build scanner.l:368:16: error: use of undeclared identifier 'isId'
:info:build   if (i==0 && !isId(name.at(8))) return TRUE; // case operator ::X
:info:build                ^
:info:build scanner.l:369:15: error: use of undeclared identifier 'isId'
:info:build   if (i>0 && !isId(name.at(i-1)) && !isId(name.at(i+8))) return TRUE; // case X::operator
:info:build               ^
:info:build scanner.l:369:38: error: use of undeclared identifier 'isId'
:info:build   if (i>0 && !isId(name.at(i-1)) && !isId(name.at(i+8))) return TRUE; // case X::operator
:info:build                                      ^
:info:build pycode.l:706:29: error: use of undeclared identifier 'getResolvedNamespace'
:info:build         NamespaceDef *mnd = getResolvedNamespace(scope);
:info:build                             ^
:info:build scanner.l:378:16: error: use of undeclared identifier 'getLanguageFromFileName'
:info:build   language   = getLanguageFromFileName(fileName);
:info:build                ^
:info:build pycode.l:722:8: error: use of undeclared identifier 'addDocCrossReference'
:info:build               addDocCrossReference(g_currentMemberDef,md);
:info:build               ^
:info:build scanner.l:468:22: error: use of undeclared identifier 'isId'
:info:build       while (i<si && isId(current->args.at(i))) i++;
:info:build                      ^
:info:build scanner.l:481:22: error: use of undeclared identifier 'isId'
:info:build       while (i<si && isId(current->args.at(i))) i++;
:info:build                      ^
:info:build scanner.l:489:22: error: use of undeclared identifier 'isId'
:info:build       while (i>=0 && isId(current->args.at(i))) i--;
:info:build                      ^
:info:build pycode.l:748:20: error: use of undeclared identifier 'removeRedundantWhiteSpace'
:info:build   QCString locFunc=removeRedundantWhiteSpace(funcName);
:info:build                    ^
:info:build pycode.l:795:2: error: use of undeclared identifier 'addDocCrossReference'
:info:build         addDocCrossReference(g_currentMemberDef,(MemberDef*)sym);
:info:build         ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]

Attachments (2)

main.log (546.7 KB) - added by platipodium (Carsten Lemmen) 6 years ago.
main.2.log (277.9 KB) - added by platipodium (Carsten Lemmen) 6 years ago.

Download all attachments as: .zip

Change History (13)

Changed 6 years ago by platipodium (Carsten Lemmen)

Attachment: main.log added

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to cssdev
Status: newassigned
Summary: searchindex.h:158:3: error: no template named 'LetterToIndexMap'doxygen @1.8.14: error: no template named 'LetterToIndexMap'

comment:2 Changed 6 years ago by TheLastLovemark

Is there a solution to this issue?

comment:3 Changed 6 years ago by platipodium (Carsten Lemmen)

I am now on Mojave and the error is still there, now it fails (still with 'substitute' missing)

:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/src && /usr/bin/clang++  -DYY_BUF_SIZE=262144 -DYY_READ_BUF_SIZE=262144 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/qtools -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/libmd5 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/vhdlparser -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/generated_src  -pipe -Os -stdlib=libc++ -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fvisibility=hidden -fvisibility-inlines-hidden   -o CMakeFiles/_doxygen.dir/__/generated_src/pyscanner.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/generated_src/pyscanner.cpp
:info:build pyscanner.l:701:45: error: use of undeclared identifier 'substitute'
:info:build                   current->name=removeRedundantWhiteSpace(substitute(item,".","::"));
:info:build                                                           ^

comment:4 Changed 6 years ago by kencu (Ken)

So it builds easily on 10.6.8 and Mojave for me:

$ port -v installed doxygen
The following ports are currently installed:
  doxygen @1.8.14_0 (active) platform='darwin 18' archs='x86_64' date='2018-11-05T18:32:58-0800'

comment:5 Changed 6 years ago by kencu (Ken)

It builds with the +docs +qt5 variants as well. I have nothing enabled under port select --list for python / python2 / python3.

I'm sorry I can't seem to duplicate this build error on any system at present.

Changed 6 years ago by platipodium (Carsten Lemmen)

Attachment: main.2.log added

comment:6 Changed 6 years ago by platipodium (Carsten Lemmen)

I port select --set python none Now instead of pyscanner.cpp, scanner.cpp produces the error:

:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/src && /usr/bin/clang++  -DYY_BUF_SIZE=262144 -DYY_READ_BUF_SIZE=262144 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/qtools -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/libmd5 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/vhdlparser -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/generated_src  -pipe -Os -stdlib=libc++ -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fvisibility=hidden -fvisibility-inlines-hidden   -o CMakeFiles/_doxygen.dir/__/generated_src/scanner.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_doxygen/doxygen/work/doxygen-1.8.14/generated_src/scanner.cpp
:info:build scanner.l:368:16: error: use of undeclared identifier 'isId'
:info:build   if (i==0 && !isId(name.at(8))) return TRUE; // case operator ::X

comment:7 Changed 6 years ago by kencu (Ken)

and the other port select pythons are clear also?

comment:8 Changed 6 years ago by platipodium (Carsten Lemmen)

I checked, all pythons to none. But really the problem seems to lie in the doxywizard add-on in scanner.l, causing subsequent scanner.cpp/pyscanner.cpp to fail. I could try building without that add-on (how?) on my system

Last edited 6 years ago by platipodium (Carsten Lemmen) (previous) (diff)

comment:9 Changed 6 years ago by kencu (Ken)

Tell me how to recreate the problem, if you can. I can't seem to do it.

comment:10 Changed 6 years ago by platipodium (Carsten Lemmen)

With the latest port update, this error does not show up anymore. I can only guess that upgrading cmake to 3.14.0_0 fixed this error, but that is speculation. Please close the ticket.

comment:11 Changed 5 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.