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 |
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 #13976 is a reply to message #13975] |
Wed, 19 September 2012 15:07 |
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 #13992 is a reply to message #13987] |
Thu, 20 September 2012 16:21 |
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 #14006 is a reply to message #13997] |
Mon, 24 September 2012 19:24 |
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.
|
|
|
Goto Forum:
Current Time: Tue Oct 08 08:47:21 CEST 2024
Total time taken to generate the page: 0.00629 seconds
|