Hi folks, Im running into some issues trying to compile ispc on a linux machine. the ispc build process goes nicely up until: ... Compiling objs/lex.cpp Creating ispc executable objs/module.o: In function `Module::execPreprocessor(char const*, llvm::raw_string_ostream*) const': module.cpp:(.text+0xc36): undefined reference to `llvm::sys::getDefaultTargetTriple()' objs/ctx.o: In function `FunctionEmitContext::BroadcastValue(llvm::Value*, llvm::Type*, char const*)': ctx.cpp:(.text+0x71b6): undefined reference to `llvm::Twine::str() const' objs/ispc.o: In function `Target::GetTripleString() const': ispc.cpp:(.text+0x2211): undefined reference to `llvm::sys::getDefaultTargetTriple()' objs/opt.o: In function `IntrinsicsOpt::runOnBasicBlock(llvm::BasicBlock&)': opt.cpp:(.text+0x1a6a): undefined reference to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)' opt.cpp:(.text+0x1af6): undefined reference to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)' opt.cpp:(.text+0x1bd2): undefined reference to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)' opt.cpp:(.text+0x1c5e): undefined reference to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)' opt.cpp:(.text+0x1d22): undefined reference to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)' objs/opt.o:opt.cpp:(.text+0x1dd7): more undefined references to `llvm::Intrinsic::getName(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>)' follow clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:264: recipe for target 'ispc' failed
Ive tried this using the llvm/clang build with the alloy.py script, Ive tried with the binary versions apt-get installs. Ive build llvm/clang from the tarballs all give the same result. All are 3.8 versions if it matters. and version 5 of gcc which might matter more then anything. I have Intel compilers on the machine but they fail in the build process way earlier. thoughts/suggestions? thanks steve -- You received this message because you are subscribed to the Google Groups "Intel SPMD Program Compiler Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
