installation instructions for rr?

Laszlo Ersek lersek at redhat.com
Tue Aug 2 01:22:29 UTC 2016


On 07/30/16 01:16, Robert O'Callahan wrote:
> On Sat, Jul 30, 2016 at 12:51 AM, Laszlo Ersek <lersek at redhat.com
> <mailto:lersek at redhat.com>> wrote:
> 
>     I'm thinking about trying out rr, but for that, I'll have to build and
>     install it first. I found the build instructions:
> 
>     https://github.com/mozilla/rr/wiki/Building-And-Installing
> 
>     however, despite the title saying "building and installing", I can't see
>     the installation step itself (which is usually "make install").
> 
>     Do I have to run rr from the build directory, or is it possible to
>     install it like many other open source projects, under a user-specified
>     pathname prefix? (Think ./configure --prefix=...)
> 
> 
> `make install` does work.
> 
> You can select a destination directory using cmake:
> cmake -DCMAKE_INSTALL_PREFIX=<prefix> <path_to_source>
> 
> You can probably also use DESTDIR:
> make DESTDIR=<prefix> install
> 
> Someone could extend the fake `configure` script to parse out --prefix
> and pass the correct option to cmake...
> 
> I'll update the wiki.

Thanks! The build and the installation worked, but when I ran "make
test" between them, I got:

-------
99% tests passed, 11 tests failed out of 1744

Total Test time (real) = 3532.40 sec

The following tests FAILED:
        351 - sched_setparam (Failed)
        352 - sched_setparam-no-syscallbuf (Failed)
        687 - thread_exit_signal (Failed)
        1223 - sched_setparam-32 (Failed)
        1224 - sched_setparam-32-no-syscallbuf (Failed)
        1489 - madvise_dontfork-32 (Failed)
        1490 - madvise_dontfork-32-no-syscallbuf (Failed)
        1655 - fork_exec_info_thr-32 (Failed)
        1656 - fork_exec_info_thr-32-no-syscallbuf (Failed)
        1731 - switch_processes-32 (Failed)
        1732 - switch_processes-32-no-syscallbuf (Failed)
Errors while running CTest
make: *** [test] Error 8
-------

Not sure if these are known issues or false positives. (I built at
commit 214699ee4573.)

Anyway I'll try out "rr" tomorrow with an example debugging session, on
QEMU (i.e., QEMU will be the debuggee). Thanks for your help!

Laszlo


More information about the rr-dev mailing list