harvard-acc / LLVM-Tracer

An LLVM pass to profile dynamic LLVM IR instructions and runtime values
Other
135 stars 35 forks source link

Program example: /usr/bin/ld: cannot find -lm collect2: error: ld returned 1 exit status #8

Closed andrestoga closed 8 years ago

andrestoga commented 8 years ago

Hi Sophia,

I tried to run the example using the python file but I got the following error:

/usr/bin/ld: cannot find -lm collect2: error: ld returned 1 exit status

I believe it is something related to the missing library libm. Is that correct?

Best,

ysshao commented 8 years ago

Yes, it's correct. You may find the second answer to this post useful for your case:

http://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary

Let me know how it goes.

Thanks, Sophia

andrestoga commented 8 years ago

Thanks Sophia! That was very useful! I worked out for the libm library but then I had the problem of another missing library: libz. In this one I had a lot of trouble because the ones I have installed seem to have some problems. So, I had to use a third party library (lampp) for the libz. It worked.

I really appreciate your help!

Kind regards,

ysshao commented 8 years ago

Good to hear =D