# Conda package with debug symbols

**URL:** <https://root-forum.cern.ch/t/conda-package-with-debug-symbols/48579>\
**Category:** Newbie\
**Created:** [January 26, 2022, 3:50pm UTC](https://root-forum.cern.ch/t/conda-package-with-debug-symbols/48579 "2022-01-26T15:50:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![renyhp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@renyhp](https://root-forum.cern.ch/u/renyhp)\
**Post date:** [January 26, 2022, 3:50pm UTC](https://root-forum.cern.ch/t/conda-package-with-debug-symbols/48579/1 "2022-01-26T15:50:44Z")

</div>

Hi!

I’ve installed ROOT via conda, and it works very nicely. However, when I debug my executable via gdb, ROOT objects are inaccessible. I am under the impression that there are no debug symbols in the ROOT installation shipped via conda, is that right? If it is, how can I install, inside the conda environment, a version of ROOT built with RelWithDebInfo, or Debug?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [January 26, 2022, 4:52pm UTC](https://root-forum.cern.ch/t/conda-package-with-debug-symbols/48579/2 "2022-01-26T16:52:39Z")

</div>

Hi @renyhp ,  
unfortunately I don’t think there are conda packages available that contain debug symbols for ROOT.

@chrisburr, do you have any suggestions here?

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![chrisburr](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chrisburr/32/18272_2.png) [@chrisburr](https://root-forum.cern.ch/u/chrisburr)\
**Post date:** [January 28, 2022, 5:10am UTC](https://root-forum.cern.ch/t/conda-package-with-debug-symbols/48579/3 "2022-01-28T05:10:03Z")

</div>

Unfortunately not, the debug symbols make the binaries notably larger for everyone (from a crude check, `Release` is 240M/611M and `RelWithDebInfo` is `686M`/`2.0G` where the sizes are Compressed/Uncompressed). In principle, the debug info could be stripped into a separate package if someone is motivated to add support (see the incomplete [CFEP-20](https://github.com/conda-forge/cfep/blob/2409812d68296fcf2e06255687cc7cb085923ffd/cfep-20.md)).

One option for @renyhp would be to build the package yourself by:

1. Cloning [conda-forge/root-feedstock](https://github.com/conda-forge/root-feedstock/)
2. Modifying [`recipe/build.sh`](https://github.com/conda-forge/root-feedstock/blob/d70394c84e874a5f71f98fa62b9b1d3659b0a91f/recipe/build.sh#L88-L92)
3. Running `CPU_COUNT=$(nproc) ./build-locally.py`
4. Create the environment with `mamba create --name root-with-debug -c local root gdb ...`
