Closed lecorguille closed 2 years ago
I would be easier to use directly the container: https://quay.io/repository/biocontainers/pftools it contains pftools3 now
@Juke34 According to the conda build, it isn't compile with -DUSE_AFFINITY=OFF
https://github.com/bioconda/bioconda-recipes/blob/master/recipes/pftools/build.sh
@Juke34 It looks to happen with recent kernel and/or glibc e.g. with Rocky Linux 8
I confirm it happens on recent Fedora releases.
I think that this is related to the _GNU_SOURCE
preprocessor macro: when using -DUSE_AFFINITY=OFF
, USE_AFFINITY
is not define and so _GNU_SOURCE
isn't defined too (see the generated config.h
file); if I manually define _GNU_SOURCE
in config.h
, the compilation goes fine. So I think that _GNU_SOURCE
should always be defined (independently of USE_AFFINITY
). I don't know cmake
enough to do that.
I will try this...
Great. Let me know if I can help, I think I understood a (not too ugly) way to do it.
Thanks to @duboism I think I have now fixed this issue.
The fix is in the develop
branch
Tried it and it worked.
The same 👍
According to this issue, I should compile pftools3 with the cmake option
-DUSE_AFFINITY=OFF
My Singularity definition
The compilation output:
It succeed without the
-DUSE_AFFINITY=OFF
option