What steps will reproduce the problem? 1. cd pure; svn up; ./configure; make 2. 3.
What is the expected output? What do you see instead?
g++ errors while linking; llvm-config ...
not expanded.
What version of the product are you using? On what operating system? 0.43, r3104
Please provide any additional information below.
$ make
g++ -o pure -L. pure.o -lpure -L/usr/local/lib -lpthread -ldl -lm -lm
-lgmp -lreadline -ltermcap
pure.o: In function main':
/home/geert/Downloads/pure-lang-read-only/pure/pure.cc:585: undefined
reference to
llvm::PerformTailCallOpt'
./libpure.so: undefined reference to
`llvm::PHINode::resizeOperands(unsigned int)'
etc.
Comment #1
Posted on Feb 24, 2010 by Massive PandaWhat do you get if you run 'llvm-config --ldflags' manually?
Comment #2
Posted on Feb 24, 2010 by Happy Panda$ llvm-config --ldflags -L/usr/local/lib -lpthread -ldl -lm (using llvm 2.6 on RHEL5)
I also did a rm -rf in the pure dir and a fresh svn up. Maybe it's my llvm installations; I'll redo it with the configure options as recommended by pure INSTALL.
I suspect it is my own problem. I recall having stripped all LLVM libraries; could that have an influence?
Comment #3
Posted on Feb 24, 2010 by Happy PandaAs expected, a (re-compile and) re-install of llvm-2.6 made pure link correctly again. I still have no idea what gave me the link errors in the first place. Please consider this issue a non-issue and close it as fixed.
Thanks.
Comment #4
Posted on Feb 24, 2010 by Massive PandaOk, thanks for investigating.
Status: WontFix
Labels:
Type-Defect
Priority-Medium