GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Installation and Compilation » error in dfcln.h with external packages (During compilation of FairSoft on Ubuntu 15 an error occurs when loading dfcln.h)
error in dfcln.h with external packages [message #18844] Mon, 28 December 2015 19:54 Go to next message
C. A. Douma is currently offline  C. A. Douma
Messages: 88
Registered: September 2015
Location: Groningen
continuous participant
From: *cm-3-4d.dynamic.ziggo.nl
When I try to compile the external packages on Ubuntu 15, The compilation terminates
and the compiler says that there is an error in the file dfcln.h located in /usr/include/
Does anyone know how to fix this?

Christiaan

PS: the error message is included in the screenshot
Re: error in dfcln.h with external packages [message #18845 is a reply to message #18844] Tue, 29 December 2015 07:45 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: *dyn.telefonica.de
Hi Christiaan,

the complete output would be helpful. Redirect the cout and cerr to a text file and attach it here.

./configure.sh > std.log 2> err.log

In addition, try to compile with ROOT 6 instead of ROOT 5 - makes more sense with such new system as Ubuntu 15.
I expect you are using the latest FairSoft version nov15

Cheers,
Dima
Re: error in dfcln.h with external packages [message #18847 is a reply to message #18845] Tue, 05 January 2016 14:26 Go to previous messageGo to next message
C. A. Douma is currently offline  C. A. Douma
Messages: 88
Registered: September 2015
Location: Groningen
continuous participant
From: *cm-3-4d.dynamic.ziggo.nl
Dear Mr. Kresan,

Compiling with ROOT 6 works. However, when I start ROOT 6 afterwards, I get a message that G__OPTIMIZE does not work. When I then try to declare a histogram or something, ROOT crashes.
Obtaining the complete output is however very difficult. Your command ./configure.sh > std.log 2> err.log
prevents me from entering the inputs that the script ./configure.sh requires, hence I cannot compile.

In order to solve this problem I removed Ubuntu 15 from my PC and installed Ubuntu 14 instead. This causes some clashes between Ubuntu and Windows 7
that do not occur with Ubuntu 15, but without FairRoot, Ubuntu has no purpose for me...
On Ubuntu 14 FairSoft and FairRoot compile succesfully (I used the newest versions).

However, when I try to compile R3BRoot afterwards, I get an error message that the ROOT dictonary could not be found. (See attachement, it contains the full output for R3BRoot).
Installation of the FairRoot project Template gives the same message. Can you help me?

Thanks in advance!
Christiaan.
  • Attachment: R3Blog.txt
    (Size: 19.55KB, Downloaded 268 times)
Re: error in dfcln.h with external packages [message #18856 is a reply to message #18847] Thu, 07 January 2016 14:15 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: 93.77.23*
Hi Christiaan,

With which debug / optimisation option did you compile ROOT 6?

To your dictionary problem with R3BRoot and ROOT5: I was not able to reproduce your problem. Please try compiling the dev branch:

cd R3BRoot
git checkout dev
git pull

then recompile

It can be that you will get problems with Geant4 physics lists. Fast solution: switch off directory "plists" from the main CMakeLists.txt

The best way is anyhow try to get ROOT 6 running. This is actively supported system.

Cheers,
Dima
Re: error in dfcln.h with external packages [message #18862 is a reply to message #18856] Thu, 07 January 2016 14:59 Go to previous messageGo to next message
C. A. Douma is currently offline  C. A. Douma
Messages: 88
Registered: September 2015
Location: Groningen
continuous participant
From: *kvi-cart.rug.nl
Dear Mr. Kresan,

I compiled ROOT 6 on Ubuntu 15 with option 3: optimize
(because I want my simulations to run as fast as possible)
This is also the option that I use for ROOT 5 on ubuntu 14

I find it strange that you cannot reproduce the problem
on the ROOT dictionary. I tried the installation with the latest
versions of FairSoft, FairRoot and R3BRoot on severalk Ubuntu 14
systems and they all produce the same error. Could it be that I
am skipping a vital part of the installation?

After running configure.sh on fairsoft, I add the following to my
.bashrc

export SIMPATH=<path to>/FairSoft_Build/
export PATH=$PATH:$SIMPATH/bin/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMPATH/lib/:$SIMPATH/lib/root/

Then I compile FairRoot with a simple set of commands:
cmake
make
make install

Then I add to my .bashrc the following lines (after the previous 3 lines):

source <path to>/FairRoot_Install/bin/FairRootConfig.sh
export FAIRROOTPATH=<path to>/FairRoot_Install/

Then I give the cmake command for R3BRoot. Then the error apprears.
It happens both for the dev branch as for the master branch.
For FairSoft and FairRoot I always use the latest dev branch.

Which part do I miss?

Christiaan

PS: When redirecting the output of the FairSoft compilation to a file,
I get an error because once the output of configure.sh is
no longer on the terminal, I cannot enter the compilation options anymore.
Do you have a trick for this?
Re: error in dfcln.h with external packages [message #18864 is a reply to message #18844] Thu, 07 January 2016 15:13 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: 93.77.23*
You can not compile R3BRoot with a config file of FairRoot. Also what you add to bashrc is not really necessary. Configuration will be stored in config.sh of R3BRoot at the end.

Please go carefully step-by-step through installation instructions:

https://www.r3broot.gsi.de/fairroot-installation

https://www.r3broot.gsi.de/r3broot-installation

Cheers,
Dima
Re: error in dfcln.h with external packages [message #18867 is a reply to message #18864] Thu, 07 January 2016 21:09 Go to previous messageGo to next message
C. A. Douma is currently offline  C. A. Douma
Messages: 88
Registered: September 2015
Location: Groningen
continuous participant
From: *cm-3-4d.dynamic.ziggo.nl
Dear Mr. Kresan,

I followed exactly all the steps of the webpages you sent me.
The only difference is that I download the source from github instead of using a tarball.
I tried ti switch between master and dev branch of FairSoft and FairRoot and R3BRoot.
None of this solves the problem. I also tried to switch the FairRootConfig.sh file on and
off and this also does not solve the problem.

Thank you for all the effort you put in it.
Christiaan.
Re: error in dfcln.h with external packages [message #18869 is a reply to message #18867] Fri, 08 January 2016 12:00 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: 93.77.23*
I think I have found the problem. Currently, both dev and master branches of R3BRoot are well tested and working with latest stable releases of FairSoft (nov15p1) and FairRoot (v-15.11). Because of holidays, I did not come jet to test it with development versions. Please try to compile with tar balls from:

https://github.com/FairRootGroup/FairSoft/releases/tag/nov15p1

https://github.com/FairRootGroup/FairRoot/releases/tag/v-15.11

This will work for sure.

Cheers,
Dima
Re: error in dfcln.h with external packages [message #18871 is a reply to message #18869] Fri, 08 January 2016 17:30 Go to previous messageGo to next message
C. A. Douma is currently offline  C. A. Douma
Messages: 88
Registered: September 2015
Location: Groningen
continuous participant
From: *eduroam.rug.nl
Thank you! I will try the tarballs and let you know if it works a.s.a.p.

Christiaan.
Re: error in dfcln.h with external packages [message #18873 is a reply to message #18869] Sat, 09 January 2016 19:17 Go to previous message
C. A. Douma is currently offline  C. A. Douma
Messages: 88
Registered: September 2015
Location: Groningen
continuous participant
From: *cm-3-4d.dynamic.ziggo.nl
Dear Mr. Kresan,

your tar versions solved all problems! Both for Ubuntu 14 as for Ubuntu 15
(compiled with GCC, ROOT 5 optimized, simulation engines, internet data files & python bindings)

Many thanks!
Christiaan.
Previous Topic: R3B classes unknown in root macro
Next Topic: Re-installation of fairsoft
Goto Forum:
  


Current Time: Sun Oct 13 18:55:38 CEST 2024

Total time taken to generate the page: 0.00807 seconds