Package Details: rr 5.2.0-3

Git Clone URL: https://aur.archlinux.org/rr.git (read-only)
Package Base: rr
Description: Record and Replay framework: lightweight recording and deterministic debugging
Upstream URL: http://rr-project.org/
Licenses: custom
Submitter: dequis
Maintainer: codyps
Last Packager: codyps
Votes: 32
Popularity: 1.081094
First Submitted: 2015-08-24 23:26
Last Updated: 2018-11-18 17:47

Latest Comments

1 2 3 4 5 Next › Last »

codyps commented on 2019-01-02 00:26

Hi @Amanieu: while that could certainly be added to the PKGBUILD, it isn't entirely clear to me that this is the right thing to do: generally, one would modify the options=() via makepkg.conf to adjust behavior on one's own system.

Is there some reason librrprepload.so should be treated specially?

Amanieu commented on 2018-12-31 22:59

Can you add options=(!strip) so that we can get proper backtraces from librrpreload.so?

pmatos commented on 2018-11-16 12:42

Getting:

.cache/yay/rr/src/rr-5.2.0/src/kernel_abi.cc:54:17: error: static assertion failed: type ::ucontext_t not correctly defined
   static_assert(Verifier<arch_, system_type_, rr_type_>::same_size,            \
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pmatos/.cache/yay/rr/src/rr-5.2.0/src/kernel_abi.h:1813:3: note: in expansion of macro ‘RR_VERIFY_TYPE_ARCH’
   RR_VERIFY_TYPE_ARCH(SupportedArch::x86_64, ::ucontext_t, ucontext_t);
   ^~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/rr.dir/build.make:413: CMakeFiles/rr.dir/src/kernel_abi.cc.o] Error 1

during build with gcc8

pmatos commented on 2018-11-16 12:42

Missing dependency lib32-gcc-libs

for the cross-compile-toolchain

codyps commented on 2018-11-06 19:15

Here's a patch that fixes a bunch of build/install issues with the pkgbuild:

(right now it fails to build, and then fails to install on current archlinux. please apply this fix)

From 498b62863b068be5bf8b647e53b6ffe23a4ab92c Mon Sep 17 00:00:00 2001
From: Cody Schafer <cody@berkshiregrey.com>
Date: Tue, 6 Nov 2018 14:12:46 -0500
Subject: [PATCH] fix build

 - add patch for ucontext build failure from upstream
 - define CXX standard 14
 - set libdir as `lib` to avoid use of `lib64`
---
 .SRCINFO |  7 ++++---
 PKGBUILD | 20 ++++++++++++++++----
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 63c7f2a..b137073 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by mksrcinfo v8
-# Mon May 28 00:53:20 UTC 2018
 pkgbase = rr
    pkgdesc = Record and Replay framework: lightweight recording and deterministic debugging
    pkgver = 5.2.0
-   pkgrel = 1
+   pkgrel = 2
    url = http://rr-project.org/
    arch = i686
    arch = x86_64
@@ -11,11 +9,14 @@ pkgbase = rr
    makedepends = git
    makedepends = cmake
    makedepends = gdb
+   makedepends = gcc-multilib
    depends = python2-pexpect
    depends = gdb
    depends = capnproto
    source = https://github.com/mozilla/rr/archive/5.2.0.tar.gz
+   source = https://github.com/mozilla/rr/commit/53c5bd72bae089616a3ca626b8af240481d70e6f.patch
    sha1sums = 55040be15a87dd93012d7cdbeb8a3fc428ea4b6b
+   sha1sums = 9fcafcc3f4474b4352402b39002869a51e77f6df

 pkgname = rr

diff --git a/PKGBUILD b/PKGBUILD
index e32fa8f..43ed499 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@

 pkgname=rr
 pkgver=5.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Record and Replay framework: lightweight recording and deterministic debugging'
 arch=(i686 x86_64)
 url='http://rr-project.org/'
@@ -11,17 +11,29 @@ license=('custom')
 depends=('python2-pexpect' 'gdb' 'capnproto')
 makedepends=('git' 'cmake' 'gdb')
 [ "$CARCH" = 'x86_64' ] && makedepends+=('gcc-multilib')
-source=(https://github.com/mozilla/${pkgname}/archive/${pkgver}.tar.gz)
-sha1sums=('55040be15a87dd93012d7cdbeb8a3fc428ea4b6b')
+source=(
+   https://github.com/mozilla/${pkgname}/archive/${pkgver}.tar.gz
+   https://github.com/mozilla/rr/commit/53c5bd72bae089616a3ca626b8af240481d70e6f.patch
+)
+sha1sums=('55040be15a87dd93012d7cdbeb8a3fc428ea4b6b'
+          '9fcafcc3f4474b4352402b39002869a51e77f6df')

 prepare() {
    cd $pkgname-$pkgver
    mkdir -p build
+   patch -Np1 -i "$srcdir/53c5bd72bae089616a3ca626b8af240481d70e6f.patch"
 }

 build() {
    cd $pkgname-$pkgver/build
-   cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -DBUILD_TESTS=OFF -DWILL_RUN_TESTS=OFF ..
+   cmake \
+       -DCMAKE_BUILD_TYPE=RelWithDepInfo \
+       -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+       -DBUILD_TESTS=OFF \
+       -DWILL_RUN_TESTS=OFF \
+       -DCMAKE_INSTALL_LIBDIR=lib \
+       -DCMAKE_CXX_STANDARD=14 \
+       ..

    make
 }
-- 
2.19.1

YaLTeR commented on 2018-09-12 11:34

Looks like it was fixed upstream: https://github.com/mozilla/rr/issues/2237

YaLTeR commented on 2018-09-12 10:20

I'm getting the following build error:

/home/yalter/.cache/pacaur/rr/src/rr-5.2.0/src/kernel_abi.cc:54:17: error: static assertion failed: type ::ucontext_t not correctly defined
   static_assert(Verifier<arch_, system_type_, rr_type_>::same_size,            \
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/yalter/.cache/pacaur/rr/src/rr-5.2.0/src/kernel_abi.h:1813:3: note: in expansion of macro ‘RR_VERIFY_TYPE_ARCH’
   RR_VERIFY_TYPE_ARCH(SupportedArch::x86_64, ::ucontext_t, ucontext_t);
   ^~~~~~~~~~~~~~~~~~~

desmu commented on 2018-07-27 16:36

For those who don't want the bit version or don't have the cross compiling tool chain:

add -Ddisable32bit=ON on line 24 in PKGBUILD.

dequis commented on 2018-05-28 00:55

5.2.0 is out https://github.com/mozilla/rr/releases/tag/5.2.0

Also disabled tests, thanks tbodt.

tbodt commented on 2018-05-22 21:26

Build times could be sped up roughly 10x by adding -DBUILD_TESTS=OFF -DWILL_RUN_TESTS=OFF to the CMake command.