Open jlsalvador opened 3 days ago
AFK for ~48h. I will debug it later.
Just from proximity, I wonder if #15925 broke this? @thesamesam?
I'll take a look, thanks for the ping. I know what the class of problem is (unfortunate clashes with linux-headers vs libc headers), but the specifics need checking.
@jlsalvador Gentoo doesn't support uclibc anymore so it's not easy for me to quickly get an env setup. Do you have any recommendations for how I can?
I'll take a look, thanks for the ping. I know what the class of problem is (unfortunate clashes with linux-headers vs libc headers), but the specifics need checking.
@jlsalvador Gentoo doesn't support uclibc anymore so it's not easy for me to quickly get an env setup. Do you have any recommendations for how I can?
git clone https://gitlab.com/buildroot.org/buildroot.git
cd buildroot
./support/testing/run-tests -d $(pwd)/dl -o $(mktemp -d) -s tests.package.test_zfs.TestZfsUclibc.test_run
patch to openzfs-2.3.0-rc3: https://gist.github.com/jlsalvador/9b6bd33a569c049438831f38b4054744
Just from proximity, I wonder if #15925 broke this? @thesamesam?
It compiles when the commit e12d76176d4e5454db62eb48b58ecd4970838a76 is reverted.
tests/zfs-tests/cmd/getversion.c
needs as fallback:
#ifdef _KERNEL
#include <sys/fcntl.h>
#else
#include <fcntl.h>
#endif
Thanks, that LGTM (and it's the issue I thought I'd seen in that PR but then couldn't reproduce at all later). Want to submit it or should I?
Thanks, that LGTM (and it's the issue I thought I'd seen in that PR but then couldn't reproduce at all later). Want to submit it or should I?
I won't be able to make a proper commit for about 24 hours, but I'm happy if you want to commit a proper solution before then. 👍
tests/zfs-tests/cmd/getversion.c
needs as fallback:#ifdef _KERNEL #include <sys/fcntl.h> #else #include <fcntl.h> #endif
This does not fix the issue.
Moving fcntl.h
before linux/fs.h
fix the problem.
Debugging and testing for others toolchains (glibc, musl and uclibc) before the PR.
Just moving fcntl.h
before linux/fs.h
is good enough for uClibc.
@thesamesam can you test my PR (https://github.com/openzfs/zfs/pull/16741) in your environment?
Hi again,
I’m currently outside with very limited internet access and no computer, only a phone. Please excuse the brief explanation and lack of proper debugging.
The compilation crash for uClibc with OpenZFS 2.3.0-rc3 is as follows (note that it works correctly with glibc and musl):
System information
Describe the problem you're observing
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs