Skip to content
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

aufs-util musl patches #17

Open
justablob opened this issue Jun 5, 2022 · 7 comments
Open

aufs-util musl patches #17

justablob opened this issue Jun 5, 2022 · 7 comments

Comments

@justablob
Copy link

Hello,

while building aufs-util 5.8 with a musl toolchain, we came across an old SourceForge issue. Since SourceForge doesn't appear to be active, I'm asking here: Do you have an up-to-date version of those patches, or at least the original files and could you post them on GitHub as files? SourceForge's Markdown parser mangled up your patches to the point that they're not usable anymore, so we're stuck at this point.

Thanks in advance.

@sfjro
Copy link
Owner

sfjro commented Jun 6, 2022 via email

@justablob
Copy link
Author

justablob commented Jun 6, 2022

sjfro,

The latest commit on aufs5.8 I could see was from 2020, the merge from aufs5.0 isn't there for me. I have tried merging aufs5.0 into aufs5.8 though and got the same issues though. We didn't try to set LibAuDir when compiling. I did get a little further by modifying musl and adding the missing features to nftw and moving around some files in aufs-util, but ultimately we gave up.

For what it's worth, even though it's not the same problem, I have also reported an issue about aufs-util on buildroot's issue tracker, because it was the tool we were using at first. We've also been cross-compiling from x86_64-linux-gnu to i686-linux-musl all this time, so we're going to try a native build and report back.

Here is the buildroot issue: https://bugs.busybox.net/show_bug.cgi?id=14836

I'll get back to you in a few days, ok?

@sfjro
Copy link
Owner

sfjro commented Jun 6, 2022 via email

@justablob
Copy link
Author

sjfro,

I got the aufs-util sources from SourceForge.

Other than the whole nftw thing, the pre thing was also something we had to fix, but this was relatively easily done by adding an empty file called "pre". My guess is, "pre" is not marked as phony and for some reason make gets confused.

Extlib also didn't work. We tried both glibc and musl, but neither of them could find the files inside extlib. We had to manually include the files, and even then, that wasn't all it took.

I'm going to be away for a few days but once I'm back, I'm going to give more precise details.

@justablob
Copy link
Author

sjfro,

I have done some further testing and was able to build aufs-util on my Debian host, using x86_64-linux-gnu instead of cross-compiling for i386-linux-musl as I was doing previously. This doesn't really help me in any way other than confirming that it is an issue related to aufs-util being unable to build on musl. Here is the make command I had to use to get aufs-util to build for the host:

make CPPFLAGS=-I/root/test2/linux-5.18.3/usr/include BuildDIRREN=yes BuildFHSM=yes Glibc=yes -B all

Still, I wasn't able to cross-compile it for x86 musl. There, I still get the pre issue, the nonglibc issue, the nftw issue and whatever else comes up.

Any chance you could look into this one more time?

I'd be willing to send a donation your way if we can get this sorted out. Nothing big, since I'm still a part-time student, but it would be coming from my personal wallet, not my employer's :)

@sfjro
Copy link
Owner

sfjro commented Jun 13, 2022 via email

1 similar comment
@sfjro
Copy link
Owner

sfjro commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants