# Getting error while installing ROOT 6.20.04

**URL:** <https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764>\
**Category:** Newbie\
**Created:** [April 7, 2020, 6:03pm UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764 "2020-04-07T18:03:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shdutta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shdutta/32/21488_2.png) [@shdutta](https://root-forum.cern.ch/u/shdutta)\
**Post date:** [April 7, 2020, 6:03pm UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764/1 "2020-04-07T18:03:38Z")

</div>

Hello

I am getting errors of the form given in [1] when building the latest root release. I am posting just a single line, but there are several lines of similar error with all referring to `clang::CodeGen `.

`[1] undefined reference to `clang::CodeGen::CodeGenModule::isTypeConstant(clang::QualType, bool)' `

\_ROOT Version: 6.20.04  
\_Platform: Ubuntu 18.04  
\_Compiler: 3.10.2

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 8, 2020, 6:12am UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764/2 "2020-04-08T06:12:48Z")

</div>

May be @vvassilev knows about it.

---

<div class="post-metadata">

**Author:** ![vvassilev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/f0a364/32.png) [@vvassilev](https://root-forum.cern.ch/u/vvassilev)\
**Post date:** [April 8, 2020, 6:24am UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764/3 "2020-04-08T06:24:43Z")

</div>

Is your compiler gcc version 3.10?

---

<div class="post-metadata">

**Author:** ![shdutta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shdutta/32/21488_2.png) [@shdutta](https://root-forum.cern.ch/u/shdutta)\
**Post date:** [April 8, 2020, 7:08am UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764/4 "2020-04-08T07:08:14Z")

</div>

Yes 3.10.2

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 8, 2020, 7:16am UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764/5 "2020-04-08T07:16:16Z")

</div>

The compiler should be “g++ 7.5.0” ("`g++ --version`").

Can it be that you mean “cmake 3.10.2” ("`cmake --version`")?  
If yes, it is probably too old so, you should download and install (e.g. into “/usr/local” or into your “${HOME}”) a new binary distribution (the “Latest” or the “Previous” Release) from: [https://cmake.org/download/](https://cmake.org/download/)

Note that, after installing a new [CMake](https://cmake.org/download/) version, you need to start building ROOT from scratch again (i.e. first delete the the old [ROOT “\<builddir\>”](https://root.cern/building-root)).

BTW. [The ROOT team provides ready-to-use binary distributions for some systems, including various Ubuntu versions, which you just need to download and unpack (see “ **Using binaries** ” therein).](https://root.cern.ch/downloading-root)

---

<div class="post-metadata">

**Author:** ![shdutta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shdutta/32/21488_2.png) [@shdutta](https://root-forum.cern.ch/u/shdutta)\
**Post date:** [April 8, 2020, 8:18am UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764/6 "2020-04-08T08:18:27Z")

</div>

Yes I meant the cmake version. Thanks for all your responses. I will try it.
