Conda environment for building


Is there a conda environment in which I can build root? I tried to create one myself with

mamba create -n buildroot make=4.4 cmake=3.31 gxx=15.2 gcc=15.2 python=3.13 liblzma-devel xorg-libx11 xorg-libxpm xorg-libxft xorg-libxext xorg-xorgproto expat xrootd

and then build root with
cmake -DCMAKE_INSTALL_PREFIX=../root_install -DCMAKE_CXX_STANDARD=17 -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_FIND_ROOT_PATH=$CONDA_PREFIX -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY ../root_src

and

cmake --build . -- install -j10

I get
[ 65%] Building CXX object net/rpdutils/CMakeFiles/SrvAuth.dir/src/rpdutils.cxx.o <<< cling interactive line includer >>>: remark: building module 'Net' as '[…]/lib/Net.pcm' [-Rmodule-build] Error: Building module 'Net' implicitly. If 'Net' requires a dictionary please specify build dependency: 'G__MultiProc.cxx' depends on 'Net'. Otherwise, specify '-mByproduct Net' to disable this diagnostic.

In a docker container I can of course build it, but it would be nice to build it outside in a conda environment for better performance

ROOT Version: latest stable branch
Platform: Fedora
Compiler: gcc 15.2


Maybe @vpadulan can give some hints, but first of all, why don’t you use the pre-built version of ROOT in Conda?

I am fixing a bug I found

OK, then I don’t know if it’s the best alternative. Anyway, let’s see if @vpadulan has an idea