-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I tried to build Mercurial with Rust from conda-forge. I did
conda create -n env_hg_rust setuptools rust -y
conda activate env_hg_rust
wget https://www.mercurial-scm.org/release/mercurial-5.6.1.tar.gz
tar -xvf mercurial-5.6.1.tar.gz
cd mercurial-5.6
python setup.py --rust install
It ends with an error related to the fact that the linker can't find libz:
note: /data0/opt/miniconda3/envs/env_hg_rust/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lz
I find it strange that /data0/opt/miniconda3/envs/env_hg_rust/x86_64-conda-linux-gnu/bin/ld can't find /data0/opt/miniconda3/envs/env_hg_rust/lib/libz.so.
I tried simple things with LIBRARY_PATH and LD_LIBRARY_PATH but without success.
I don't know if it is something related with Rust or just a conda bug. Do you see how to solve this problem?
Environment (
conda list):
Details
$ conda list
# packages in environment at /data0/opt/miniconda3/envs/env_hg_rust:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 1_gnu conda-forge
binutils_impl_linux-64 2.35.1 h17ad2fc_0 conda-forge
ca-certificates 2020.11.8 ha878542_0 conda-forge
certifi 2020.11.8 py39hf3d152e_0 conda-forge
gcc_impl_linux-64 9.3.0 h28f5a38_17 conda-forge
kernel-headers_linux-64 2.6.32 h77966d4_13 conda-forge
ld_impl_linux-64 2.35.1 hed1e6ac_0 conda-forge
libffi 3.3 h58526e2_1 conda-forge
libgcc-devel_linux-64 9.3.0 hfd08b2a_17 conda-forge
libgcc-ng 9.3.0 h5dbcf3e_17 conda-forge
libgomp 9.3.0 h5dbcf3e_17 conda-forge
libstdcxx-ng 9.3.0 h2ae2ef3_17 conda-forge
ncurses 6.2 h58526e2_4 conda-forge
openssl 1.1.1h h516909a_0 conda-forge
pip 20.3 pyhd8ed1ab_0 conda-forge
python 3.9.0 hffdb5ce_5_cpython conda-forge
python_abi 3.9 1_cp39 conda-forge
readline 8.0 he28a2e2_2 conda-forge
rust 1.48.0 h36c2ea0_0 conda-forge
rust-std-x86_64-unknown-linux-gnu 1.48.0 hc1431ca_0 conda-forge
setuptools 49.6.0 py39h079e4ff_2 conda-forge
sqlite 3.34.0 h74cdb3f_0 conda-forge
sysroot_linux-64 2.12 h77966d4_13 conda-forge
tk 8.6.10 hed695b0_1 conda-forge
tzdata 2020d h516909a_0 conda-forge
wheel 0.36.0 pyhd3deb0d_0 conda-forge
xz 5.2.5 h516909a_1 conda-forge
zlib 1.2.11 h516909a_1010 conda-forge
Details about
conda and system ( conda info ):
Details
$ conda info
active environment : env_hg_rust
active env location : /data0/opt/miniconda3/envs/env_hg_rust
shell level : 1
user config file : /home/pierre/.condarc
populated config files : /home/pierre/.condarc
conda version : 4.9.2
conda-build version : not installed
python version : 3.7.4.final.0
virtual packages : __glibc=2.31=0
__unix=0=0
__archspec=1=x86_64
base environment : /data0/opt/miniconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /data0/opt/miniconda3/pkgs
/home/pierre/.conda/pkgs
envs directories : /data0/opt/miniconda3/envs
/home/pierre/.conda/envs
platform : linux-64
user-agent : conda/4.9.2 requests/2.24.0 CPython/3.7.4 Linux/5.4.0-56-generic ubuntu/20.04.1 glibc/2.31
UID:GID : 1000:1000
netrc file : /home/pierre/.netrc
offline mode : False
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels