Giter Club home page Giter Club logo

annz's People

Contributors

iftachsadeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

annz's Issues

No module named 'commonImports'

Hi,

I have trouble importing " scripts.helperFuncs ". I run " from scripts.helperFuncs import * ". There is an Error: " ModuleNotFoundError: No module named 'commonImports' " . Do you have any idea what's going on? I appreciate it.

Hongbo

ANNZ install fails on Ubuntu 20.10 - problem with root_v6.24/00

After installing ROOT using snap in Ubuntu 20.10 and then running:
python scripts/annz_singleReg_quick.py --make
giving this compilation failed error:

(23:57 INFO) - Setting ROOTSYS = "/snap/root-framework/158/usr/local"
(23:57 INFO) - Setting LD_LIBRARY_PATH = "/snap/root-framework/158/usr/local/lib/"
(23:57 INFO) - Resetting directory(/home/robin/work/ANNZ/lib,False)
(23:57 INFO) - Moving to /home/robin/work/ANNZ/lib and compiling ANNZ...
c++ -O2 -Wall -fPIC -pthread -std=c++17 -m64 -I/snap/root-framework/158/usr/local/include -g -I../ -I./ -I../src/ -I../include/ -std=c++0x -include commonInclude.hpp -c -o myANNZ.o ../src/myANNZ.cpp
In file included from /snap/root-framework/158/usr/local/include/TString.h:29,
from /snap/root-framework/158/usr/local/include/TNamed.h:26,
from /snap/root-framework/158/usr/local/include/TDirectory.h:24,
from /snap/root-framework/158/usr/local/include/TROOT.h:28,
from ../include/commonInclude.hpp:44,
from :
/snap/root-framework/158/usr/local/include/ROOT/RStringView.hxx:84:17: error: expected type-specifier
84 | operator std::string_view() const { return std::string_view(fData,fLength); }
| ^~~
In file included from /snap/root-framework/158/usr/local/include/TNamed.h:26,
from /snap/root-framework/158/usr/local/include/TDirectory.h:24,
from /snap/root-framework/158/usr/local/include/TROOT.h:28,
from ../include/commonInclude.hpp:44,
from :
/snap/root-framework/158/usr/local/include/TString.h:115:13: error: expected type-specifier
115 | operator std::string_view() const { return std::string_view(Data(),fExtent); }
| ^~~
/snap/root-framework/158/usr/local/include/TString.h:280:32: error: ‘string_view’ in namespace ‘std’ does not name a type
280 | explicit TString(const std::string_view &sub);
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:280:27: note: ‘std::string_view’ is only available from C++17 onwards
280 | explicit TString(const std::string_view &sub);
| ^~~
/snap/root-framework/158/usr/local/include/TString.h:317:37: error: ‘string_view’ in namespace ‘std’ does not name a type
317 | TString &operator=(const std::string_view &s);
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:317:32: note: ‘std::string_view’ is only available from C++17 onwards
317 | TString &operator=(const std::string_view &s);
| ^~~
/snap/root-framework/158/usr/local/include/TString.h:444:9: error: ‘string_view’ in namespace ‘std’ does not name a type
444 | std::string_view View() const { return std::string_view(GetPointer(),Length()); }
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:444:4: note: ‘std::string_view’ is only available from C++17 onwards
444 | std::string_view View() const { return std::string_view(GetPointer(),Length()); }
| ^~~
In file included from /snap/root-framework/158/usr/local/include/TNamed.h:26,
from /snap/root-framework/158/usr/local/include/TDirectory.h:24,
from /snap/root-framework/158/usr/local/include/TROOT.h:28,
from ../include/commonInclude.hpp:44,
from :
/snap/root-framework/158/usr/local/include/TString.h:839:53: error: ‘string_view’ in namespace ‘std’ does not name a type
839 | inline Bool_t operator==(const char *s1, const std::string_view &s2)
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:839:48: note: ‘std::string_view’ is only available from C++17 onwards
839 | inline Bool_t operator==(const char s1, const std::string_view &s2)
| ^~~
/snap/root-framework/158/usr/local/include/TString.h:839:15: error: ‘Bool_t operator==(const char
, const int&)’ must have an argument of class or enumerated type
839 | inline Bool_t operator==(const char *s1, const std::string_view &s2)
| ^~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:844:37: error: ‘string_view’ in namespace ‘std’ does not name a type
844 | inline Bool_t operator==(const std::string_view &s1, const char s2)
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:844:32: note: ‘std::string_view’ is only available from C++17 onwards
844 | inline Bool_t operator==(const std::string_view &s1, const char s2)
| ^~~
/snap/root-framework/158/usr/local/include/TString.h:844:15: error: ‘Bool_t operator==(const int&, const char
)’ must have an argument of class or enumerated type
844 | inline Bool_t operator==(const std::string_view &s1, const char s2)
| ^~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:857:37: error: ‘string_view’ in namespace ‘std’ does not name a type
857 | std::string printValue(const std::string_view
val);
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TString.h:857:32: note: ‘std::string_view’ is only available from C++17 onwards
857 | std::string printValue(const std::string_view
val);
| ^~~
In file included from ../include/commonInclude.hpp:48,
from :
/snap/root-framework/158/usr/local/include/TFile.h:327:45: error: ‘std::string_view’ has not been declared
327 | static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected = kTRUE,
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TFile.h: In static member function ‘static Bool_t TFile::SetCacheFileDir(ROOT::Internal::TStringView, Bool_t, Bool_t)’:
/snap/root-framework/158/usr/local/include/TFile.h:326:36: error: ‘string_view’ is not a member of ‘std’
326 | { return SetCacheFileDir(std::string_view(cacheDir), operateDisconnected, forceCacheread); }
| ^~~~~~~~~~~
/snap/root-framework/158/usr/local/include/TFile.h:326:36: note: ‘std::string_view’ is only available from C++17 onwards
In file included from ../include/Utils.hpp:23,
from ../src/myANNZ.cpp:20:
../include/OptMaps.hpp: In member function ‘TString OptMaps::GetOptType(TString)’:
../include/OptMaps.hpp:117:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
117 | if(HasOptB(aName)) type += "B"; if(HasOptI(aName)) type += "I";
| ^~
../include/OptMaps.hpp:117:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
117 | if(HasOptB(aName)) type += "B"; if(HasOptI(aName)) type += "I";
| ^~
../include/OptMaps.hpp:118:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
118 | if(HasOptF(aName)) type += "F"; if(HasOptC(aName)) type += "C";
| ^~
../include/OptMaps.hpp:118:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
118 | if(HasOptF(aName)) type += "F"; if(HasOptC(aName)) type += "C";
| ^~
../include/OptMaps.hpp: In member function ‘void OptMaps::printMap(std::unordered_map<TString, T>&, TString, int, int)’:
../include/OptMaps.hpp:135:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
135 | if(nPrintRow == 0) nPrintRow = 4; if(width == 0) width = 15;
| ^~
../include/OptMaps.hpp:135:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
135 | if(nPrintRow == 0) nPrintRow = 4; if(width == 0) width = 15;
| ^~
make: *** [/home/robin/work/ANNZ/Makefile:159: myANNZ.o] Error 1
(23:57 CRITICAL) compilation failed
(23:57 CRITICAL) Will terminate !!!!

Please help...

DR_10 magnitude errors

I'm not an astronomer - I just thought this was an interesting problem and dataset - but I notice in various CSVs that some (especially U) magnitude errors are improbably large, some are larger than the U_mag value itself and some look like number conversion errors because they are orders of magnitude too large.

Believing that these CSVs are extracts from a formal data release (DR 10) I find this surprising.

Fully 89 out of 6000 MAGERR_U are greater than the maximum U mag in DR_10_0 and the top 10 values are

F:MAG_U | F:MAGERR_U
32.630444 | 8968.24707
29.571943 | 503.40976
29.475107 | 485.797302
31.206175 | 2392.669678
29.058022 | 311.311554
31.160982 | 2090.974365
29.397558 | 472.435791
33.133644 | 14749.50586
29.061462 | 361.038422
29.512608 | 552.291016

The issue is also present in other CSVs.

Are these erroneous values actually from BOSS? Do you have any other comments that would help me understand and use the data as-is?

annz_rndReg_quick.py

Hi,

I tried to run the example and during the optimization procedure, I got the following warning message:

Error in : Error 22 in qags.c at 563 : integral is divergent, or slowly convergent
Warning in TF1::IntegralOneDim: Error found in integrating function funcModel_6 in [0.000000,0.288769] using AdaptiveSingular. Result = 0.000017 +/- 0.000000 - status = 22
Function Parameters = { p0=0.148569 p1=0.30323 p2=0.00595106 p3=0.851431 p4=0.285636 p5=3.93116e-05 }

Any idea?

Thanks in advance,

Marcus

ANNZ install fails on Mac OSX Catalina - problem with root_v6.22.06.macos-10.15-x86_64

After installing ROOT from root_v6.22.06.macos-10.15-x86_64-clang120.pkg and then running
python scripts/annz_singleReg_quick.py --make
That gets a long way into compiling but then fails with
...
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -stdlib=libc++ -pthread -std=c++11 -m64 -I/Volumes/Macintosh_HD/Applications/root_v6.22.06/include -g -I../ -I./ -I../src/ -I../include/ -std=c++0x -include commonInclude.hpp -c -o ANNZ.o ../src/ANNZ.cpp
In file included from ../src/ANNZ.cpp:28:
../src/ANNZ_regEval.cpp:197:49: error: 'Integral' is a private member of 'TH2'
double intgr = hisPdfBiasCorV[nPDFnow]->Integral(nBinXnow,nBinXn...
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Volumes/Macintosh_HD/Applications/root_v6.22.06/include/TH2.h:68:15: note:
declared private here
using TH1::Integral;
^
1 error generated.
make: *** [ANNZ.o] Error 1
(00:13 CRITICAL) compilation failed
(00:13 CRITICAL) Will terminate !!!!

I then changed the "private" line in /include/TH2.h but then I get immediately
fatal error: file
'/Volumes/Macintosh_HD/Applications/root_v6.22.06/include/TH2.h' has been
modified since the precompiled header 'commonInclude.hpp.gch' was built:
mtime changed
note: please rebuild precompiled header 'commonInclude.hpp.gch'
1 error generated.

Any suggestions?

*** Break *** segmentation violation when do genInputTrees

Hi,

I'm trying to generate input trees by using the random regression script in ANNZ. Everything is fine until I changed the dataset into another one. Somehow this error was occured and I don't understand why:

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f8096cd207a in __GI___waitpid (pid=16627, stat_loc=stat_loc
entry=0x7fff7404fb40, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
#1  0x00007f8096c4afbb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2  0x00007f8095c26c8d in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x15c44e0) at /home/ade/Installer/root-6.12.06/core/unix/src/TUnixSystem.cxx:2118
#3  TUnixSystem::StackTrace (this=0x15c44e0) at /home/ade/Installer/root-6.12.06/core/unix/src/TUnixSystem.cxx:2412
#4  0x00007f8095c292cc in TUnixSystem::DispatchSignals (this=0x15c44e0, sig=kSigSegmentationViolation) at /home/ade/Installer/root-6.12.06/core/unix/src/TUnixSystem.cxx:3643
#5  <signal handler called>
#6  0x00007f8095b9263f in TList::FindObject (this=<optimized out>, obj=0x4bb9eb0) at /home/ade/Installer/root-6.12.06/core/cont/src/TList.cxx:614
#7  0x00007f8095b8714d in THashList::RecursiveRemove (this=0x15cb630, obj=0x4bb9eb0) at /home/ade/Installer/root-6.12.06/core/cont/src/THashList.cxx:328
#8  0x00007f8095a74ee3 in TROOT::RecursiveRemove (this=0x7f8095f5aec0 <ROOT::Internal::GetROOT1()::alloc>, obj=<optimized out>) at /home/ade/Installer/root-6.12.06/core/base/src/TROOT.cxx:2440
#9  0x00007f8095b1ba41 in ROOT::CallRecursiveRemoveIfNeeded (obj=...) at /home/ade/root/include/TROOT.h:387
#10 TNamed::~TNamed (this=0x4bb9eb0, __in_chrg=<optimized out>) at /home/ade/Installer/root-6.12.06/core/base/src/TNamed.cxx:45
#11 0x00007f8094d601d9 in TH1F::~TH1F (this=0x4bb9eb0, __in_chrg=<optimized out>) at /home/ade/Installer/root-6.12.06/hist/hist/src/TH1.cxx:9344
#12 0x00007f8095b87763 in THashList::Delete (this=0x15ca150, option=<optimized out>) at /home/ade/Installer/root-6.12.06/core/cont/src/THashList.cxx:234
#13 0x00007f8095b20d24 in TDirectory::Close (this=0x7f8095f5aec0 <ROOT::Internal::GetROOT1()::alloc>, option=<optimized out>) at /home/ade/Installer/root-6.12.06/core/base/src/TDirectory.cxx:614
#14 0x00007f8095a76661 in TROOT::CloseFiles (this=0x7f8095f5aec0 <ROOT::Internal::GetROOT1()::alloc>) at /home/ade/Installer/root-6.12.06/core/base/src/TROOT.cxx:1145
#15 0x00007f8096c3fff8 in __run_exit_handlers (status=0, listp=0x7f8096fca5f8 <__exit_funcs>, run_list_atexit=run_list_atexit
entry=true) at exit.c:82
#16 0x00007f8096c40045 in __GI_exit (status=<optimized out>) at exit.c:104
#17 0x00007f8096c26837 in __libc_start_main (main=0x400670 <main
plt>, argc=49, argv=0x7fff74052688, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff74052678) at ../csu/libc-start.c:325
#18 0x00000000004006c9 in _start ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum.
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://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.
===========================================================
#6  0x00007f8095b9263f in TList::FindObject (this=<optimized out>, obj=0x4bb9eb0) at /home/ade/Installer/root-6.12.06/core/cont/src/TList.cxx:614
#7  0x00007f8095b8714d in THashList::RecursiveRemove (this=0x15cb630, obj=0x4bb9eb0) at /home/ade/Installer/root-6.12.06/core/cont/src/THashList.cxx:328
#8  0x00007f8095a74ee3 in TROOT::RecursiveRemove (this=0x7f8095f5aec0 <ROOT::Internal::GetROOT1()::alloc>, obj=<optimized out>) at /home/ade/Installer/root-6.12.06/core/base/src/TROOT.cxx:2440
#9  0x00007f8095b1ba41 in ROOT::CallRecursiveRemoveIfNeeded (obj=...) at /home/ade/root/include/TROOT.h:387
#10 TNamed::~TNamed (this=0x4bb9eb0, __in_chrg=<optimized out>) at /home/ade/Installer/root-6.12.06/core/base/src/TNamed.cxx:45
#11 0x00007f8094d601d9 in TH1F::~TH1F (this=0x4bb9eb0, __in_chrg=<optimized out>) at /home/ade/Installer/root-6.12.06/hist/hist/src/TH1.cxx:9344
#12 0x00007f8095b87763 in THashList::Delete (this=0x15ca150, option=<optimized out>) at /home/ade/Installer/root-6.12.06/core/cont/src/THashList.cxx:234
#13 0x00007f8095b20d24 in TDirectory::Close (this=0x7f8095f5aec0 <ROOT::Internal::GetROOT1()::alloc>, option=<optimized out>) at /home/ade/Installer/root-6.12.06/core/base/src/TDirectory.cxx:614
#14 0x00007f8095a76661 in TROOT::CloseFiles (this=0x7f8095f5aec0 <ROOT::Internal::GetROOT1()::alloc>) at /home/ade/Installer/root-6.12.06/core/base/src/TROOT.cxx:1145
#15 0x00007f8096c3fff8 in __run_exit_handlers (status=0, listp=0x7f8096fca5f8 <__exit_funcs>, run_list_atexit=run_list_atexit
entry=true) at exit.c:82
#16 0x00007f8096c40045 in __GI_exit (status=<optimized out>) at exit.c:104
#17 0x00007f8096c26837 in __libc_start_main (main=0x400670 <main
plt>, argc=49, argv=0x7fff74052688, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff74052678) at ../csu/libc-start.c:325
#18 0x00000000004006c9 in _start ()
===========================================================

Could you please help me to solve the problem? Thanks in advance.

Regards,
Irham

ANNZ install failed on ubuntu20.04

After a long time of compilation, it prompts that the installation fails
ROOT6.02/06 is used

usr/bin/ld: warning: libblas.so.3, needed by /home/yandawei/root/lib/libTMVA.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to dger_' /usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to sger_'
/usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to sgemm_' /usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to daxpy_'
/usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to dgemv_' /usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to dgemm_'
/usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to saxpy_' /usr/bin/ld: /home/yandawei/root/lib/libTMVA.so: undefined reference to sgemv_'
collect2: error: ld returned 1 exit status
make: *** [/home/yandawei/annz/Makefile:238:myANNZ] 错误 1
(22:21 CRITICAL) compilation failed
(22:21 CRITICAL) Will terminate !!!!

Error Installing ANNZ with `annz_singleReg_quick.py`

Hi,

I followed the example of you readme and tried to run example python scripts/annz_singleReg_quick.py --make but got this error:

(17:24 INFO)  - Found defined ROOTSYS = "/home/irham/root". Setting glob.rootHome to match
(17:24 INFO)  - Will use ROOTSYS = "/home/irham/root"
(17:24 INFO)  - Adding to LD_LIBRARY_PATH "/home/irham/root/lib/"
(17:24 INFO)  - Resetting directory(/home/irham/annz/lib,False)
(17:24 INFO)  - Moving to /home/irham/annz/lib and compiling ANNZ... 
c++ -L/home/irham/root/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic -lMinuit -lTMVA -lXMLIO -lTreePlayer -O2 -m64 -Wl,-rpath,/home/irham/root/lib,-rpath,/home/irham/annz/lib myANNZ.so libOptMaps.so libUtils.so libVarMaps.so libOutMngr.so libBaseClass.so libCatFormat.so libANNZ.so -L/home/irham/root/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic  -lMinuit -lTMVA -lXMLIO -lTreePlayer -o  myANNZ 
libANNZ.so: undefined reference to `TRandom::TRandom(unsigned int)'
libCatFormat.so: undefined reference to `TMVA::DataLoader::PrepareTrainingAndTestTree(TCut const&, TString const&)'
libOutMngr.so: undefined reference to `TGraph::GetXaxis() const'
libANNZ.so: undefined reference to `TMVA::PDF::BuildPDF(TH1 const*)'
libCatFormat.so: undefined reference to `TTree::SetDirectory(TDirectory*)'
libUtils.so: undefined reference to `TFormula::SetParameter(int, double)'
libANNZ.so: undefined reference to `typeinfo for TMVA::IMethod'
libANNZ.so: undefined reference to `TH2F::TH2F(char const*, char const*, int, double const*, int, double const*)'
libUtils.so: undefined reference to `TAxis::GetFirst() const'
libCatFormat.so: undefined reference to `TChain::SetDirectory(TDirectory*)'
libUtils.so: undefined reference to `TAxis::GetBinLabel(int) const'
libANNZ.so: undefined reference to `TMVA::Factory::TestAllMethods()'
libUtils.so: undefined reference to `typeinfo for TH1F'
libANNZ.so: undefined reference to `TMVA::PDF::DeclareOptions()'
libANNZ.so: undefined reference to `TCut::TCut()'
libANNZ.so: undefined reference to `typeinfo for TMVA::Configurable'
libOutMngr.so: undefined reference to `TMultiGraph::GetYaxis()'
libANNZ.so: undefined reference to `TMVA::gTools()'
libUtils.so: undefined reference to `typeinfo for TTree'
libANNZ.so: undefined reference to `TH2F::TH2F(char const*, char const*, int, double, double, int, double const*)'
libOutMngr.so: undefined reference to `typeinfo for TF1'
libCatFormat.so: undefined reference to `typeinfo for TMVA::MethodBase'
libCatFormat.so: undefined reference to `TChain::TChain(char const*, char const*)'
libOutMngr.so: undefined reference to `TFile::TFile(char const*, char const*, char const*, int)'
libANNZ.so: undefined reference to `TMVA::Tools::Instance()'
libOutMngr.so: undefined reference to `TH1::SetDefaultSumw2(bool)'
libUtils.so: undefined reference to `typeinfo for TH3'
libUtils.so: undefined reference to `TMath::Quantiles(int, int, double*, double*, double*, bool, int*, int)'
libUtils.so: undefined reference to `TH1F::TH1F(char const*, char const*, int, double const*)'
libANNZ.so: undefined reference to `TMVA::Reader::BookMVA(TString const&, TString const&)'
libUtils.so: undefined reference to `typeinfo for TH2D'
libUtils.so: undefined reference to `TH1D::TH1D(char const*, char const*, int, double, double)'
libANNZ.so: undefined reference to `TMVA::Types::GetMethodName(TMVA::Types::EMVA) const'
libOutMngr.so: undefined reference to `TGraphAsymmErrors::TGraphAsymmErrors()'
libUtils.so: undefined reference to `TH1F::TH1F(char const*, char const*, int, double, double)'
libCatFormat.so: undefined reference to `TMVA::DataLoader::AddTree(TTree*, TString const&, double, TCut const&, TMVA::Types::ETreeType)'
libOutMngr.so: undefined reference to `typeinfo for TGraphAsymmErrors'
libCatFormat.so: undefined reference to `TMVA::kNN::ModulekNN::Find(TMVA::kNN::Event, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
libANNZ.so: undefined reference to `TMVA::Reader::GetProba(TString const&, double, double)'
libANNZ.so: undefined reference to `TDirectoryFile::Get(char const*)'
libANNZ.so: undefined reference to `TCut::operator=(TCut const&)'
libUtils.so: undefined reference to `typeinfo for TH2'
libCatFormat.so: undefined reference to `TMVA::kNN::Event::GetDist(TMVA::kNN::Event const&) const'
libUtils.so: undefined reference to `TRandom3::TRandom3(unsigned int)'
libANNZ.so: undefined reference to `TCut::operator==(TCut const&) const'
libUtils.so: undefined reference to `TCut::operator+=(TCut const&)'
libCatFormat.so: undefined reference to `TMVA::DataLoader::DataLoader(TString)'
libUtils.so: undefined reference to `TF1::TF1(char const*, char const*, double, double, TF1::EAddToList, bool)'
libANNZ.so: undefined reference to `typeinfo for TMVA::DataLoader'
libANNZ.so: undefined reference to `TXMLEngine::DocGetRootElement(void*)'
libCatFormat.so: undefined reference to `TMVA::DataLoader::AddVariable(TString const&, TString const&, TString const&, char, double, double)'
libCatFormat.so: undefined reference to `typeinfo for TMVA::MethodKNN'
libANNZ.so: undefined reference to `TMVA::Tools::HasAttr(void*, char const*)'
libANNZ.so: undefined reference to `TMVA::Reader::EvaluateRegression(TString const&, double)'
libCatFormat.so: undefined reference to `TCut::~TCut()'
libUtils.so: undefined reference to `typeinfo for TH2F'
libUtils.so: undefined reference to `typeinfo for TGraph'
libANNZ.so: undefined reference to `TMVA::DataLoader::AddTarget(TString const&, TString const&, TString const&, double, double)'
libCatFormat.so: undefined reference to `TMVA::Factory::BookMethod(TMVA::DataLoader*, TMVA::Types::EMVA, TString, TString)'
libANNZ.so: undefined reference to `TMVA::Tools::GetSeparation(TMVA::PDF const&, TMVA::PDF const&) const'
libOutMngr.so: undefined reference to `TLine::TLine(double, double, double, double)'
libANNZ.so: undefined reference to `TRandom3::RndmArray(int, double*)'
libUtils.so: undefined reference to `TF1::TF1(char const*, double (*)(double*, double*), double, double, int, int, TF1::EAddToList)'
libUtils.so: undefined reference to `TCanvas::TCanvas(char const*, char const*, int)'
libUtils.so: undefined reference to `TFormula::GetParameter(int) const'
libANNZ.so: undefined reference to `TProfile::TProfile(char const*, char const*, int, double const*, char const*)'
libANNZ.so: undefined reference to `TMVA::Reader::EvaluateMVA(TString const&, double)'
libOutMngr.so: undefined reference to `TGraph::TGraph()'
libUtils.so: undefined reference to `typeinfo for TChain'
libCatFormat.so: undefined reference to `TMVA::Factory::Factory(TString, TFile*, TString)'
libUtils.so: undefined reference to `TCanvas::TCanvas(char const*, char const*, int, int, int, int)'
libOutMngr.so: undefined reference to `TMultiGraph::GetHistogram()'
libUtils.so: undefined reference to `TH1::SetDefaultBufferSize(int)'
libANNZ.so: undefined reference to `TMVA::DataLoader::AddSignalTree(TTree*, double, TMVA::Types::ETreeType)'
libANNZ.so: undefined reference to `TMVA::PDF::GetVal(double) const'
libANNZ.so: undefined reference to `TChain::GetFile() const'
libANNZ.so: undefined reference to `TGraphErrors::TGraphErrors(int, double const*, double const*, double const*, double const*)'
libUtils.so: undefined reference to `TFitResultPtr::~TFitResultPtr()'
libANNZ.so: undefined reference to `TCut::TCut(TCut const&)'
libCatFormat.so: undefined reference to `TMVA::gConfig()'
libCatFormat.so: undefined reference to `TTree::TTree(char const*, char const*, int, TDirectory*)'
libANNZ.so: undefined reference to `TMVA::PDF::ProcessOptions()'
libANNZ.so: undefined reference to `TMultiGraph::TMultiGraph()'
libANNZ.so: undefined reference to `TCut::operator!=(char const*) const'
libCatFormat.so: undefined reference to `TMVA::kNN::Event::~Event()'
libCatFormat.so: undefined reference to `TCut::TCut(char const*)'
libOutMngr.so: undefined reference to `TPad::TPad(char const*, char const*, double, double, double, double, short, short, short)'
libOutMngr.so: undefined reference to `TGraphErrors::TGraphErrors()'
libCatFormat.so: undefined reference to `TMVA::DataLoader::SetWeightExpression(TString const&, TString const&)'
libCatFormat.so: undefined reference to `operator+(TCut const&, TCut const&)'
libANNZ.so: undefined reference to `TSpline3::TSpline3(TH1 const*, char const*, double, double)'
libVarMaps.so: undefined reference to `TTreeFormula::TTreeFormula(char const*, char const*, TTree*)'
libUtils.so: undefined reference to `TAxis::GetLast() const'
libUtils.so: undefined reference to `typeinfo for TH1D'
libANNZ.so: undefined reference to `TMVA::Factory::EvaluateAllMethods()'
libANNZ.so: undefined reference to `TMVA::PDF::PDF(TString const&, TString const&, TString const&, TMVA::PDF*, bool)'
libANNZ.so: undefined reference to `TMVA::Factory::TrainAllMethods()'
libANNZ.so: undefined reference to `TMVA::Reader::FindMVA(TString const&)'
libCatFormat.so: undefined reference to `TMVA::kNN::Event::Event(std::vector<float, std::allocator<float> > const&, double, short)'
libVarMaps.so: undefined reference to `double TTreeFormula::EvalInstance<double>(int, char const**)'
libOutMngr.so: undefined reference to `TMultiGraph::GetXaxis()'
libANNZ.so: undefined reference to `TMVA::Reader::AddVariable(TString const&, float*)'
libANNZ.so: undefined reference to `TH1::SetTitle(char const*)'
libOutMngr.so: undefined reference to `typeinfo for TGraphErrors'
libUtils.so: undefined reference to `TMath::KolmogorovTest(int, double const*, int, double const*, char const*)'
libOutMngr.so: undefined reference to `TGraph::GetYaxis() const'
libANNZ.so: undefined reference to `TCut::operator=(char const*)'
libANNZ.so: undefined reference to `TMVA::Reader::Reader(TString const&, bool)'
libANNZ.so: undefined reference to `TMVA::Reader::EvaluateMulticlass(TString const&, double)'
libANNZ.so: undefined reference to `TMVA::DataLoader::AddBackgroundTree(TTree*, double, TMVA::Types::ETreeType)'
libANNZ.so: undefined reference to `TMVA::Tools::GetSeparation(TH1*, TH1*) const'
libOutMngr.so: undefined reference to `TPaveText::TPaveText(double, double, double, double, char const*)'
libANNZ.so: undefined reference to `TXMLEngine::ParseFile(char const*, int)'
libUtils.so: undefined reference to `TH1D::TH1D(char const*, char const*, int, double const*)'
libUtils.so: undefined reference to `typeinfo for TH1'
libANNZ.so: undefined reference to `TMVA::Types::Instance()'
libOutMngr.so: undefined reference to `TGaxis::SetMaxDigits(int)'
libANNZ.so: undefined reference to `TH2::ProjectionY(char const*, int, int, char const*) const'
collect2: error: ld returned 1 exit status
/home/irham/annz/Makefile:238: recipe for target 'myANNZ' failed
make: *** [myANNZ] Error 1
(17:24 CRITICAL) compilation failed
(17:24 CRITICAL) Will terminate !!!!

Fyi, I'm using Python 3.6.4 and ROOT 6.12/06. I'm sure that they're properly installed in my Ubuntu 16.04 machine.

Thanks in advance,
Irham

Compilation issue with ROOT - Ubuntu 20.04

Similar to #8, the command

python scripts/annz_singleReg_quick.py --make

Gives me the following error:

(23:07 INFO) - Found defined ROOTSYS = "/home/santiago/root". Setting glob.rootHome to match
(23:07 INFO) - Will use ROOTSYS = "/home/santiago/root"
(23:07 INFO) - Adding to LD_LIBRARY_PATH "/home/santiago/root/lib/"
(23:07 INFO) - Resetting directory(/home/santiago/annz/lib,False)
(23:07 INFO) - Moving to /home/santiago/annz/lib and compiling ANNZ...
c++ -O2 -Wall -fPIC -pthread -std=c++14 -m64 -I/home/santiago/root/include -g -I../ -I./ -I../src/ -I../include/ -std=c++0x -include commonInclude.hpp -c -o myANNZ.o ../src/myANNZ.cpp
In file included from /home/santiago/root/include/TString.h:29,
from /home/santiago/root/include/TNamed.h:26,
from /home/santiago/root/include/TDirectory.h:24,
from /home/santiago/root/include/TROOT.h:28,
from ../include/commonInclude.hpp:44,
from :
/home/santiago/root/include/ROOT/RStringView.hxx:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type
32 | using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
| ^~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:35:12: error: ‘basic_string_view’ does not name a type
35 | typedef basic_string_view string_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:36:12: error: ‘basic_string_view’ does not name a type
36 | typedef basic_string_view<char16_t> u16string_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:37:12: error: ‘basic_string_view’ does not name a type
37 | typedef basic_string_view<char32_t> u32string_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:38:12: error: ‘basic_string_view’ does not name a type
38 | typedef basic_string_view<wchar_t> wstring_view;
| ^~~~~~~~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:48:4: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:48:28: error: ‘string_view’ is not a member of ‘std’
48 | inline double stod(std::string_view str, size_t pos)
| ^~~~~~~~~~~
/home/santiago/root/include/ROOT/RStringView.hxx:48:28: note: ‘std::string_view’ is only available from C++17 onwards
/home/santiago/root/include/ROOT/RStringView.hxx:48:52: error: expected primary-expression before ‘
’ token
48 | inline double stod(std::string_view str, size_t *pos)
| ^
/home/santiago/root/include/ROOT/RStringView.hxx:48:53: error: ‘pos’ was not declared in this scope; did you mean ‘ios’?
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~
| ios
/home/santiago/root/include/ROOT/RStringView.hxx:48:56: error: expression list treated as compound expression in initializer [-fpermissive]
48 | inline double stod(std::string_view str, size_t *pos)
| ^
/home/santiago/root/include/ROOT/RStringView.hxx:65:56: error: ‘std::string_view’ has not been declared
65 | inline std::string &operator+=(std::string &left, std::string_view right)
...
make: *** [/home/santiago/annz/Makefile:159: myANNZ.o] Error 1
(23:07 CRITICAL) compilation failed
(23:07 CRITICAL) Will terminate !!!!

I think it's a problem with different gcc versions for root and the application. Please help me fix this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.