GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » New update (9/18/2012) not working
New update (9/18/2012) not working [message #13972] Tue, 18 September 2012 22:55 Go to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
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.
Re: New update (9/18/2012) not working [message #13973 is a reply to message #13972] Tue, 18 September 2012 23:23 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 129.175.141*
You can add into FairLogger.cxx the following lines:

#include <stdio.h>
#include <stdlib.h>
Re: New update (9/18/2012) not working [message #13975 is a reply to message #13972] Wed, 19 September 2012 09:43 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
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
Re: New update (9/18/2012) not working [message #13976 is a reply to message #13975] Wed, 19 September 2012 15:07 Go to previous messageGo to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
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.so.0.0.0: undefined reference to `TString::~TString()'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::ToUpper()'
../../lib/libFairTools.so.0.0.0: undefined reference to `operator==(TString const&, char const*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__add_compiledheader'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::TInitBehavior const*, void (*)(), TVirtualIsAProxy*, int, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__getsizep2memfunc'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::DefineBehavior(void*, void*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__int'
../../lib/libFairTools.so.0.0.0: undefined reference to `TMemberInspector::GetParent() const'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__memfunc_setup'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__get_linked_tagnum'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::TString(char)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::Replace(int, int, char const*, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__memvar_setup'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::operator=(TString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TMemberInspector::GenericShowMembers(char const*, void*, bool)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__resetglobalenv'
../../lib/libFairTools.so.0.0.0: undefined reference to `operator+(char const*, TString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TVersionCheck::TVersionCheck(int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, TString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__tag_memfunc_setup'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetDelete(void (*)(void*))'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::AdoptCollectionProxyInfo(ROOT::TCollectionProx yInfo*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__setsizep2memfunc'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__search_typename2'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetDestructor(void (*)(void*))'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__call_setup_funcs'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__setnull'
../../lib/libFairTools.so.0.0.0: undefined reference to `TIsAProxy::TIsAProxy(std::type_info const&, void*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::operator=(char const*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetImplFile(char const*, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__resetplocal'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::operator()(int, int) const'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::TString(TSubString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__remove_setup_func'
../../lib/libFairTools.so.0.0.0: undefined reference to `TMemberInspector::InspectMember(char const*, void*, char const*, bool)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__va_arg_put'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__tag_memfunc_reset'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__tag_memvar_reset'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__lastifuncposition'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::GetImplFileLine()'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::Index(char const*, int, int, TString::ECaseCompare) const'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__setnewtype'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::TInitBehavior const*, void (*)(void*, TMemberInspector&), void (*)(), TVirtualIsAProxy*, int, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetNewArray(void* (*)(long, void*))'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__letint'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__defined_typename'
collect2: ld returned 1 exit status
make[2]: *** [bin/_GTestFairTools] Error 1
make[1]: *** [test/fairtools/CMakeFiles/_GTestFairTools.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx: In member function ‘virtual void VerbosityLevelTest_testAllVerbosityLevelsToScreenAndFile_Test::TestBody( ) ’:
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx:3 50:19: warning: ignoring return value of ‘char* tmpnam(char*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx: In member function ‘virtual void LogLevelTest_testAllLogLevelsToScreenAndFile_Test::TestBody()’:
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx:3 17:19: warning: ignoring return value of ‘char* tmpnam(char*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx: In member function ‘virtual void FairToolsTest_testScreenAndFileOutputWithoutArgument_Test::TestBody()’:
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx:2 86:19: warning: ignoring return value of ‘char* tmpnam(char*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx: In member function ‘virtual void FairToolsTest_CheckOutputOnlyToFile_Test::TestBody()’:
/home/raphael/Downloads/fairroot/test/fairtools/_GTestFairToolsNew.cxx:2 17:19: warning: ignoring return value of ‘char* tmpnam(char*)’, declared with attribute warn_unused_result [-Wunused-result]
Linking CXX executable ../../bin/_GTestFairToolsNew
../../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.so.0.0.0: undefined reference to `TString::~TString()'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::ToUpper()'
../../lib/libFairTools.so.0.0.0: undefined reference to `operator==(TString const&, char const*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__add_compiledheader'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::TInitBehavior const*, void (*)(), TVirtualIsAProxy*, int, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__getsizep2memfunc'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::DefineBehavior(void*, void*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__int'
../../lib/libFairTools.so.0.0.0: undefined reference to `TMemberInspector::GetParent() const'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__memfunc_setup'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__get_linked_tagnum'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::TString(char)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::Replace(int, int, char const*, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__memvar_setup'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::operator=(TString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TMemberInspector::GenericShowMembers(char const*, void*, bool)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__resetglobalenv'
../../lib/libFairTools.so.0.0.0: undefined reference to `operator+(char const*, TString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TVersionCheck::TVersionCheck(int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, TString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__tag_memfunc_setup'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetDelete(void (*)(void*))'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::AdoptCollectionProxyInfo(ROOT::TCollectionProx yInfo*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__setsizep2memfunc'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__search_typename2'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetDestructor(void (*)(void*))'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__call_setup_funcs'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__setnull'
../../lib/libFairTools.so.0.0.0: undefined reference to `TIsAProxy::TIsAProxy(std::type_info const&, void*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::operator=(char const*)'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetImplFile(char const*, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__resetplocal'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::operator()(int, int) const'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::TString(TSubString const&)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__remove_setup_func'
../../lib/libFairTools.so.0.0.0: undefined reference to `TMemberInspector::InspectMember(char const*, void*, char const*, bool)'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__va_arg_put'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__tag_memfunc_reset'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__tag_memvar_reset'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__lastifuncposition'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::GetImplFileLine()'
../../lib/libFairTools.so.0.0.0: undefined reference to `TString::Index(char const*, int, int, TString::ECaseCompare) const'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__setnewtype'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::TInitBehavior const*, void (*)(void*, TMemberInspector&), void (*)(), TVirtualIsAProxy*, int, int)'
../../lib/libFairTools.so.0.0.0: undefined reference to `ROOT::TGenericClassInfo::SetNewArray(void* (*)(long, void*))'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__letint'
../../lib/libFairTools.so.0.0.0: undefined reference to `G__defined_typename'
collect2: ld returned 1 exit status
make[2]: *** [bin/_GTestFairToolsNew] Error 1
make[1]: *** [test/fairtools/CMakeFiles/_GTestFairToolsNew.dir/all] Error 2
make: *** [all] Error 2

What is going on?
Re: New update (9/18/2012) not working [message #13978 is a reply to message #13976] Wed, 19 September 2012 15:55 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
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
Re: New update (9/18/2012) not working [message #13981 is a reply to message #13978] Wed, 19 September 2012 18:43 Go to previous messageGo to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
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.
Re: New update (9/18/2012) not working [message #13983 is a reply to message #13973] Wed, 19 September 2012 21:00 Go to previous messageGo to next message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *physics.sunysb.edu
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.cxx:8:
In file included from /Users/raghav/fairroot/fairtools/FairLogger.h:22:
In file included from /Users/raghav/fairsoft/tools/root/include/Rtypes.h:24:
/Users/raghav/fairsoft/tools/root/include/RConfig.h:377:13: fatal error: 'TargetConditionals.h' file not
found
# include <TargetConditionals.h>
^
1 error generated.
make[2]: *** [fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o] Error 1
make[1]: *** [fairtools/CMakeFiles/FairTools.dir/all] Error 2
make: *** [all] Error 2
raghav:build raghav$

I am pretty sure that there is some mistake regarding where it is looking for the required header files etc...

So i went inside the RConfig.h file and told it where the file TargetConditionals.h file was, it was in /usr/include/TargetConditionals.h .

Now it is telling me this
[ 1%] Building CXX object fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o
In file included from /Users/raghav/fairroot/fairtools/FairLogger.cxx:8:
In file included from /Users/raghav/fairroot/fairtools/FairLogger.h:22:
In file included from /Users/raghav/fairsoft/tools/root/include/Rtypes.h:30:
/Users/raghav/fairsoft/tools/root/include/Rtypeinfo.h:32:10: fatal error: 'typeinfo' file not found
#include <typeinfo>
^
1 error generated.
make[2]: *** [fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o] Error 1
make[1]: *** [fairtools/CMakeFiles/FairTools.dir/all] Error 2
make: *** [all] Error 2
raghav:build raghav$

This is very confusing because i am not sure which variable needs to be set for it to see these required files.

Any help would be greatly appreciated
Thanks!
Re: New update (9/18/2012) not working [message #13986 is a reply to message #13981] Thu, 20 September 2012 08:25 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Raphael,

to which directory did you install the external packages? Do you have more then one ROOT version on the machine?

Ciao

Florian
Re: New update (9/18/2012) not working [message #13987 is a reply to message #13983] Thu, 20 September 2012 08:27 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Raghav, Hi Raphael,

which version of the external packages do you use?

Ciao

Florian
Re: New update (9/18/2012) not working [message #13989 is a reply to message #13987] Thu, 20 September 2012 13:20 Go to previous messageGo to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *dyn.optonline.net
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
Re: New update (9/18/2012) not working [message #13990 is a reply to message #13989] Thu, 20 September 2012 14:47 Go to previous messageGo to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
I am also only using one version of ROOT.
Re: New update (9/18/2012) not working [message #13992 is a reply to message #13987] Thu, 20 September 2012 16:21 Go to previous messageGo to next message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *physics.sunysb.edu
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: /Users/raghav/fairroot/build
raghav:build raghav$ make
[ 1%] Building CXX object fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o
In file included from /Users/raghav/fairroot/fairtools/FairLogger.cxx:8:
In file included from /Users/raghav/fairroot/fairtools/FairLogger.h:22:
In file included from /Users/raghav/fairsoft/tools/root/include/Rtypes.h:30:
/Users/raghav/fairsoft/tools/root/include/Rtypeinfo.h:32:10: fatal error: 'typeinfo' file not found
#include <typeinfo>

^
1 error generated.
make[2]: *** [fairtools/CMakeFiles/FairTools.dir/FairLogger.cxx.o] Error 1
make[1]: *** [fairtools/CMakeFiles/FairTools.dir/all] Error 2
make: *** [all] Error 2
raghav:build raghav$

The first error i have not seen before, and for the second one i am pretty sure that it is because i am not linking the path correctly but i dont know which one i am missing.

Thanks a lot
Raghav

[Updated on: Thu, 20 September 2012 16:25]

Report message to a moderator

Re: New update (9/18/2012) not working [message #13993 is a reply to message #13976] Thu, 20 September 2012 16:56 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
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
Re: New update (9/18/2012) not working [message #13994 is a reply to message #13993] Thu, 20 September 2012 22:30 Go to previous messageGo to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
Thank you,
In case the problem doesn't resolve soon, can you tell me the os that fairroot definitely works in?

Again, thank you.
Re: New update (9/18/2012) not working [message #13995 is a reply to message #13994] Thu, 20 September 2012 22:57 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *41-79-r.retail.telecomitalia.it
I have an Ubuntu 12.04 and it works nicely. There should be some problem with your local installation.
Re: New update (9/18/2012) not working [message #13996 is a reply to message #13995] Thu, 20 September 2012 23:03 Go to previous messageGo to next message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
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
Re: New update (9/18/2012) not working [message #13997 is a reply to message #13996] Thu, 20 September 2012 23:16 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *41-79-r.retail.telecomitalia.it
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.
Re: New update (9/18/2012) not working [message #14006 is a reply to message #13997] Mon, 24 September 2012 19:24 Go to previous message
Raphael Cervantes is currently offline  Raphael Cervantes
Messages: 34
Registered: September 2012
Location: Stony Brook University
continuous participant
From: *physics.sunysb.edu
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.
Previous Topic: Unable to run rutherford example with new update (9/19/12)
Next Topic: fairbase does not compiile properly as is (10-5-12) [SOLVED]
Goto Forum:
  


Current Time: Tue Apr 16 21:01:55 CEST 2024

Total time taken to generate the page: 0.00721 seconds