Page 1 of 1

Compilation error building doxypress 1.2.4 on linux

Posted: Sat Sep 10 2016 5:26 pm
by marlowa
I got a clang-related compilation error trying to build doxypress-1.2.4 on my debian machine. This was after I hacked my Makefiles to make it pick up the 3.5 clang install.

make[2]: Entering directory '/home/marlowa/Downloads/DoxyPress-1.2.4/bin'
depbase=`echo src/parse_clang.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DPACKAGE_NAME=\"DoxyPress\" -DPACKAGE_TARNAME=\"doxypress\" -DPACKAGE_VERSION=\"1.2.4\" -DPACKAGE_STRING=\"DoxyPress\ 1.2.4\" -DPACKAGE_BUGREPORT=\"info@copperspice.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"doxypress\" -DVERSION=\"1.2.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FORK=1 -DHAVE_GETPID=1 -DSIZEOF_SIZE_T=8 -I. -I/home/marlowa/Downloads/copperspice-1.2.1/include -I/home/marlowa/Downloads/copperspice-1.2.1/include/QtCore -I/home/marlowa/Downloads/copperspice-1.2.1/include/QtXml -I../src -g -O2 -std=c++11 -I/usr/lib/llvm-3.5/include -MT src/parse_clang.o -MD -MP -MF $depbase.Tpo -c -o src/parse_clang.o ../src/parse_clang.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ../src/parse_clang.cpp:32:0:
../src/parse_lib_tooling.h:38:43: error: conflicting return type specified for ‘virtual std::unique_ptr<clang::ASTConsumer> DoxyFrontEnd::CreateASTConsumer(clang::CompilerInstance&, llvm::StringRef)’
std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance &compiler, llvm::StringRef file) override;
^
In file included from /usr/lib/llvm-3.5/include/clang/Frontend/FrontendActions.h:13:0,
from ../src/parse_lib_tooling.h:28,
from ../src/parse_clang.cpp:32:
/usr/lib/llvm-3.5/include/clang/Frontend/FrontendAction.h:64:24: error: overriding ‘virtual clang::ASTConsumer* clang::FrontendAction::CreateASTConsumer(clang::CompilerInstance&, llvm::StringRef)’
virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
^
Makefile:1092: recipe for target 'src/parse_clang.o' failed
make[2]: *** [src/parse_clang.o] Error 1
make[2]: Leaving directory '/home/marlowa/Downloads/DoxyPress-1.2.4/bin'
Makefile:706: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/marlowa/Downloads/DoxyPress-1.2.4/bin'
Makefile:400: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Re: Compilation error building doxypress 1.2.4 on linux

Posted: Mon Sep 12 2016 2:54 pm
by barbara
I got a clang-related compilation error trying to build doxypress-1.2.4 on my debian machine.
DoxyPress was updated to use libTooling 3.7.1 for parsing C++. This requires clang 3.7 and clang 3.5 is no longer used in DoxyPress.

The documentation for the clang specific information is located on the following page:

http://www.copperspice.com/docs/doxypress/parsing.html


For reference, pertinent changes to DoxyPress and DoxyPressApp are documented in our time line on the following page:

http://www.copperspice.com/docs/doxypress/timeline.html

Barbara

Re: Compilation error building doxypress 1.2.4 on linux

Posted: Thu Sep 15 2016 1:51 pm
by marlowa
barbara wrote:
I got a clang-related compilation error trying to build doxypress-1.2.4 on my debian machine.
DoxyPress was updated to use libTooling 3.7.1 for parsing C++. This requires clang 3.7 and clang 3.5 is no longer used in DoxyPress.

The documentation for the clang specific information is located on the following page:

http://www.copperspice.com/docs/doxypress/parsing.html
I'm sure it's all documented but in situations like this I expect the build procedure to fail gracefully. Surely it should try to detect which version of clang is there at the beginning?
barbara wrote: For reference, pertinent changes to DoxyPress and DoxyPressApp are documented in our time line on the following page:

http://www.copperspice.com/docs/doxypress/timeline.html

Barbara
I will. Thanks for the pointer.

Re: Compilation error building doxypress 1.2.4 on linux

Posted: Fri Dec 23 2016 12:09 am
by barbara
As a follow up to this thread we have documented the steps required to build DoxyPress on Debian Jessie using clang 3.7.1. We have also documented how to build using Fedora 23 and Ubuntu 16.04.

The documentation is located in the DoxyPress docs which can be found on our web site. Refer to http://www.copperspice.com/docs/doxypress/parsing.html