Closed pcbeard closed 3 years ago
This is using the Debian distribution of WSL 2.
rd
should be able to build on debian on WSL 2. The fact that you're getting some build errors is something that needs to be looked into.
did you do:
$ sudo apt install cmake make capnproto libcapnp-dev gdb g++-multilib libclang-11-dev
in your debian installation before trying to build? What version of debian are your using?
But the main problem is that even if it did build properly it won't work. See an issue regarding rr and WSL 2.
https://github.com/rr-debugger/rr/issues/2506
So in other words rr
wont work on WSL 2. Since rd
is a port and uses the same performance counters I'm fairly certain that rd
wont work on WSL 2 also.
Closing this ticket. We can try figuring build issues though..
(after installing the above packages on debian and removing your modification to build.rs, please let me know what error you get...)
After installing those packages, stashing my changes, I was able to get past the 32-bit issues, but when the build finishes, it still fails with the same error message:
--- stderr
/usr/include/x86_64-linux-gnu/bits/statx.h:25:8: error: redefinition of 'statx_timestamp'
/usr/include/linux/stat.h:56:8: note: previous definition is here
/usr/include/x86_64-linux-gnu/bits/statx.h:36:8: error: redefinition of 'statx'
/usr/include/linux/stat.h:99:8: note: previous definition is here
/usr/include/x86_64-linux-gnu/bits/statx.h:25:8: error: redefinition of 'statx_timestamp', err: true
/usr/include/x86_64-linux-gnu/bits/statx.h:36:8: error: redefinition of 'statx', err: true
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: ()', build.rs:141:10
What exact version of debian are you using?
uname -sr Linux 4.19.128-microsoft-standard
Thanks -- What does cat /etc/issue
output when you run on command line?
Not sure if this is expected to work. I installed rust via rustup-init, and noticed that you're using cargo features that require nightly, so I made the nightly toolchain default in the rr project:
When I run
rustup build
it first complained about not having a 32-bit cross compilation:I fixed this by adding:
Finally, the build fails at this point with the error message: