Build old ROOT v5

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!

Use the “./configure” + “make” based method.

Thank you, that worked almost. At first for maybe other persons: 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
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

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

Axel.

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” ?

You mean without that option you get

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.

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.

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