Comment 4 for bug 1148529

Revision history for this message
Ryo Onodera (ryoqun) wrote :

Thanks for replying!

First of all, Ubuntu started to provide the latest OProfile (0.9.8) again after some inactivity of packaging. I'm really happy about that. Thank you very mcuh!!

Because now LLVM depends on libopagent, this bug is blocked by these following libopagent-related bugs:

Bug 1154025 Install PIC version of libbfd.a
Bug 1148682 symbol lookup error: /usr/lib/libopagent.so: undefined symbol: bfd_init

Could you also take a look at these? By resolving them, we can avoid to add the linking option "-lbfd" to configure.

Turning back to this bug, the side effects or permance issues should be minimal.

When LLVM's users aren't using OProfile related C++ LLVM classes explitly, nothing happens at runtime. Thus, thre is no performance degragation at all. Starting from LLVM 3.1, linking to libopagent is delayed by using dlopen as much as possible until when we absoluteby have to do it.

In a sense, as a side effect, we have new dependancy. Also, the binary size will be bigger a bit.

Note that I didn't but we should make libllvm3.1 and llvm-3.1-dev depend on libopagent1.