Compilation error building doxypress 1.2.4 on linux

Discuss issues related to installing or building
Post Reply
marlowa
Posts: 117
Joined: Sun Oct 25 2015 10:52 am

Compilation error building doxypress 1.2.4 on linux

Post 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
barbara
Posts: 446
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Compilation error building doxypress 1.2.4 on linux

Post 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
marlowa
Posts: 117
Joined: Sun Oct 25 2015 10:52 am

Re: Compilation error building doxypress 1.2.4 on linux

Post 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.
barbara
Posts: 446
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Compilation error building doxypress 1.2.4 on linux

Post 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
Post Reply