Hi,<br><br>Until recently I've been building LLVM with SHARED_LIBRARY=1. However, sith current svn, build now fails with unresolved symbols building opt. I've done a clean checkout, configure and make so it's not down to any local changes I've made.<br>
<br>I'm building with:<br>./configure --enable-assertions \<br>--enable-expensive-checks=no \<br>--enable-pic \<br>--enable-targets=host-only \<br>--enable-shared \<br>--enable-jit<br>make SHARED_LIBRARY=1<br><br>failure is:<br>
llvm[2]: Linking Release executable opt (without symbols)<br>/home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `T.1603':<br>opt.cpp:(.text+0x510): undefined reference to `llvm::createStripDeadPrototypesPass()'<br>
opt.cpp:(.text+0x525): undefined reference to `llvm::createDeadTypeEliminationPass()'<br>opt.cpp:(.text+0x54a): undefined reference to `llvm::createConstantMergePass()'<br>opt.cpp:(.text+0x57d): undefined reference to `llvm::createGlobalOptimizerPass()'<br>
opt.cpp:(.text+0x5a7): undefined reference to `llvm::createDeadArgEliminationPass()'<br>opt.cpp:(.text+0x5e6): undefined reference to `llvm::createPruneEHPass()'<br>opt.cpp:(.text+0x64d): undefined reference to `llvm::createArgumentPromotionPass(unsigned int)'<br>
opt.cpp:(.text+0x668): undefined reference to `llvm::createFunctionAttrsPass()'<br>opt.cpp:(.text+0x688): undefined reference to `llvm::createGlobalDCEPass()'<br>/home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `(anonymous namespace)::AddOptimizationPasses(llvm::PassManager&, llvm::FunctionPassManager&, unsigned int)':<br>
opt.cpp:(.text+0x6e7): undefined reference to `llvm::createFunctionInliningPass(int)'<br>opt.cpp:(.text+0x781): undefined reference to `llvm::createAlwaysInlinerPass()'<br>/home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `T.1601':<br>
opt.cpp:(.text+0x1f1f): undefined reference to `llvm::createArgumentPromotionPass(unsigned int)'<br>opt.cpp:(.text+0x1f24): undefined reference to `llvm::createStructRetPromotionPass()'<br>...... more failures ....<br>
<br>Should I expect this configuration to work?<br><br>Thanks,<br>-- James Williams<br>