doxygen 1.8.17 clang crashing - clang
Doxygen is failing with the below output on version 1.8.17 on Ubuntu 18.04. However, Doxygen 1.8.13 passes with NO issues.
Searching for files in directory /home/rgleim/Git/RMS/pb980_dox/BD_GUI_Swarning: source media is not a readable file or directory... skipping.
error: fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
using clang compilation database path of: "(null)"
doxygen: /home/dimitri/doxygen/dev/llvm-svn/tools/clang/lib/Sema/SemaExprCXX.cpp:118: clang::ParsedType clang::Sema::getConstructorName(clang::IdentifierInfo&, clang::SourceLocation, clang::Scope*, clang::CXXScopeSpec&, bool): Assertion `InjectedClassName && "couldn't find injected class name"' failed.
libclang: crash detected during parsing: {
'source_filename' : '(null)'
'command_line_args' : ['clang', '-I../../../VIKING_COMMON/FileX/groupsrc', '-I../../../VIKING_COMMON/NetX/groupsrc', '-I../../../VIKING_COMMON/NetX-Apps/groupsrc', '-I../../../VIKING_COMMON/NetX-BSD/groupsrc', '-I../../../VIKING_COMMON/USBX/groupsrc', '-I../../../VIKING_COMMON/ThreadX/groupsrc', '-I../../../VIKING_COMMON/Include', '-I../../../BD_GUI_SRC/Alarm-Analysis/groupsrc', '-I../../../BD_GUI_SRC/BD-IO-Devices/groupsrc', '-I../../../BD_GUI_SRC/BdSdAgent/groupsrc', '-I../../../BD_GUI_SRC/Breath-Delivery/groupsrc', '-I../../../BD_GUI_SRC/Build/groupsrc', '-I../../../BD_GUI_SRC/DCI/groupsrc', '-I../../../BD_GUI_SRC/Debug/groupsrc', '-I../../../BD_GUI_SRC/FileSystem/groupsrc', '-I../../../BD_GUI_SRC/Foundation/groupsrc', '-I../../../BD_GUI_SRC/GUI-Applications/groupsrc', '-I../../../BD_GUI_SRC/GUI-Foundations/groupsrc', '-I../../../BD_GUI_SRC/GUI-IO-Devices/groupsrc', '-I../../../BD_GUI_SRC/GUI-Serial-Interface/groupsrc', '-I../../../BD_GUI_SRC/HDMI/groupsrc', '-I../../../BD_GUI_SRC/Kernel/groupsrc', '-I../../../BD_GUI_SRC/Nebulizer/groupsrc', '-I../../../BD_GUI_SRC/NebulizerApp/groupsrc', '-I../../../BD_GUI_SRC/Network-Application/groupsrc', '-I../../../BD_GUI_SRC/NormalModeBkChecks/groupsrc', '-I../../../BD_GUI_SRC/Operating-System/groupsrc', '-I../../../BD_GUI_SRC/OS-Foundation/groupsrc', '-I../../../BD_GUI_SRC/Patient-Data/groupsrc', '-I../../../BD_GUI_SRC/Persistent-Objects/groupsrc', '-I../../../BD_GUI_SRC/POST/groupsrc', '-I../../../BD_GUI_SRC/POST-Library/groupsrc', '-I../../../BD_GUI_SRC/Repository/groupsrc', '-I../../../BD_GUI_SRC/Safety-Net/groupsrc', '-I../../../BD_GUI_SRC/Service-Data/groupsrc', '-I../../../BD_GUI_SRC/Service-Mode/groupsrc', '-I../../../BD_GUI_SRC/Settings-Validation/groupsrc', '-I../../../BD_GUI_SRC/SWAT/groupsrc', '-I../../../BD_GUI_SRC/Sys-Init/groupsrc', '-I../../../BD_GUI_SRC/SysLogs/groupsrc', '-I../../../BD_GUI_SRC/Theta-Bsp/groupsrc', '-I../../../BD_GUI_SRC/TinyXML/groupsrc', '-I../../../BD_GUI_SRC/Trend-Database/groupsrc', '-I../../../BD_GUI_SRC/Update/groupsrc', '-I../../../BD_GUI_SRC/Utilities/groupsrc', '-I../../../BD_GUI_SRC/WebServices/groupsrc', '-ferror-limit=0', '-x', 'c++', '/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/ControllersWebPage.cc'],
'unsaved_files' : [('/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/ControllersWebPage.cc', '...', 14046), ('/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/ControllersWebPage.hh', '...', 1753), ('/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/WebPage.hh', '...', 4861), ('/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/WebPageIf.hh', '...', 2306), ('/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/HtmlConst.hh', '...', 2518), ('/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/Operators_ext.hh', '...', 12710), ('/home/rgleim/Git/RMS/pb980_dox/BD_GUI_SRC/WebServices/groupsrc/ControllersDataXML.hh', '...', 2401)],
'options' : 1,
}
doxygen: /home/dimitri/doxygen/dev/llvm-svn/tools/clang/lib/Parse/Parser.cpp:433: virtual clang::Parser::~Parser(): Assertion `TemplateIds.empty() && "Still alive TemplateIdAnnotations around?"' failed.
Installed doxygen 1.8.13 using sudo apt-get install doxygen
Ran doxygen on my code and config. Doxygen completes successfully as expected.
Downloaded binaries for doxygen 1.8.17 using the precompiled binaries from http://www.doxygen.nl/download.html.
make installdidn't work until I commented out #$(INSTTOOL) -m 755 bin/doxytag $(INSTALL)/bin and #cp -r examples $(INSTALL)/doc/doxygen as described here.
Ran doxygen and the output above was observed.
Uninstalled doxygen
Installed doxygen 1.8.13 again using sudo apt-get install doxygen
Ran doxygen on my code and config. Doxygen completes successfully as expected.
Why would doxygen 1.8.13 work fine, but 1.8.17 fail with the above output?
Related
mingw32-make install "multiple target patterns" error when installing opencv
I've been trying to build OpenCV-4.5.1 from source with CMake 3.20.0-rc3. I could run mingw32-make after configuring and generating the files from cmake, but this error always pops up when I try to run mingw32-make install. D:\build1>mingw32-make install 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/compiler_depend.make:4: *** multiple target patterns. Stop. mingw32-make[1]: *** [CMakeFiles\Makefile2:3433: 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/all] Error 2 mingw32-make: *** [makefile:165: all] Error 2 I tried looking through the makefiles shown in the cmd but its really long and I have really no idea what to look into. From the google searches I've done it seems like it's to do with syntax error in the makefiles. Can you guys help me out with this? Edit: first 5 lines of 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/compiler_depend.make # CMAKE generated file: DO NOT EDIT! # Generated by "MinGW Makefiles" Generator, CMake Version 3.20 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/bio.c.obj: C:/Users/XXXX/Downloads/opencv-4.5.1/3rdparty/openjpeg/openjp2/bio.c \ C\\:\\Users\\XXXX\\Downloads\\opencv-4.5.1\\3rdparty\\openjpeg\\openjp2\\bio.c \
ODBC link check failed error while compiling Erlang OTP on FreeBSD 10.1
I am trying to compile Erlang OTP-R16B03-1 on FreeBSD 10.1 OS. When i run the ./configure command the output is odbc : ODBC library - header check failed I have tried installing unixODBC, iODBC. Also /usr/ports/databases/unixODBC exists. The sql.h file is located in /usr/local/include. I am still getting the link failed error. Any help will be useful The log for ./configure |grep odbc command is as shown below config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting === configuring in odbc/. (/root/otp_src_R16B03-1/lib/odbc/.) checking for odbc in standard locations... -L/usr/local/lib checking for SQLAllocHandle in -lodbc... no configure: WARNING: "ODBC library - header check failed" configure: WARNING: Check for large file support flags failed; getconf failed odbc : ODBC library - header check failed
I had the same problem on erlang 21 but when I downloaded the newest version from github (erlang 22), and tried ./configure the error ODBC library - header check failed appeared again but after trying make install again, everything finished successfully.
What finally worked for me was apt-get install unixodbc-dev Then otp_build configure --with-odbc=/usr/lib/x86_64-linux-gnu/
error while installing luagraph
Installing http://luarocks.org/repositories/rocks/luagraph-1.0.4-1.src.rock... Using http://luarocks.org/repositories/rocks/luagraph-1.0.4-1.src.rock... switching to 'build' mode Archive: /tmp/luarocks_luarocks-rock-luagraph-1.0.4-1-656/luagraph-1.0.4-1.src.rock inflating: luagraph-1.0.4-1.rockspec inflating: luagraph-1.0.4.tar.gz Error: Could not find expected file graphviz/graph.h for GRAPHVIZ -- you may have to install GRAPHVIZ in your system and/or pass GRAPHVIZ_DIR or GRAPHVIZ_INCDIR to the luarocks command. Example: luarocks install luagraph GRAPHVIZ_DIR=/usr/local
As the error mentions, "you may have to install GRAPHVIZ in your system". TO do so, follow the instructions available on their download support page: http://www.graphviz.org/Download..php
Error compiling Mosquitto 1.4
I have tried to compile Mosquitto on both Arch and CentOS 7, but everytime I get the same error. I want to test the Websocket feature. This is the procedure I am using for CentOS: yum group install "Development Tools" yum install cmake openssl-devel cmake yum install uuid-devel libxslt docbook5-style-xsl.noarch docbook-style-xsl.noarch git clone https://github.com/warmcat/libwebsockets.git cd libwebsockets/ mkdir build;cd build cmake .. make make install git clone https://git.eclipse.org/r/mosquitto/org.eclipse.mosquitto cd org.eclipse.mosquitto/ git checkout origin/1.4 vi config.mk Change "WITH_WEBSOCKETS:=yes" make And this is where it dies on Arch and CentOS: make[1]: Entering directory '/home/install/org.eclipse.mosquitto/src' cc -Wall -ggdb -O2 -I. -I.. -I../lib -DVERSION="\"1.4\"" -DTIMESTAMP="\"2015-05-04 17:17:55+0200\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_UUID -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_WEBSOCKETS -DWITH_EC -c mosquitto.c -o mosquitto.o In file included from /usr/include/unistd.h:25:0, from mosquitto.c:22: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" mosquitto.c: In function ‘main’: mosquitto.c:275:101: error: expected expression before ‘,’ token _mosquitto_log_printf(NULL, MOSQ_LOG_INFO, "mosquitto version %s (build date %s) starting", VERSION, TIMESTAMP); mosquitto.c:290:54: error: expected expression before ‘)’ token snprintf(buf, 1024, "mosquitto version %s", VERSION); mosquitto.c:368:88: error: expected expression before ‘)’ token _mosquitto_log_printf(NULL, MOSQ_LOG_INFO, "mosquitto version %s terminating", VERSION); Makefile:15: recipe for target 'mosquitto.o' failed make[1]: *** [mosquitto.o] Error 1 make[1]: Leaving directory '/home/install/org.eclipse.mosquitto/src' Makefile:21: recipe for target 'mosquitto' failed make: *** [mosquitto] Error 2 If someone can please point out what I am doing wrong or missing ?
As #hardillb says, the VERSION defines are the problem. If I add the line #define VERSION to mosquitto.c, then I can reproduce the error that you see, but also get a warning about redefining VERSION. If I remove the definition of VERSION from config.mk, then I get an error about VERSION not being defined. These both make sense. What seems to be happening for you is that the compiler is ignoring the command line definition -DVERSION="\"1.4.1\"" and replacing it with -DVERSION=, or isn't parsing the string properly. This doesn't make sense. Other people have managed to compile on Arch, and the CentOS7 repository has a binary version - but without websockets. After some investigation, it appears as though there is a bug in recent libwebsockets code. This changeset introduces some changes that mean that libwebsockets is claiming the macro VERSION all for itself, which isn't very polite for a library. If you use a released version of libwebsockets you should not have any problem compiling.
Just out of interest have you tried building from the TGZ src bundle for Mosquitto 1.4.1 available here: http://mosquitto.org/download/ The errors look to be something to do with expanding the passed in VERSION and TIMESTAMP values. It builds fine [with the exception of the docs] on Fedora 20 which shouldn't be that far from RHEL 7.0 (and from there to Centos 7).
compile vlc for android
I am trying to compile vlc for android in RHEL 6.4 (Santiago). I am following the instructions given in this page https://wiki.videolan.org/AndroidCompile. I am getting some errors. First is when I build this, I get error in git. error: unknown switch `B'. refer http://txt.do/6tjh for log I changed the git checkout -B android ${TESTED_HASH} to git checkout -b android ${TESTED_HASH}. Then this error does not come Then when I run sh compile.sh, I get following errors (refer http://tny.cz/bb552912 I have removed some part of log which had code to download packages like automake, protobuf, ragel etc) rmdir: failed to remove /root/Documents/android/android/vlc/contrib/arm-linux-androideabi/include/freetype2/freetype/config': No such file or directory make[1]: [install] Error 1 (ignored) rmdir: failed to remove `/root/Documents/android/android/vlc/contrib/arm-linux-androideabi/include/freetype2/freetype': No such file or directory make[1]: [install] Error 1 (ignored) Then if I again run sh compile.sh, weird things happen. I don't get this error again, but it builds some library and then stops. First it build libdvdcss and then stops (refer http://tny.cz/5f3ab58f) It ends like Libraries have been installed in: /root/Documents/android/android/vlc/contrib/arm-linux-androideabi/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution add LIBDIR to the `LD_RUN_PATH' environment variable during linking use the `-Wl,-rpath -Wl,LIBDIR' linker flag have your system administrator add LIBDIR to `/etc/ld.so.conf' make[2]: Leaving directory `/root/Documents/android/android/vlc/contrib/contrib-android-arm-linux-androideabi/dvdcss' make[1]: Leaving directory `/root/Documents/android/android/vlc/contrib/contrib-android-arm-linux-androideabi/dvdcss' touch .dvdcss Then each time I run "sh compile.sh" it build one more library and then stops. it has build following libraries libopenjpeg (http://tny.cz/86236e8b) libgpg-error http://tny.cz/26c5626b) ffmpeg (http://tny.cz/1f05aa0f) gmp libgcrypt iconv nettle libjpeg Finally I get an following error and I am not able to do any after that (http://tny.cz/ed7798ea) autopoint: * The AM_GNU_GETTEXT_VERSION declaration in your configure.ac file requires the infrastructure from gettext-0.18 but this version is older. Please upgrade to gettext-0.18 or newer. autopoint: * Stop. autoreconf: autopoint failed with exit status: 1 configure.in:20: error: possibly undefined macro: AM_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /root/Documents/android/android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1 make: *[.ogg] Error 1 I am not able to find gettext package with version > .18 for RHEL 6.4. Maximum available is .17 which is installed Is not this weird. Should not doing "sh compile.sh" build all libraries and I should not have to do this again and again. Also Is RHEL 6.4 (Santiago) compatible for building vlc android Any help for these errors