-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix 32 bit compile on Fedora 40 #126
Conversation
@vasi MacOS appears to be requiring that third parameter to be long instead of unit64_t. Do you have any suggestions for me? The freebsd check also failed, but for a different reason: |
For MacOS vs Linux parameters, I guess we should add a check in configure, and then use ifdefs. See eg: the existing checks here. For the FreeBSD build, I don't think that's the real error--underneath it, we have |
Thanks for the helpful hints. The freebsd issue was fixed in #127, and then this branch was rebased. I added the configure check and ifdefs, please review. |
This looks good, but can we reverse the check? IE: Let's assume the standard libfuse arguments (uint64_t) are normal, and that needing something like "unsigned long" is the thing we're testing for. |
I could, but that means in most cases it will use unsigned long. Is that what you want? Only 32-bit does not work with unsigned long. I thought it would be better to use uint64_t in most places and only switch to unsigned long on Mac where uint64_t doesn't work. |
Oh I see, because many systems have compatible I guess in a perfect world, we'd check if one type worked, then check the other, and error if none do. But that does seem like too much effort! |
The compiler error still happens with version 0.5.1 and clang.
Full build log can be found here termux/termux-packages#19304 |
Hmm, we see the message:
Unfortunately it doesn't look like your build artifacts include config.log or config.h, so it's hard to see what happened next. Are you able to reproduce manually? |
Yes, I can reproduce the compiler error. Do you need any specific information? |
Yes, please look for what the compile error was for that 64_t check in config.log. Is this a new error that didn't happen with 0.5.0? On what host operating system version, and with 64-bit or 32-bit? Oh, some of that information can be gleaned from the termux link you gave, but still, it would be better if you created a new issue with all the details and refer back to this issue. |
Looks like the problem was the tag prefix, Biswa96's branch is building now. |
This fixes 32 bit compiles on Fedora 40. Without it, this compiler error shows: