rr on OpenBSD 7.2

24 views
Skip to first unread message

Brian Tague

unread,
Nov 24, 2022, 9:05:06 AM11/24/22
to rr-devel
Can rr be installed on OpenBSD ?


mkdir obj && cd obj
** cmake -DCMAKE_BUILD_TYPE=Release ../rr **

=========================================================================
btague{/usr/local/bin/obj}$ doas cmake -DCMAKE_BUILD_TYPE=Release ../rr
-- The C compiler identification is Clang 13.0.0
-- The CXX compiler identification is Clang 13.0.0
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test SUPPORTS_MACRO_PREFIX_MAP
-- Performing Test SUPPORTS_MACRO_PREFIX_MAP - Success
-- Performing Test SUPPORTS_CXX14
-- Performing Test SUPPORTS_CXX14 - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
CMake Error at CMakeLists.txt:209 (message):
  Can't find 'capnp' command; install Capnproto packages?
  https://github.com/rr-debugger/rr/wiki/Building-And-Installing#tldr


-- Configuring incomplete, errors occurred!
See also "/usr/local/bin/obj/CMakeFiles/CMakeOutput.log".
See also "/usr/local/bin/obj/CMakeFiles/CMakeError.log".

Kyle Huey

unread,
Nov 24, 2022, 11:02:08 AM11/24/22
to Brian Tague, rr-devel
On Thu, Nov 24, 2022 at 6:05 AM Brian Tague <[email protected]> wrote:
>
> Can rr be installed on OpenBSD ?

rr is very closely coupled to the Linux kernel. It may be possible
that it could be ported to OpenBSD but it definitely won't work out of
the box. I know there are substantial differences between ptrace(2)
on Linux and on the various BSDs. rr also needs exact knowledge of how
various syscalls behave which will vary on the BSDs. And for
performance rr uses the Linux-specific seccomp facility with a feature
that allows us to selectively trigger ptrace traps based on the
syscall, which has no equivalent in pledge(2) as far as I know.

So while porting rr might be possible it's likely to be considerable
amounts of work.
You could get past this particular error message by building and
installing capnproto on your system but the larger issues mentioned
above will remain.

- Kyle

> -- Configuring incomplete, errors occurred!
> See also "/usr/local/bin/obj/CMakeFiles/CMakeOutput.log".
> See also "/usr/local/bin/obj/CMakeFiles/CMakeError.log".
>
> --
> You received this message because you are subscribed to the Google Groups "rr-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rr-devel/be906a0f-8bb1-4745-83b4-7662cca90f5en%40googlegroups.com.

Brian Tague

unread,
Nov 25, 2022, 8:33:53 AM11/25/22
to rr-devel
Thank you very much for the thorough explanation Kyle.

Take care.
Reply all
Reply to author
Forward
0 new messages