Compilation error building doxypress 1.2.4 on linux
Posted: Sat Sep 10 2016 5:26 pm
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 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
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 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