ruben2020 / codequery

A code-understanding, code-browsing or code-search tool. This is a tool to index, then query or search C, C++, Java, Python, Ruby, Go and Javascript source code. It builds upon the databases of cscope and ctags, and provides a nice GUI tool.

Home Page:https://ruben2020.github.io/codequery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fails with Qt 5.11.0: undeclared indentifier 'asrt'

apjanke opened this issue · comments

I'm trying to build codequery 0.21.0 on macOS 10.13.4 with Qt 5.11.0 installed, and the build is failing.

[ 75%] Built target scintillaedit
/Applications/Xcode-9.3.1.app/Contents/Developer/usr/bin/make -f showgraph/CMakeFiles/cqshowgraph-qt5_autogen.dir/build.make showgraph/CMakeFiles/cqshowgraph-qt5_autogen.dir/depend
cd /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build && /usr/local/Cellar/cmake/3.11.2/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0 /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph/CMakeFiles/cqshowgraph-qt5_autogen.dir/DependInfo.cmake --color=
Scanning dependencies of target cqshowgraph-qt5_autogen
/Applications/Xcode-9.3.1.app/Contents/Developer/usr/bin/make -f showgraph/CMakeFiles/cqshowgraph-qt5_autogen.dir/build.make showgraph/CMakeFiles/cqshowgraph-qt5_autogen.dir/build
[ 75%] Automatic MOC for target cqshowgraph-qt5
cd /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph && /usr/local/Cellar/cmake/3.11.2/bin/cmake -E cmake_autogen /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph/CMakeFiles/cqshowgraph-qt5_autogen.dir/AutogenInfo.cmake Release
AutoGen warning
---------------
  "/private/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/Utils/utils.cpp"
The source file is empty

[ 75%] Built target cqshowgraph-qt5_autogen
/Applications/Xcode-9.3.1.app/Contents/Developer/usr/bin/make -f showgraph/CMakeFiles/cqshowgraph-qt5.dir/build.make showgraph/CMakeFiles/cqshowgraph-qt5.dir/depend
cd /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build && /usr/local/Cellar/cmake/3.11.2/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0 /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph/CMakeFiles/cqshowgraph-qt5.dir/DependInfo.cmake --color=
Scanning dependencies of target cqshowgraph-qt5
/Applications/Xcode-9.3.1.app/Contents/Developer/usr/bin/make -f showgraph/CMakeFiles/cqshowgraph-qt5.dir/build.make showgraph/CMakeFiles/cqshowgraph-qt5.dir/build
[ 75%] Building CXX object showgraph/CMakeFiles/cqshowgraph-qt5.dir/showgraph.cpp.o
cd /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_XML_LIB -DUSE_QT5 -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/build/showgraph/cqshowgraph-qt5_autogen/include -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/. -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Layout -I/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers  -O2 -Wno-unused-result -O2 -Wno-unused-result -isysroot /Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk   -fPIC -std=gnu++11 -o CMakeFiles/cqshowgraph-qt5.dir/showgraph.cpp.o -c /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:66:35: error: expected parameter declarator
template<class Excpt> inline void assert( bool assertion)
                                  ^
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:23: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                      ^
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:66:35: error: expected ')'
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:23: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                      ^
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:66:35: note: to match this '('
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:22: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                     ^
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:66:35: error: expected ')'
template<class Excpt> inline void assert( bool assertion)
                                  ^
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:32: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                               ^
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:66:35: note: to match this '('
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:5: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
    ^
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:68:11: error: use of undeclared identifier 'assertion'
    if ( !assertion)
          ^
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:78:54: error: too many arguments provided to function-like macro invocation
template<class Excpt> inline void assert( bool asrt, Excpt e)
                                                     ^
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:92:9: note: macro 'assert' defined here
#define assert(e) \
        ^
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:78:35: error: variable has incomplete type 'void'
template<class Excpt> inline void assert( bool asrt, Excpt e)
                                  ^
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:80:5: error: expected expression
    if ( !asrt)
    ^
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:84:2: error: expected ';' at end of declaration
}
 ^
 ;
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:90:13: error: expected parameter declarator
inline void assert( bool asrt)
            ^
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:23: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                      ^
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:90:13: error: expected ')'
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:23: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                      ^
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:90:13: note: to match this '('
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:22: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                     ^
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:90:13: error: expected ')'
inline void assert( bool asrt)
            ^
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:32: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                               ^
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:90:13: note: to match this '('
/Applications/Xcode-9.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/assert.h:93:5: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
    ^
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/showgraph.cpp:21:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/core_iface.h:35:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/GraphView/gview_iface.h:57:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./GraphView/../Graph/graph_iface.h:29:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/predecls.h:32:
In file included from /tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Graph/../Utils/utils_iface.h:31:
/tmp/codequery-20180530-52516-1r2szfb/codequery-0.21.0/showgraph/./Utils/asrt.h:92:19: error: use of undeclared identifier 'asrt'
    assert< int>( asrt);
                  ^
12 errors generated.
make[2]: *** [showgraph/CMakeFiles/cqshowgraph-qt5.dir/showgraph.cpp.o] Error 1
make[1]: *** [showgraph/CMakeFiles/cqshowgraph-qt5.dir/all] Error 2
make: *** [all] Error 2

Full build logs: https://gist.github.com/6d18634354b9bf9acfcb4a1645a168ff

Can you help out? It was building before under older versions of Qt.

@ruben2020 any ideas here?

@ruben2020 I'd prefer not to have to delete codequery from Homebrew, but currently we cannot build.

commented

@ilovezfs Sorry for the delay. I have fixed it and created Homebrew pull request 32109. The new version is v0.21.1

commented

Issue solved