GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: New update (9/18/2012) not working
items: Re: New update (9/18/2012) not working

New update (9/18/2012) not working
type: item
description: Hey guys, I tried the following commands on my ubuntu machine. cd fairroot svn update cd build cmake .. make When I try those commands, I get this error raphael@raphael-Vostro-1520:~/Downloads/fairroot/build$ make -j2 [ 0%] Building CXX object fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o [ 9%] Built target Base [ 19%] Built target FairDB [ 26%] Built target GeoBase [ 30%] Built target ParBase [ 33%] Built target Gen [ 34%] Built target TrkBase [ 37%] Built target EventDisplay Scanning dependencies of target Tutorial1 /home/raphael/Downloads/fairroot/fairtools/FairLogger.cxx: In member function ‘void FairLogger::LogFatalMessage(std::ostream&)’: /home/raphael/Downloads/fairroot/fairtools/FairLogger.cxx:482:11: error: ‘abort’ was not declared in this scope /home/raphael/Downloads/fairroot/fairtools/FairLogger.cxx:477:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] [ 38%] make[2]: *** [fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o] Error 1 make[1]: *** [fairtools/CMakeFiles/FairTools.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorialDet.cxx.o [ 38%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorialDetContFact.c xx.o [ 38%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/FairTutorialDetGeoPar.cxx .o [ 38%] Building CXX object example/Tutorial1/src/CMakeFiles/Tutorial1.dir/G__Tutorial1Dict.cxx.o Linking CXX shared library ../../../lib/libTutorial1.so [ 39%] Built target Tutorial1 make: *** [all] Error 2 How can I fix my errors.
creator: Raphael Cervantes
date: 2012-09-18T20:55:59-00:00

Re: New update (9/18/2012) not working
type: item
description: You can add into FairLogger.cxx the following lines: #include <stdio.h> #include <stdlib.h>
creator: StefanoSpataro
date: 2012-09-18T21:23:58-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi Raphael, thanks for reporting. The problem is now fixed in the code. If you do again an svn up you should have the new code. Sorry for the inconvenience but unfortunately the problem didn't show up on any of my test machines. Obviously in newer versions of the standard c++ library the missing header file is included indirectly. Ciao Florian
creator: Florian Uhlig
date: 2012-09-19T07:43:42-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi, Thank you for responding. I did an svn update. From there, cd build cmake .. make I get a lot further when I do make. However, I get this error message: [ 81%] Built target FairMock Linking CXX executable ../../bin/_GTestFairTools [ 99%] Built target Rho Scanning dependencies of target _GTestFairToolsNew [ 99%] Building CXX object test/fairtools/CMakeFiles/_GTestFairToolsNew.dir/_GTestFairToolsNew.cxx. o ../../lib/libFairTools.so.0.0.0: undefined reference to `G__getstructoffset' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__add_setup_func' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__check_setup_version' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__getnumbaseclass' ../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::GetImplFileName()' ../../lib/libFairTools.so.0.0.0: undefined reference to `TString::Last(char) const' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__inheritance_setup' ../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::~TGenericClassInfo()' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__get_linked_tagnum_fwd' ../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetDeleteArray(void (*)(void*))' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__tag_memvar_setup' ../../lib/libFairTools.so.0.0.0: undefined reference to `gSystem' ../../lib/libFairTools.so.0.0.0: undefined reference to `operator+(TString const&, char const*)' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__tagtable_setup' ../../lib/libFairTools.so.0.0.0: undefined reference to `G__resetifuncposition' ../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetNew(void* (*)(void*))' ../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::GetClass()' ../../lib/libFairTools.so.0.0.0: undefined reference to `TString::TString(char const*)' ../../lib/libFairTools.s…
creator: Raphael Cervantes
date: 2012-09-19T13:07:43-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi Raphael, I don't know what went wrong but there is definitely a problem when linking the tests. Since this is not needed to run FairRoot please switch off the generation of the test executables. This is done in the main CMakeLists.txt file by commenting the line add_subdirectory(test) to #add_subdirectory(test) Ciao Florian
creator: Florian Uhlig
date: 2012-09-19T13:55:44-00:00

Re: New update (9/18/2012) not working
type: item
description: It seemed to build just fine after commenting out add_subdirectory(test) in the CMakeLists.txt However, I now get a segmentation violation when I try to run the rutherford example. It used to run before I ran the update. The segmentation fault occurs in line 105 of run_rutherford.C when the line run->Init(); is run. Does anyone have any ideas of what is going on? Here are my list of commands: cd [fairsoftDirectory]/example/rutherford/macro root run_rutherford.C I'm attaching the segfault error. Please let me know if you have any ideas.
creator: Raphael Cervantes
date: 2012-09-19T16:43:05-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi I also have a similar problem with FairLogger.cxx. I tried deleting what i had and updated it with the current version available on svn. Still after doing that it gives me the same error. raghav:build raghav$ cmake ../ --- Found a Mac OS X System 10.7 --- Found GNU compiler collection --- Build Type: RelWithDebInfo --- Compiler Flags: -m64 -- Looking for Root... -- Looking for Root... - Found /Users/raghav/fairsoft/tools/root/bin/root -- Looking for Root... - version 5.32/00 -- Looking for Pluto... -- Looking for Pluto... - found /Users/raghav/fairsoft/generators/lib -- Looking for Pythia6... -- Looking for Pythia6... - found /Users/raghav/fairsoft/generators/lib -- Looking for GEANT3... -- Looking for GEANT3... - found /Users/raghav/fairsoft/transport/geant3/lib/libgeant321.so -- Looking for GEANT4... -- Looking for GEANT4... - found /Users/raghav/fairsoft/transport/geant4/lib -- Looking for GEANT4 DATA files... -- Looking for GEANT4VMC... -- Looking for GEANT4VMC... - found /Users/raghav/fairsoft/transport/geant4_vmc/lib -- Looking for VGM... -- Looking for VGM... - found /Users/raghav/fairsoft/transport/vgm/lib -- Looking for CLHEP... -- Looking for CLHEP... - found /Users/raghav/fairsoft/cern/clhep/lib -- Looking for Java... -- Looking for Java... - found /usr/bin/java -- Looking for Perl... -- Looking for Perl... - found /usr/bin/perl -- Looking for Rule Checker... -- Looking for Rule Checker... - No Rules found -- Looking for Rule Checker... - Not found -- Looking for Boost ... -- Boost version: 1.48.0 Build the unit tests. -- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) -- Configuring done -- Generating done -- Build files have been written to: /Users/raghav/fairroot/build raghav:build raghav$ make [ 1%] Generating G__FairToolsDict.cxx Scanning dependencies of target FairTools [ 2%] Building CXX object fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o In file included from /Users/raghav/fairroot/fairtools/FairLogger.…
creator: Raghav Kunnawalkam
date: 2012-09-19T19:00:31-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi Raphael, to which directory did you install the external packages? Do you have more then one ROOT version on the machine? Ciao Florian
creator: Florian Uhlig
date: 2012-09-20T06:25:42-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi Raghav, Hi Raphael, which version of the external packages do you use? Ciao Florian
creator: Florian Uhlig
date: 2012-09-20T06:27:19-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi Florian, I installed my external packages under /usr/local/ and I am using the external packages from sep 12. I'm also using Ubuntu 12.04 if that helps. Thank you, Raphael
creator: Raphael Cervantes
date: 2012-09-20T11:20:41-00:00

Re: New update (9/18/2012) not working
type: item
description: I am also only using one version of ROOT.
creator: Raphael Cervantes
date: 2012-09-20T12:47:45-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi Florian all my external packages are installed in /Users/raghav/fairsoft/ and they are version 17140. I also have only one version of root with ROOTSYS = /Users/raghav/fairsoft/tools/root Also i have attached the config file that i run every time before running fairroot which tells it where all the stuff are. Here are the actual errors during cmake and make raghav:~ raghav$ cd fairroot raghav:fairroot raghav$ source config_test.sh raghav:fairroot raghav$ cd build/ raghav:build raghav$ cmake ../ --- Found a Mac OS X System 10.7 --- Found GNU compiler collection --- Build Type: RelWithDebInfo --- Compiler Flags: -m64 -- Looking for Root... -- Looking for Root... - Found /Users/raghav/fairsoft/tools/root/bin/root -- Looking for Root... - version 5.32/00 -- Looking for Pluto... -- Looking for Pluto... - found /Users/raghav/fairsoft/generators/lib -- Looking for Pythia6... -- Looking for Pythia6... - found /Users/raghav/fairsoft/generators/lib -- Looking for GEANT3... -- Looking for GEANT3... - found /Users/raghav/fairsoft/transport/geant3/lib/libgeant321.so -- Looking for GEANT4... -- Looking for GEANT4... - found /Users/raghav/fairsoft/transport/geant4/lib -- Looking for GEANT4 DATA files... -- Looking for GEANT4VMC... -- Looking for GEANT4VMC... - found /Users/raghav/fairsoft/transport/geant4_vmc/lib -- Looking for VGM... -- Looking for VGM... - found /Users/raghav/fairsoft/transport/vgm/lib -- Looking for CLHEP... -- Looking for CLHEP... - found /Users/raghav/fairsoft/cern/clhep/lib -- Looking for Java... -- Looking for Java... - found /usr/bin/java -- Looking for Perl... -- Looking for Perl... - found /usr/bin/perl -- Looking for Rule Checker... -- Looking for Rule Checker... - No Rules found -- Looking for Rule Checker... - Not found -- Looking for Boost ... -- Boost version: 1.48.0 Build the unit tests. -- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) -- Configuring done -- Generating done -- Build files have been written to…
creator: Raghav Kunnawalkam
date: 2012-09-20T14:21:21-00:00

Re: New update (9/18/2012) not working
type: item
description: Hi Raphael, I did now a test on Ubuntu 12.04 and I was able to reproduce the problem when linking the test executables. Now I have a chance to find out what could be the problem. I hope I also can confirm the problem running the rutherford example. Ciao Florian
creator: Florian Uhlig
date: 2012-09-20T14:56:14-00:00

Re: New update (9/18/2012) not working
type: item
description: Thank you, In case the problem doesn't resolve soon, can you tell me the os that fairroot definitely works in? Again, thank you.
creator: Raphael Cervantes
date: 2012-09-20T20:30:00-00:00

Re: New update (9/18/2012) not working
type: item
description: I have an Ubuntu 12.04 and it works nicely. There should be some problem with your local installation.
creator: StefanoSpataro
date: 2012-09-20T20:57:42-00:00

Re: New update (9/18/2012) not working
type: item
description: In that case, I am thinking of completely reinstalling fairroot and the external packages. What is the easiest way to purge fairroot and the external packages from my library? It seems that whenever I try to reinstall it, the configure and make files skip over what has already been installed. I also feel uneasy manually deleting libraries since I am unsure which library belongs to fairroot and external packages. I think I am going to install all of my packages in an external folder instead of /usr/local this time around. Thank you, Raphael
creator: Raphael Cervantes
date: 2012-09-20T21:03:26-00:00

Re: New update (9/18/2012) not working
type: item
description: Maybe the problem is that you are installing on /usr/local, instead of using other user folders. I would try to download sep12?again in a standard folder and remove /usr/local from your PATH before reinstalling it.
creator: StefanoSpataro
date: 2012-09-20T21:16:07-00:00

Re: New update (9/18/2012) not working
type: item
description: Thank you so much. I couldn't figure out why my installation was acting up, so I just formatted my drive and did another install. I took your advice and kept all the libraries in seperate directories rather than /usr/local. It worked then. I had to uncomment add_subdirectory(test) to get make to run completely. I also had to uncomment gR00T->LoadMacro(basicLibs) to get the rutherford example to work. I don't understand why it was commented out in the first place.
creator: Raphael Cervantes
date: 2012-09-24T17:24:35-00:00