New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rr fails to build with glibc-2.36 due to differences between <linux/mount.h> and <sys/mount.h> headers #3356
Comments
Here are the RPMs the associated headers are coming from: [wcohen@rawhide rr-da33770]$ rpm -qf /usr/include/linux/mount.h |
There are two patches on https://github.com/wcohen/rr/tree/wcohen/rhbz2113185 that allow rr to build on Fedora rawhide. |
Also broken on Arch with glibc 2.36 + linux-headers 5.18.16; I'll try your patch |
Can confirm, builds on Arch Linux with aforementioned settings. |
This would be more useful in the form of a PR. |
Apparently it has been fixed on "2.36 release branch", but the next bug release is likely some time off (2.36.1 with 23 day since 2.36): See also |
This should be reverted, once there are no distros with the affected release. The last release was 2022-08-01 and "It has been fixed upstream and backported to 2.36 release branch.", but there is still no announcement for the bug fix release. Further more, "Not a blocker. We can review in 2.37." hints there might be none. Due to this bug, rr does not build on Arch Linux as of 2022-09-06. All credits go to @wcohen for the patch. Closes rr-debugger#3356.
The issue has been fixed on Fedora, so the patches are no longer required. I would expect that other distirbutions will also have the problem self resolve with newer kernel headers/glibc. |
When attempting to build a copy of rr checked out from the git repository (commit da33770) on Fedora rawhide with upcoming glibc-2.36 (glibc-2.35.9000-31.fc37.x86_64). The build of rr fails with the following errors:
Doing some research it appears that this problem occurs on a number of software packages due to differences between <linux/mount.h> and <sys/mount.h> :
https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
The text was updated successfully, but these errors were encountered: