-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Bwa-mem2: fix compilation issue #380725
Bwa-mem2: fix compilation issue #380725
Conversation
@alxsimon What do you think of this separation ? I'm not 100% sure it compiles all arch as before though. |
Hi, I don't have enough experience with this to have an opinion sorry. |
|
Fails on darwin with:
|
a5cdeb8
to
8e41c2b
Compare
We are in luck : a fix has been proposed upstream. The patch was added : does it compile on darwin now ? |
|
|
Yes, the tests weren't there initially.... Here's a patch (untested). |
Still failing...
|
Okay... I've tried to disable this test specifically. Let me know how it goes... |
|
Is it the same error as before ? |
It is now failing at the very end:
|
Could you check if libsafestring_shared.so exits on darwin ? If it's just libsafestring_shared.a that is built, or if the name is different, we can manage. If nothing is built, we'll have to mark it as broken I guess. Sorry :/ |
Here is what the folder contains at the beginning of the
|
To fix compilation issues in bwa-mem2, an update of this library is required. Latest, unstable version compiles more easily than the last stable release.
I've removed the .so alltogether as it's not needed by bwa-mem2. Does that fixes it ? |
|
|
Almost there ! Could you check libsafestring.a is indeed in $out/lib for safestring ? |
|
I've fixed the linker flag. It should work with clang. I tried to test it by overriding stdenv but it failed on my machine so I defer to you :) |
On latest unstable, there are several implicit function declaration. in safestrlib, which was not a seperate package but simply a submodule. It is now a separate package (see previous commit) and using latest unstable for this libary fixes the issue.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job @apraga !
On latest unstable, there are several implicit function declarations in safestrlib, which are new errors instead of warnings.
safestrlib was not a seperate package but simply a submodule in this nix packages.
I have separated it into a library and updated it to latest unstable, which essentially fixes the issue.
Also, there are no tests upstream (the
test
folder is for benchmarking).Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.