Enable Rust compilation on conda-forge ?

PIERRE AUGIER pierre.augier at univ-grenoble-alpes.fr
Wed Dec 2 16:17:08 UTC 2020


To get Mercurial built with Rust on conda-forge (https://github.com/conda-forge/mercurial-feedstock/pull/37), we first need to be able to build it locally using conda-forge.

I tried something simple but I get an error:

conda create -n env_hg_rust setuptools rust -y
conda activate env_hg_rust
cd Downloads/mercurial-5.6
python setup.py --rust install

which 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 understand why I get this error?


----- Mail original -----
> De: "Augie Fackler" <raf at durin42.com>
> À: "PIERRE AUGIER" <pierre.augier at univ-grenoble-alpes.fr>
> Cc: "mercurial" <mercurial at mercurial-scm.org>, "Pierre-Yves David" <pierre-yves.david at octobus.net>, "Raphaël Gomès"
> <raphael.gomes at octobus.net>
> Envoyé: Mardi 17 Novembre 2020 21:17:35
> Objet: Re: Enable Rust compilation on conda-forge ?

> (+rust enthusiasts)
> 
>> On Nov 16, 2020, at 16:41, PIERRE AUGIER <pierre.augier at univ-grenoble-alpes.fr>
>> wrote:
>> 
>> Hi,
>> 
>> Would it make sense to enable Rust compilation on conda-forge? There is a Rust
>> conda-forge package (https://anaconda.org/conda-forge/rust).
> 
> Probably.
> 
>> 
>> Would we need to add some runtime dependencies?
> 
> I don't think so?
> 
>> 
>> Pierre
>> 
>> --
>> Pierre Augier - CR CNRS                 http://www.legi.grenoble-inp.fr
>> LEGI (UMR 5519) Laboratoire des Ecoulements Geophysiques et Industriels
>> BP53, 38041 Grenoble Cedex, France                tel:+33.4.56.52.86.16
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at mercurial-scm.org
> > https://www.mercurial-scm.org/mailman/listinfo/mercurial


More information about the Mercurial mailing list