Re: [DynInst_API:] Build error dyninst-8.2 -> /usr/bin/ld: cannot find -lLINK_PRIVATE


Date: Thu, 19 Jun 2014 11:42:53 -0700 (PDT)
From: Matthew LeGendre <legendre1@xxxxxxxx>
Subject: Re: [DynInst_API:] Build error dyninst-8.2 -> /usr/bin/ld: cannot find -lLINK_PRIVATE

That command would get you the HEAD, which is different from the 8.2 branch. After you clone the dyninst repo, you could switch to the 8.2 branch with the command 'git checkout v8.2'.

Alternatively, You could just download a snapshot tarball of the 8.2 branch from: http://git.dyninst.org/?p=dyninst.git;a=snapshot;h=refs/heads/v8.2;sf=tgz

And rzmerl was just down for a couple hours this morning for an upgrade to RHEL 6.5. In the process it looks like the default cmake was bumped up to version 2.8.10.1--so this bug probably just went away on its own. rzmerl is back up now.

-Matt

On Thu, 19 Jun 2014, Jim Galarowicz wrote:
Hi all,

Currently, I'm using the official release for 8.2.

Will this get the latest version for me to use?
        git clone http://git.dyninst.org/dyninst.git

Thanks,
Jim G

On 06/19/2014 11:28 AM, Josh Stone wrote:
On 06/19/2014 11:15 AM, Matthew LeGendre wrote:

On Thu, 19 Jun 2014, Josh Stone wrote:
On 06/19/2014 10:03 AM, Matthew LeGendre wrote:
Jim,

I believe this is a known issue that's fixed in the latest Dyninst 8.2
branch.  It's an issue with certain cmake versions.  You could update
Dyninst, or I belive using this cmake install on rzmerl avoids the
problem:

/collab/usr/global/tools/cmake/chaos_5_x86_64_ib/cmake-2.8.12.2/bin
Do you have info on which cmake versions have trouble with this?  I can
just raise the version in cmake/shared.cmake for which we enable it.

I just tried both cmake 2.8.7 and 2.8.6 though, and it worked fine,
automatically with and without LINK_PRIVATE as expected.
Bill already fixed the bug in the Dyninst 8.2 branch.  I'm guessing that
Jim's just running with a Dyninst that's a month or two behind.

I believe the bug was that Dyninst's cmake files used LINK_PRIVATE if the
cmake version was >= 2.8.  Except LINK_PRIVATE became a feature in CMake
2.8.7.  So if one tried to build Dyninst with a cmake version >= 2.8.0 and
< 2.8.7 it threw this error.
Ok, yes that's commit edfa02c969f5.

Perhaps the reason for Jim's lagging was not realizing that branch v8.2
is *not* a release yet!  So if you're working with 8.2, you need to keep
updating to stay with development progress.  I hope we'll see an actual
release soon, and for that release we'll have a git tag, not just a branch.


[← Prev in Thread] Current Thread [Next in Thread→]