# Build old ROOT v5

**URL:** <https://root-forum.cern.ch/t/build-old-root-v5/24968>\
**Category:** ROOT\
**Created:** [May 31, 2017, 5:58pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968 "2017-05-31T17:58:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [May 31, 2017, 5:58pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/1 "2017-05-31T17:58:09Z")

</div>

Hi,

I need to build an old version of ROOT (5.34.10) but I receive the following:

> user@User-PC:~/ROOT\_OLD$ cmake --build . – -j4  
> make: \*\*\* No targets specified and no makefile found. Stop.

Previously the terminal output is:

> user@User-PC:~/ROOT\_OLD$ cmake …/root\_old\_source  
> – Found GCC. Major version 5, minor version 4  
> – CMAKE\_BUILD\_TYPE: RelWithDebInfo  
> – Found a 64bit system  
> – Found GNU compiler collection  
> – ROOT Platform: linux  
> – ROOT Architecture: linuxx8664gcc  
> – Build Type: RelWithDebInfo  
> – Compiler Flags: -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC  
> – Looking for ZLib  
> – Looking for Freetype  
> – Looking for PCRE  
> – Looking for LZMA  
> – Found LZMA includes at /home/user/ROOT/include  
> – Found LZMA library at /home/user/ROOT/lib/liblzma.a  
> – Looking for X11  
> – Could NOT find GIF (missing: GIF\_LIBRARY GIF\_INCLUDE\_DIR)  
> – Could NOT find TIFF (missing: TIFF\_LIBRARY TIFF\_INCLUDE\_DIR)  
> – Could NOT find JPEG (missing: JPEG\_LIBRARY JPEG\_INCLUDE\_DIR)  
> – Looking for GSL  
> – Looking for Python  
> – Found Python interpreter version 2.7  
> – Looking for GCCXML  
> – Looking for OpenGL  
> – Looking for Bonjour  
> – Checking whether Bonjour/Avahi is supported  
> – Looking for Kerberos 5  
> – Looking for LibXml2  
> – Looking for OpenSSL  
> – Looking for MySQL  
> – Found MySQL libraries: -L/usr/lib/x86\_64-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -ldl  
> – Found MySQL includes: /usr/include/mysql  
> – Looking for FFTW3  
> – Looking for CFITSIO  
> – CFITSIO not found. You can enable the option ‘builtin\_cfitsio’ to build the library internally’  
> – For the time being switching off ‘fitsio’ option  
> – Enabled support for: asimage astiff bonjour builtin\_afterimage builtin\_ftgl builtin\_glew cintex exceptions explicitlink fftw3 genvector krb5 ldap mathmore memstat mysql opengl python reflex shadowpw shared ssl tmva xft xml x11  
> – Configuring done  
> CMake Warning (dev) in cint/cint/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “Cint” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> Cint_static;-lpthread;dl
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> 

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in core/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “Core” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> -L/home/user/ROOT/lib -lpcre;/home/user/ROOT/lib/liblzma.a;/usr/lib/x86_64-linux-gnu/libz.so;dl;-lpthread;Cint
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Cint
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in cint/reflex/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “Reflex” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> dl
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> 

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in math/mathcore/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “MathCore” has an INTERFACE\_LINK\_LIBRARIES property which differs  
> from its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> -lpthread;Core
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Core
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in graf2d/graf/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “Graf” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> /usr/lib/x86_64-linux-gnu/libfreetype.so;/usr/lib/x86_64-linux-gnu/libz.so;mathtext;Hist;Matrix;MathCore;RIO
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Hist;Matrix;MathCore;RIO
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in io/io/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “RIO” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> dl;Core;Thread
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Core;Thread
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in core/thread/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “Thread” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> -lpthread;Core
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Core
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in net/net/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “Net” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so;-lcrypt;MathCore;RIO
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> MathCore;RIO
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in tmva/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “TMVA” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> Core;Cint;RIO;Hist;Tree;MLP;Minuit;XMLIO
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> RIO;Hist;Tree;MLP;Minuit;XMLIO
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in gui/gui/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “Gui” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> Cint;Core;Gpad;Graf;MathCore
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Gpad;Graf;MathCore
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in net/auth/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “RootAuth” has an INTERFACE\_LINK\_LIBRARIES property which differs  
> from its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> -lcrypt;Net;RIO
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Net;RIO
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in graf2d/x11/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “GX11” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> Core;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so;/usr/lib/x86_64-linux-gnu/libXpm.so;-lpthread
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> 

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in graf2d/asimage/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “ASImage” has an INTERFACE\_LINK\_LIBRARIES property which differs  
> from its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> Core;-L/home/user/ROOT_OLD/lib -lAfterImage;/usr/lib/x86_64-linux-gnu/libfreetype.so;/usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so;/usr/lib/x86_64-linux-gnu/libz.so;Graf
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Graf
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in graf3d/glew/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “GLEW” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> /usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> 

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in graf3d/ftgl/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “FTGL” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> /usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so;/usr/lib/x86_64-linux-gnu/libfreetype.so;/usr/lib/x86_64-linux-gnu/libz.so
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> 

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Warning (dev) in graf3d/gl/CMakeLists.txt:  
> Policy CMP0022 is not set: INTERFACE\_LINK\_LIBRARIES defines the link  
> interface. Run “cmake --help-policy CMP0022” for policy details. Use the  
> cmake\_policy command to set the policy and suppress this warning.

> Target “RGL” has an INTERFACE\_LINK\_LIBRARIES property which differs from  
> its LINK\_INTERFACE\_LIBRARIES properties.

> INTERFACE\_LINK\_LIBRARIES:

> ```
> /usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so;GLEW;FTGL;Hist;Gui;Ged
> 
> ```

> LINK\_INTERFACE\_LIBRARIES:

> ```
> Hist;Gui;Ged
> 
> ```

> This warning is for project developers. Use -Wno-dev to suppress it.

> CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):  
> “cint\_tmp” of type EXECUTABLE  
> depends on “Cint\_static” (weak)  
> “CINTTARGET” of type UTILITY  
> depends on “cint\_tmp” (strong)  
> “Cint\_static” of type STATIC\_LIBRARY  
> depends on “IOSENUM\_H” (strong)  
> “IOSENUM\_H” of type UTILITY  
> depends on “CINTTARGET” (strong)  
> depends on “cint\_tmp” (strong)  
> At least one of these targets is not a STATIC\_LIBRARY. Cyclic dependencies are allowed only among static libraries.  
> – Build files have been written to: /home/user/ROOT\_OLD

Can someone please help me? Thank you!

---

<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:** [May 31, 2017, 6:04pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/2 "2017-05-31T18:04:01Z")

</div>

Use the [“./configure”](https://root-forum.cern.ch/t/missing-canvas/17664/17) + “make” based method.

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [May 31, 2017, 6:19pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/3 "2017-05-31T18:19:46Z")

</div>

> Thank you, that worked almost. At first for maybe other persons: [Installing CERN ROOT (2017) – Nick's Reasearch Page](http://tylern4.github.io/InstallRoot/) (there is described how to do that via configure/make).

> Unfortunately the making terminated as follows:
> 
> > In file included from cint/cint/src/dict/libstrm.h:37:0,  
> > from cint/cint/src/dict/libstrm.cxx:14:  
> > cint/cint/lib/stream/iostrm.h:24:22: fatal error: iostream.h: No such file or directory  
> > compilation terminated.  
> > Makefile:597: recipe for target ‘cint/cint/src/dict/libstrm.o’ failed  
> > make: \*\*\* [cint/cint/src/dict/libstrm.o] Error 1

> I guess this has also been discovered and “solved” in [Build failure with gcc 5.1.0: trying to include iostream.h - #8 by mato](https://root-forum.cern.ch/t/build-failure-with-gcc-5-1-0-trying-to-include-iostream-h/19363/8)  
> But, to be honest, I do not understand what I have to do (with that file). Can someone please advice again? Thank you!

> edit:
> 
> > user@User-PC:~/root\_old\_source$ which gcc  
> > /usr/bin/gcc

> user@User-PC:~/root\_old\_source$ CC=/usr/bin/gcc ./configure --with-cc=“gcc-std=gnu99”  
> Checking for source directory … /home/user/root\_old\_source  
> Configuring for linuxx8664gcc  
> Checking for GNU Make version \>= 3.80 … ok  
> Checking for C compiler … no C compiler gcc-std=gnu99 found  
> configure: C compiler MUST be installed  
> See [http://root.cern.ch/drupal/content/build-prerequisites](http://root.cern.ch/drupal/content/build-prerequisites)

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [May 31, 2017, 6:48pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/4 "2017-05-31T18:48:15Z")

</div>

> [@Progressive](#):
>
> –with-cc=“gcc-std=gnu99”

Why do you specify that? `--with-cc` is mean to state the C compiler. You should be able to simply remove the argument.

Axel.

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [May 31, 2017, 6:50pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/5 "2017-05-31T18:50:53Z")

</div>

Thanks for the answer!

They do it in the link.  
As far as I understand is that this version of ROOT includes C98 standards and I guess with the help of this configure option it should work. But it doesn’t. But the effect stays the same with and without this option.

edit: Just to be sure: You mean ./configure “cc-std=gnu99” ?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [May 31, 2017, 6:54pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/6 "2017-05-31T18:54:20Z")

</div>

You mean without that option you get

```auto
In file included from cint/cint/src/dict/libstrm.h:37:0,
from cint/cint/src/dict/libstrm.cxx:14:
cint/cint/lib/stream/iostrm.h:24:22: fatal error: iostream.h: No such file or directory
compilation terminated.
Makefile:597: recipe for target 'cint/cint/src/dict/libstrm.o' failed
make: *** [cint/cint/src/dict/libstrm.o] Error 1

```

? O - and you’re using GCC 5.4 (from 2016), trying to compile a ROOT version from 2013. That’s not going to work. Please use the latest 5.34 patch version or better yet, switch to ROOT 6.08.

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![Progressive](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Post date:** [May 31, 2017, 6:57pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/7 "2017-05-31T18:57:06Z")

</div>

Thanks again!

Yes!

Ok, I’ll try it, maybe it works.  
I need 5.34.10 because this is the last version of a building for SLitrani (which is build upon ROOT but has not been developed for several years…).  
But I will try 5.34.36.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 14, 2017, 6:57pm UTC](https://root-forum.cern.ch/t/build-old-root-v5/24968/8 "2017-06-14T18:57:06Z")

</div>

Closed on June 14, 2017, 6:57pm UTC

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