Root 6.04 on Ubuntu 15.04

Hi

I downloaded the Ubuntu version root_v6.04.00.Linux-ubuntu14-x86_64-gcc4.8.tar , untar, and execute the
thisroot.sh and when i execute root, is crashing.

Is this not working for Ubuntu 15?
Can y help me?
Sorina

spopescu@psiek-HP-ProBook-6440b:~$ root
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
echo | LC_ALL=C c++ -pipe -m64 -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++11 -Wno-deprecated-declarations -Wno-comment -Wno-unused-parameter -Wno-maybe-uninitialized -Wno-unused-but-set-variable -Wno-missing-field-initializers -fPIC -fvisibility-inlines-hidden -std=c++11 -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -O2 -DNDEBUG -xc++ -E -v - 2>&1 >/dev/null | awk ‘/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}’ | grep -E "(c|g)++"
results in
with exit code 256
input_line_1:1:10: fatal error: ‘new’ file not found
#include
^

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00007f26588a484a in __GI___waitpid (pid=4871, stat_loc=stat_loc
entry=0x7ffeacb09d40, options=options
entry=0) at …/sysdeps/unix/sysv/linux/waitpid.c:31
#1 0x00007f265881dffb in do_system (line=) at …/sysdeps/posix/system.c:148
#2 0x00007f26595a9fb3 in TUnixSystem::StackTrace() () from /home/spopescu/root/lib/libCore.so
#3 0x00007f26595ac7fc in TUnixSystem::DispatchSignals(ESignals) () from /home/spopescu/root/lib/libCore.so
#4
#5 0x00007f26559b7a14 in cling::IncrementalParser::rollbackTransaction(cling::Transaction*) () from /home/spopescu/root/lib/libCling.so
#6 0x00007f26559b9416 in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraitscling::Transaction* >) () from /home/spopescu/root/lib/libCling.so
#7 0x00007f265596f391 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool) () from /home/spopescu/root/lib/libCling.so
#8 0x00007f26559053f5 in TCling::TCling(char const*, char const*) () from /home/spopescu/root/lib/libCling.so
#9 0x00007f265590643e in CreateInterpreter () from /home/spopescu/root/lib/libCling.so
#10 0x00007f26594391db in TROOT::InitInterpreter() () from /home/spopescu/root/lib/libCore.so
#11 0x00007f2659439586 in ROOT::GetROOT2() () from /home/spopescu/root/lib/libCore.so
#12 0x00007f26594c6645 in TApplication::TApplication(char const*, int*, char**, void*, int) () from /home/spopescu/root/lib/libCore.so
#13 0x00007f26590e4d84 in TRint::TRint(char const*, int*, char**, void*, int, bool) () from /home/spopescu/root/lib/libRint.so
#14 0x000000000040109e in main ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00007f26559b7a14 in cling::IncrementalParser::rollbackTransaction(cling::Transaction*) () from /home/spopescu/root/lib/libCling.so
#6 0x00007f26559b9416 in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraitscling::Transaction* >) () from /home/spopescu/root/lib/libCling.so
#7 0x00007f265596f391 in cling::Interpreter::Interpreter(int, char const* const*, char const*, bool) () from /home/spopescu/root/lib/libCling.so
#8 0x00007f26559053f5 in TCling::TCling(char const*, char const*) () from /home/spopescu/root/lib/libCling.so
#9 0x00007f265590643e in CreateInterpreter () from /home/spopescu/root/lib/libCling.so
#10 0x00007f26594391db in TROOT::InitInterpreter() () from /home/spopescu/root/lib/libCore.so
#11 0x00007f2659439586 in ROOT::GetROOT2() () from /home/spopescu/root/lib/libCore.so
#12 0x00007f26594c6645 in TApplication::TApplication(char const*, int*, char**, void*, int) () from /home/spopescu/root/lib/libCore.so
#13 0x00007f26590e4d84 in TRint::TRint(char const*, int*, char**, void*, int, bool) () from /home/spopescu/root/lib/libRint.so
#14 0x000000000040109e in main ()

Do you get somme message when you execute thisroot.sh ?

no i get no error.

spopescu@psiek-HP-ProBook-6440b:~$ source root/bin/thisroot.sh
spopescu@psiek-HP-ProBook-6440b:~$

Hi,

What is the output of

echo | LC_ALL=C c++ -pipe -m64 -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++11 -Wno-deprecated-declarations -Wno-comment -Wno-unused-parameter -Wno-maybe-uninitialized -Wno-unused-but-set-variable -Wno-missing-field-initializers -fPIC -fvisibility-inlines-hidden -std=c++11 -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -O2 -DNDEBUG -xc++ -E -v -

Cheers, Axel.

The program ‘c++’ can be found in the following packages:

  • g++
  • clang
  • libc+±helpers
    Ask your administrator to install one of them

guess i have to install. do y know where i can find them?

sudo apt-get install git dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev

Ahh thanks.
One more question, are these packages requirements are same for Ubuntu 15?
I will try now.
Sorina

Hi,

Yes, same requirements.

Axel.

Hi Axel

Sorry to come back to this, I installed in the end see the compilers below
spopescu@psiek-HP-ProBook-6440b:~$ dpkg --list | grep compiler
ii g++ 4:4.9.2-2ubuntu2 amd64 GNU C++ compiler
ii g+±4.9 4.9.2-10ubuntu13 amd64 GNU C++ compiler
ii gcc 4:4.9.2-2ubuntu2 amd64 GNU C compiler
ii gcc-4.9 4.9.2-10ubuntu13 amd64 GNU C compiler
ii hardening-includes 2.7ubuntu1 all Makefile for enabling compiler flags for security hardening
ii libllvm3.6:amd64 1:3.6-2ubuntu1 amd64 Modular compiler and toolchain technologies, runtime library
ii libxkbcommon0:amd64 0.4.3-2 amd64 library interface to the XKB compiler - shared library

but i still get the crash when i type root.
Cheers
Sorina

the error message is
spopescu@psiek-HP-ProBook-6440b:~/root$ root
input_line_1:1:10: fatal error: file ‘/usr/include/c++/4.9/new’ modified since it was first processed
#include
^

*** Break *** segmentation violation

Hi,

That’s because the binaries are for Ubuntu 14 not 15; they have a different compiler version.

Can you build from source? Download sources, untar, ./configure && make, . bin/thisroot.sh, root

I will see whether we can add current Ubuntu binaries…

Cheers, Axel.

Hi
If can be added i would prefer, as i am currently on a machine with Ubuntu without sudo or root rights.
If y know a method to install the packages without these rights, I can try to compile the sources.
Thanks
Sor

Hi,

The way I described does not need superuser access:

Download sources, untar, ./configure && make, . bin/thisroot.sh, root

Cheers, Axel.

I did, but seems the Xft files must be installed see message below.
I cannot do the sugested command in root.cern.ch/build-prerequisites

popescu@psiek-HP-ProBook-6440b:~$ cd root-6.04.00/
spopescu@psiek-HP-ProBook-6440b:~/root-6.04.00$ ./configure
Checking for source directory … /home/spopescu/root-6.04.00
Configuring for linuxx8664gcc
Checking for GNU Make version >= 3.80 … ok
Checking for C compiler … gcc
Checking for C++ compiler … g++
Checking for linker (LD) … g++
Checking for F77 compiler … no F77 compiler gfortran found
Checking whether compiler can generate dependencies … yes
Checking whether c++11 mode is supported … yes
Checking for string_view implementation … using builtin string_view
Checking for Python version >= 2.7 … yes
Checking for libX11 … /usr/lib/x86_64-linux-gnu
Checking for X11/Xlib.h … /usr/include
Checking for X11/xpm.h … /usr/include
Checking for X11/Xft/Xft.h … no
configure: Xft headers MUST be installed
See root.cern.ch/drupal/content/build-prerequisites
spopescu@psiek-HP-ProBook-6440b:~/root-6.04.00$

Hi,

that’s correct. It’s unfortunate that your computer does not have that installed.

In that case it’s likely easiest for you to wait until we have a binary…

Cheers, Axel.

You will need to talk to your system administrator (e.g. the same one who installed “g++” for you).
See my previous post which explicitly lists “libxft-dev” among others (click also the given link in order to get a list of “optional packages” -> it is really a good idea to install them, too).

Ok I wait for binaries, unfortunately there is no other solution.
Thanks
Sor