-
Notifications
You must be signed in to change notification settings - Fork 77
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 build on x86_64 #141
Fix build on x86_64 #141
Conversation
On same platform, library file is compiled into `lib64` directory. Rust compiler expects that library will be in `lib` directory. This fixes this by searing library both in `lib` and `lib64` directory.
Thanks for the fix! Could you explain more about the origin of the issue that is fixed here? I'd like to understand if that was an issue that was recently introduced, or if it is a zero-day that now just happens to surface. Maybe it's a different platform that's causing this that we might want to try to add to CI? Thanks for elaborating. |
I am actually not sure, but there was changed in cmake scripts in zlib-ng to 2.1. And the default cmake detection is a mess :D From cmake source code:
|
Thanks a lot! As CI is working, this means that having multiple search paths doesn't confuse |
Additional context from #141 (comment) I am actually not sure, but there was changed in cmake scripts in zlib-ng to 2.1. And the default cmake detection is a mess :D So I think if we want to test it in CI, we have to also test against different distribution than Ubuntu or Debian. From cmake source code: ``` # Override this default 'lib' with 'lib64' iff: # - we are on Linux system but NOT cross-compiling # - we are NOT on debian # - we are NOT building for conda # - we are on a 64 bits system ``` Co-Authored-By: Jakub Onderka <[email protected]>
Is there a plan to make a quick hotfix release with this change soon? |
Right! Even though the breakage doesn't reproduce yet, it does exist and was introduced with the CMake upgrades in the more recent version of Anyway, here is the new release. Unfortunately it doesn't seem super trivial to change the linux distribution with |
Actually it was a fellow contributor who had an error related to EDIT: Yep, there we go: #143 |
It's my first time to maintain a crate with 30m total downloads, and with the amount of users and platforms it's close to impossible to cover all bases. Thus, when PRs appear that fix something, I will try harder to be sure everything there is to know about it is disclosed before taking an action. Particularly, CI must be able to reproduce an issue and I don't think it's wise to proceed like I did thus far. |
On same platform, library file is compiled into
lib64
directory. Rust compiler expects that library will be inlib
directory. This fixes this by searing library both inlib
andlib64
directory.