ROOT_GENERATE_DICTIONARY and ROOT-conda problem

Dear Experts,

We have a project configured with the CMakeLists.txt that I have attached to the topic.

Our project uses the ROOT_GENERATE_DICTIONARY command and compiles without problems when I use a ROOT installation on either:

  • Lxplus
  • ROOT build from source.
  • Homebrew.

However, the project does not compile when using a conda installation.
The compilation fails in the dictionary generation part with the following error:

[ 11%] Building CXX object CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o
/gluster/home/dmoreno/CondaEnvs/envs/FF/bin/x86_64-conda-linux-gnu-c++ -DVECCORE_ENABLE_VC -I/gluster/home/dmoreno/FF/fastframes -Wall -Wextra -Wshadow -pedantic -O3 -g -std=c++20 -fPIC -Wno-shadow -MD -MT CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o -MF CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o.d -o CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o -c /gluster/home/dmoreno/FF/build/FastFrames_dict.cxx
/gluster/home/dmoreno/FF/build/FastFrames_dict.cxx:13:10: fatal error: ROOT/RConfig.hxx: No such file or directory
   13 | #include "ROOT/RConfig.hxx"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

As you can see, the ROOT include directories are not being properly propagated to the dictionary.

I checked that in my ROOT conda installation I have the lib / include and cmake folders in the correct location where ROOT is being picked up from. So If I do:

(FF) [dmoreno@wn3801260 FF]$ which root
~/CondaEnvs/envs/FF/bin/root

(FF) [dmoreno@wn3801260 FF]$ ls ~/CondaEnvs/envs/FF
bin    compiler_compat  config  etc    geom   include  lib      LICENSE  man     sbin   ssl        ui5  x86_64-conda_cos6-linux-gnu
cmake  conda-meta       doc     fonts  icons  js       libexec  macros   README  share  tutorials  var  x86_64-conda-linux-gnu

(FF) [dmoreno@wn3801260 FF]$ ls ~/CondaEnvs/envs/FF/cmake/
modules           ROOTConfig-targets.cmake          ROOTConfig-version.cmake  RootTestDriver.cmake
ROOTConfig.cmake  ROOTConfig-targets-release.cmake  RootMacros.cmake          ROOTUseFile.cmake

Are there any expected problems when using ROOT_GENERATE_DICTIONARY and conda?

Thanks in advance for your help!

_ROOT Version: ROOT 6.32.02
_Platform: Built for linuxx8664gcc
_Compiler: gcc


CMakeLists.txt (6.0 KB)

Sorry, forgot the attachment!

Hi,

I add in the loop @vpadulan .
Have you checked that the file is there?

Best,
D

Hi @Danilo , thanks for your reply.

Yes, the file is there.

Cheers, Diego

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.