hughperman / pure-lang

Automatically exported from code.google.com/p/pure-lang
0 stars 0 forks source link

build broken; g++ link errors #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by ieeege...@gmail.com on 24 Feb 2010 at 12:43

GoogleCodeExporter commented 8 years ago
What do you get if you run 'llvm-config --ldflags' manually?

Original comment by aggraef@gmail.com on 24 Feb 2010 at 1:01

GoogleCodeExporter commented 8 years ago
$ 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?

Original comment by ieeege...@gmail.com on 24 Feb 2010 at 2:43

GoogleCodeExporter commented 8 years ago
As 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.

Original comment by ieeege...@gmail.com on 24 Feb 2010 at 3:20

GoogleCodeExporter commented 8 years ago
Ok, thanks for investigating.

Original comment by aggraef@gmail.com on 24 Feb 2010 at 1:52