I have added two patches: * rr-map-elf-header.patch * rr-pthread-for-new-gcc.patch But still unable to build. u (In reply to Andreas Stieger from comment #4) > What if you take out this commit in 5.5.0? > https://github.com/rr-debugger/rr/issues/2913 > https://github.com/rr-debugger/rr/commit/ > 0044772ce90ab65ef8a6daca35bb1cb1c4768a87 I have applied https://github.com/rr-debugger/rr/commit/0044772ce90ab65ef8a6daca35bb1cb1c4768a87.patch with the patch -R option. Then the same happens it seems. For aarch64 the build seems to succeed btw. I opened https://github.com/rr-debugger/rr/issues/3199 in case anyone has more ideas.