Bug#501704: Linking with llvm 2.3 fails with undefined reference to llvm::verifyFunction

Patrick Boettcher patrick.boettcher at desy.de
Tue Jun 2 08:23:48 UTC 2009


Hi Giridhar,

On Fri, 29 May 2009, Y Giridhar Appaji Nag wrote:

> Hi Patrick,
>
> On 08/10/09 19:40 +0200, Patrick Boettcher said ...
>> Linking my binary which is using LLVM as follows:
>>
>> g++ `llvm-config --ldflags` `llvm-config --libs` -o compile $^
>>
>> fails like that:
>>
>> undefined reference to `llvm::verifyFunction(llvm::Function const&,
>> llvm::VerifierFailureAction)'
>
> Unfortunately, you raised this bug on 2.3-1~exp0 which is no longer in the
> archive.  I noticed that 2.5 does have llvm::verifyFunction.  Would you be
> able to re-test this and report back?

Actually it would quite an effort, because we are no longer using any 
packaged llvm. :(

This is because (at least for the time being) on the frontend-part can be 
used as a library. If you writing a backend and if you're adding 
intrinsics you need to handle llvm yourself to keep binary compatibility 
on the IR level and this is what we're doing now...

Sorry,
Patrick.

--
   Mail: patrick.boettcher at desy.de
   WWW:  http://www.wi-bw.tfh-wildau.de/~pboettch/





More information about the Pkg-llvm-team mailing list