Page 1 of 1

Linux compile errors

Posted: Tue Nov 29, 2016 19:57
by Edward-san
I fixed most of the errors with this PR.

I'm still getting problems with gcc 4.9 when linking drawergen:

Code: Select all

[ 26%] Linking CXX executable drawergen
CMakeFiles/drawergen.dir/drawergen.cpp.o: In function `main':
/home/edward-san/zdoom/qzdoom/tools/drawergen/drawergen.cpp:667: undefined reference to `llvm::install_fatal_error_handler(void (*)(void*, std::string const&, bool), void*)'
CMakeFiles/drawergen.dir/ssa/ssa_scope.cpp.o: In function `SSAScope::intrinsic(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)':
/home/edward-san/zdoom/qzdoom/tools/drawergen/ssa/ssa_scope.cpp:59: undefined reference to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)'
/home/edward-san/zdoom/qzdoom/tools/drawergen/ssa/ssa_scope.cpp:61: undefined reference to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)'
collect2: error: ld returned 1 exit status
No idea why it happens, sincerely.

Re: Linux compile errors

Posted: Tue Nov 29, 2016 21:19
by dpJudas
Hmm, very strange. If it couldn't find LLVM one would expect it to list more undefined references than just those two.

Building QZDoom worked fine for you before the drawer stuff was moved to its own project, right?

Re: Linux compile errors

Posted: Tue Nov 29, 2016 21:27
by Edward-san
Uh, actually I didn't check gcc 4.9 before the move, so I don't know. gcc 5 and 6 work fine, though.