-
Notifications
You must be signed in to change notification settings - Fork 19
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
Pufferfish doesn't build within a conda environment (which has all the prerequisites) due to failed build of tslib from SeqLib #34
Comments
I've see that pufferfish is trying to install the dep SeqLib, which itself is trying to install the dep htslib, and shows in its readme that it requires But in the conda environment that I'm building pufferfish I already have both |
I deactivated the conda environment and tried to I updated the issue title and OP a bit to highlight the conda issue. |
With my conda environment active I see the following $ echo $CFLAGS
-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/hermidalc/soft/mambaforge/envs/functional-profiler/include
$echo $CPPFLAGS
-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/hermidalc/soft/mambaforge/envs/functional-profiler/include
$ echo $CXXFLAGS
-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/hermidalc/soft/mambaforge/envs/functional-profiler/include Which are pointing to the right place and |
If the
$ mamba init
$ mamba config --set auto_activate_base false
$ mamba config --set channel_priority strict
$ mamba update --all
(pufferfish) $ mamba list
# packages in environment at /home/hermidalc/soft/mambaforge/envs/pufferfish:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_kmp_llvm conda-forge
binutils_impl_linux-64 2.36.1 h193b22a_2 conda-forge
boost-cpp 1.80.0 h75c5d50_0 conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
c-ares 1.18.1 h7f98852_0 conda-forge
ca-certificates 2022.9.24 ha878542_0 conda-forge
cmake 3.24.2 h5432695_0 conda-forge
curl 7.85.0 h2283fc2_0 conda-forge
expat 2.4.9 h27087fc_0 conda-forge
gcc 12.1.0 h9ea6d83_10 conda-forge
gcc_impl_linux-64 12.1.0 hea43390_16 conda-forge
gettext 0.21.1 h27087fc_0 conda-forge
gxx 12.1.0 h9ea6d83_10 conda-forge
gxx_impl_linux-64 12.1.0 hea43390_16 conda-forge
icu 70.1 h27087fc_0 conda-forge
jsoncpp 1.9.5 h4bd325d_1 conda-forge
kernel-headers_linux-64 2.6.32 he073ed8_15 conda-forge
keyutils 1.6.1 h166bdaf_0 conda-forge
krb5 1.19.3 h08a2579_0 conda-forge
ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge
libblas 3.9.0 16_linux64_mkl conda-forge
libcurl 7.85.0 h2283fc2_0 conda-forge
libedit 3.1.20191231 he28a2e2_2 conda-forge
libev 4.33 h516909a_1 conda-forge
libgcc-devel_linux-64 12.1.0 h1ec3361_16 conda-forge
libgcc-ng 12.1.0 h8d9b700_16 conda-forge
libgfortran-ng 12.1.0 h69a702a_16 conda-forge
libgfortran5 12.1.0 hdcd56e2_16 conda-forge
libgomp 12.1.0 h8d9b700_16 conda-forge
libhwloc 2.8.0 h32351e8_1 conda-forge
libiconv 1.17 h166bdaf_0 conda-forge
libidn2 2.3.3 h166bdaf_0 conda-forge
libjemalloc 5.2.1 h9c3ff4c_6 conda-forge
libnghttp2 1.47.0 hff17c54_1 conda-forge
libopenblas 0.3.21 pthreads_h78a6416_3 conda-forge
libsanitizer 12.1.0 ha89aaad_16 conda-forge
libssh2 1.10.0 hf14f497_3 conda-forge
libstdcxx-devel_linux-64 12.1.0 h1ec3361_16 conda-forge
libstdcxx-ng 12.1.0 ha89aaad_16 conda-forge
libunistring 0.9.10 h7f98852_0 conda-forge
libuv 1.44.2 h166bdaf_0 conda-forge
libxml2 2.10.2 h7463322_2 conda-forge
libzlib 1.2.12 h166bdaf_4 conda-forge
llvm-openmp 14.0.4 he0ac6c6_0 conda-forge
make 4.3 hd18ef5c_1 conda-forge
mkl 2022.1.0 h84fe81f_915 conda-forge
ncurses 6.3 h27087fc_1 conda-forge
openssl 3.0.5 h166bdaf_2 conda-forge
rhash 1.4.3 h166bdaf_0 conda-forge
sysroot_linux-64 2.12 he073ed8_15 conda-forge
tbb 2021.6.0 h924138e_0 conda-forge
wget 1.20.3 ha35d2d1_1 conda-forge
xz 5.2.6 h166bdaf_0 conda-forge
zlib 1.2.12 h166bdaf_4 conda-forge
zstd 1.5.2 h6239696_4 conda-forge
|
You say in your README How to Use that you also have the SeqLib dependencies |
I see in your
Specifically:
|
I see the culprit here is |
I figured out the source of the problem, but still can't get it to build properly. If I manually clone SeqLib and the go into the I tried to preface the SeqLib |
For others coming here, I see now there is some useful info on how to compile in this issue #27. Will have to try it on my linux box to see if it can work. |
During
make
of pufferfish I'm getting the following error. You can see just above the error it does the presence and sanity checks forzlib.h
and all good, so something wrong with an include path or something else that I can’t see during the build?It looks like some of the pufferfish dependencies cannot build within a conda environment that has the requisite dependencies such as cmake, cxx-compiler, zlib, bzip2. Trying to figure out why because being able to build within a conda environment is important for developers using pufferfish as a submodule in project that they want to make redistributable, where mamba/conda is a very popular framework for software dependency management.
The text was updated successfully, but these errors were encountered: