Linux compile errors

Moderators: Rachael, dpJudas

Locked
Edward-san
Developer
Developer
Posts: 197
Joined: Sun Nov 29, 2009 16:36

Linux compile errors

Post 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.
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: Linux compile errors

Post 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?
Edward-san
Developer
Developer
Posts: 197
Joined: Sun Nov 29, 2009 16:36

Re: Linux compile errors

Post 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.
Locked

Return to “Bugs (Archive)”