[LLVMdev] make SHARED_LIBRARY=1 broken?

James Williams junk at giantblob.com
Tue Mar 2 13:35:23 PST 2010


Hi,

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.

I'm building with:
./configure --enable-assertions \
--enable-expensive-checks=no \
--enable-pic \
--enable-targets=host-only \
--enable-shared \
--enable-jit
make SHARED_LIBRARY=1

failure is:
llvm[2]: Linking Release executable opt (without symbols)
/home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `T.1603':
opt.cpp:(.text+0x510): undefined reference to
`llvm::createStripDeadPrototypesPass()'
opt.cpp:(.text+0x525): undefined reference to
`llvm::createDeadTypeEliminationPass()'
opt.cpp:(.text+0x54a): undefined reference to
`llvm::createConstantMergePass()'
opt.cpp:(.text+0x57d): undefined reference to
`llvm::createGlobalOptimizerPass()'
opt.cpp:(.text+0x5a7): undefined reference to
`llvm::createDeadArgEliminationPass()'
opt.cpp:(.text+0x5e6): undefined reference to `llvm::createPruneEHPass()'
opt.cpp:(.text+0x64d): undefined reference to
`llvm::createArgumentPromotionPass(unsigned int)'
opt.cpp:(.text+0x668): undefined reference to
`llvm::createFunctionAttrsPass()'
opt.cpp:(.text+0x688): undefined reference to `llvm::createGlobalDCEPass()'
/home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `(anonymous
namespace)::AddOptimizationPasses(llvm::PassManager&,
llvm::FunctionPassManager&, unsigned int)':
opt.cpp:(.text+0x6e7): undefined reference to
`llvm::createFunctionInliningPass(int)'
opt.cpp:(.text+0x781): undefined reference to
`llvm::createAlwaysInlinerPass()'
/home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `T.1601':
opt.cpp:(.text+0x1f1f): undefined reference to
`llvm::createArgumentPromotionPass(unsigned int)'
opt.cpp:(.text+0x1f24): undefined reference to
`llvm::createStructRetPromotionPass()'
...... more failures ....

Should I expect this configuration to work?

Thanks,
-- James Williams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100302/b9ed4b3a/attachment.html>


More information about the llvm-dev mailing list