MadAnalysis / madanalysis5

A package for event file analysis and recasting of LHC results
http://madanalysis.irmp.ucl.ac.be
GNU General Public License v3.0
22 stars 18 forks source link

impossible to compile the project #243

Closed RBadawi99 closed 7 months ago

RBadawi99 commented 9 months ago

Question

Hello!

My system is Ubuntu 22.04, I have downloaded madanalysis5 via MadGraph version MG5_aMC_v3_5_3. I have encountered an error while running the command as explained in the following ticket: https://answers.launchpad.net/mg5amcnlo/+question/709251

in the tag_1_MA5__reco_BasicReco.log file:


and in the compilation.log file:

c++ -Wall -std=c++11 -O3 -fPIC -I/home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/madanalysis5/madanalysis5/tools/ -I./ -pthread -std=c++11 -m64 -I/home/raghad/root/include -o Main/main.o -c Main/main.cpp In file included from /home/raghad/root/include/RWrap_libcpp_string_view.h:545, from /home/raghad/root/include/RStringView.h:26, from /home/raghad/root/include/TString.h:28, from /home/raghad/root/include/TNamed.h:26, from /home/raghad/root/include/TDirectory.h:25, from /home/raghad/root/include/TROOT.h:28, from /home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Interfaces/root/RootMainHeaders.h:30, from ./SampleAnalyzer/User/Analyzer/user.h:5, from ./SampleAnalyzer/User/Analyzer/analysisList.h:2, from Main/main.cpp:12: /home/raghad/root/include/libcpp_string_view.h: In member function ‘constexpr std::experimental::ROOT::basic_string_view<_CharT, _Traits>::size_type std::experimental::__ROOT::basic_string_view<_CharT, _Traits>::max_size() const’: /home/raghad/root/include/libcpp_string_view.h:275:62: error: ‘numeric_limits’ is not a member of ‘std’ 275 | size_type max_size() const _NOEXCEPT { return _VSTD::numeric_limits::max(); } | ^~~~~~ /home/raghad/root/include/libcpp_string_view.h:275:86: error: expected primary-expression before ‘>’ token 275 | size_type max_size() const _NOEXCEPT { return _VSTD::numeric_limits::max(); } | ^ /home/raghad/root/include/libcpp_string_view.h:275:89: error: ‘::max’ has not been declared; did you mean ‘std::max’? 275 | size_type max_size() const _NOEXCEPT { return _VSTD::numeric_limits::max(); } | ^~~ | std::max In file included from /usr/include/c++/11/algorithm:62, from /home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Commons/DataFormat/WeightCollection.h:35, from /home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Commons/DataFormat/MCEventFormat.h:37, from /home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Commons/DataFormat/EventFormat.h:36, from /home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Process/Core/SampleAnalyzer.h:38, from Main/main.cpp:11: /usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here 3467 | max(initializer_list<_Tp> l, _Compare __comp) | ^~~ make: *** [Makefile:101: Main/main.o] Error 1

And I do not get the plots and histograms as I finish. Any help? Many thanks.

jackaraz commented 9 months ago

Hi @RBadawi99 have you tried with the latest version of Ma5? Your version is quite outdated.

RBadawi99 commented 9 months ago

Hello @jackaraz, thank you for responding. I have not downloaded Ma5 independently. In the MadGraph shell, I ran "install MadAnalysis5" and it downloaded on it own. Can you explain further how to download the latest version of Ma5 within MG5?

jackaraz commented 9 months ago

Hi @RBadawi99, you can find the details on madgraph workflow in their documentation.

RBadawi99 commented 9 months ago

Hello @jackaraz, Thanks for responding.

I have tried to install MA5 like indicated here: https://github.com/MadAnalysis/madanalysis5/?tab=readme-ov-file And I have indicated this error:

raghad@raghad-IdeaPad-L3-15IML05:~/Downloads/madanalysis5-1.10.12$ ./bin/ma5 MA5: MA5: MA5: MA5: W E L C O M E to M A D A N A L Y S I S 5 MA5: __ __ MA5: /'_/`\/\ \/\ \ MA5: /\ \ \ \\ \ \ \/ MA5: \ \ __\ \ \ _ \ \``\ MA5: \ \ _/\ \ \ \/\ \/\ _\ \ MA5: \ _\ _\ _\ _\ _/ MA5: \// \//\//\//\// MA5: MA5: MA5 release : 1.10.12 2023/09/13 MA5: MA5: Comput. Phys. Commun. 184 (2013) 222-256 MA5: Eur. Phys. J. C74 (2014) 3103 MA5: MA5: The MadAnalysis Development Team - Please visit us at MA5: https://github.com/MadAnalysis MA5: MA5: Type 'help' for in-line help. MA5: MA5: MA5: Platform: Linux 6.5.0-17-generic [Linux mode] MA5: Reading user settings ... MA5: Checking mandatory packages: MA5: - Python [OK] MA5: - GNU GCC g++ [OK] MA5: - GNU Make [OK] MA5: Checking optional packages devoted to data processing: MA5: - Zlib [OK] MA5: - FastJet [OK] MA5-ERROR: impossible to execute the commands: /usr/bin/root-config --libdir --incdir --version MA5: - Root [OK] MA5: - Delphes [DISABLED] MA5: - Delphes-MA5tune [DISABLED] MA5: Checking the MadAnalysis 5 core library: MA5: => First use of MadAnalysis (or the library is missing). MA5: MA5: ** MA5: Building SampleAnalyzer libraries
MA5: ** MA5: How many cores for the compiling? default = max = 8 Answer: 8 MA5: => Number of cores used for the compilation = 8 MA5: Writing the setup files ... MA5: Writing all the Makefiles ... MA5: ** MA5: Component 1/11 - test program: SampleAnalyzer configuration MA5: - Cleaning the project before building the test program ... MA5: - Compiling the source files ... MA5: - Linking the test program ... MA5: - Checking that the test program is properly built ... MA5: - Cleaning the project after building the test program ... MA5: - Running the test program ... MA5: - Checking the program output... MA5: => Status: [OK] MA5: ** MA5: Component 2/11 - library: SampleAnalyzer commons MA5: - Cleaning the project before building the library ... MA5: - Compiling the source files ... MA5: - Linking the library ... MA5: - Checking that the library is properly built ... MA5: - Cleaning the project after building the library ... MA5: => Status: [OK] MA5: ** MA5: Component 3/11 - test program: SampleAnalyzer commons MA5: - Cleaning the project before building the test program ... MA5: - Compiling the source files ... MA5: - Linking the test program ... MA5: - Checking that the test program is properly built ... MA5: - Cleaning the project after building the test program ... MA5: - Running the test program ... MA5: - Checking the program output... MA5: => Status: [OK] MA5: ** MA5: Component 4/11 - library: interface to zlib MA5: - Cleaning the project before building the library ... MA5: - Compiling the source files ... MA5: - Linking the library ... MA5: - Checking that the library is properly built ... MA5: - Cleaning the project after building the library ... MA5: => Status: [OK] MA5: ** MA5: Component 5/11 - test program: interface to zlib MA5: - Cleaning the project before building the test program ... MA5: - Compiling the source files ... MA5: - Linking the test program ... MA5: - Checking that the test program is properly built ... MA5: - Cleaning the project after building the test program ... MA5: - Running the test program ... MA5: - Checking the program output... MA5: => Status: [OK] MA5: ** MA5: Component 6/11 - library: interface to FastJet MA5: - Cleaning the project before building the library ... MA5: - Compiling the source files ... MA5-ERROR: impossible to compile the project. For more details, see the log file: MA5-ERROR: /home/raghad/Downloads/madanalysis5-1.10.12/tools/SampleAnalyzer/Interfaces/compilation_fastjet.log MA5-ERROR: The library building aborted. raghad@raghad-IdeaPad-L3-15IML05:~/Downloads/madanalysis5-1.10.12$

Can you help?

Many thanks.

jackaraz commented 9 months ago

hi @RBadawi99 we need more information about the error you are getting, can you send the log file i.e. /home/raghad/Downloads/madanalysis5-1.10.12/tools/SampleAnalyzer/Interfaces/compilation_fastjet.log

RBadawi99 commented 9 months ago

compilation_fastjet.log Thank you for answering. Kindly see the file attached.

jackaraz commented 9 months ago

Hi @RBadawi99, it looks like you are using a fastjet that is not compiled with ma5 requirements. Have you installed fastjet through ma5 >v1.10?

RBadawi99 commented 8 months ago

Hello @jackaraz, I have only downloaded the from here https://github.com/MadAnalysis/madanalysis5/?tab=readme-ov-file and did not try any other source for its packages.

jackaraz commented 8 months ago

Hi @RBadawi99 I'm talking about FastJet not madanalysis. If you read the error that you are getting its not from madanalysis but the third party packages that you have.