ERROR: library building aborted

Asked by Waleed ABDALLAH

When I run ./bin/ma5, the following Error is appeared:

 *************************************************************
* *
* W E L C O M E to M A D A N A L Y S I S 5 *
* ______ ______ *
* /'\_/`\/\ __ \/\ ___\ *
* /\ \ \ \_\ \ \ \__/ *
* \ \ \__\ \ \ __ \ \___``\ *
* \ \ \_/\ \ \ \/\ \/\ \_\ \ *
* \ \_\\ \_\ \_\ \_\ \____/ *
* \/_/ \/_/\/_/\/_/\/___/ *
* *
* MA5 release : 1.1.8 2013/08/06 *
* *
* Comput. Phys. Commun. 184 (2013) 222-256 *
* *
* The MadAnalysis Development Team - Please visit us at *
* https://launchpad.net/madanalysis5 *
* *
* Type 'help' for in-line help. *
* *
*************************************************************
Checking mandatory packages:
     - python [OK]
     - python library: numpy [OK]
     - g++ [OK]
     - Root [OK]
     - PyRoot libraries [OK]
Checking optional packages:
     - gfortran [OK]
     - zlib library [DISABLED]
 ** WARNING: Library called 'libz' not found. Gzip format will be disabled.
 ** WARNING: To enable this format, please type 'install zlib' package.
     - delphes library [DISABLED]
 ** WARNING: Library called 'delphes' not found. Delphes ROOT format will be disabled.
 ** WARNING: To enable this format, please type 'install delphes'.
     - FastJet [OK]
     - pdflatex [OK]
     - latex [OK]
     - dvipdf [OK]
     - MCatNLO-utilities [DISABLED]
 ** WARNING: MCatNLO-utilities not found. Showering aMCatNLO events deactivated.
 ** WARNING: To install the utilities, please type 'install MCatNLO-utilities'.
Checking the MadAnalysis library:
  => First use of MadAnalysis (or the library is missing).
   Creating a 'Makefile'...
   Compiling the MadAnalysis library...
     => How many cores for the compiling? default = max = 4
     Answer:
     Number of cores used for the compilation = 4
 ** ERROR: errors occured during compilation. For more details, see the file :
 ** ERROR: /home/waleed/HEP/toolbox-1.2.2/MadGraph5_v1_5_12/madanalysis5/tools/SampleAnalyzer/compilation.log
 ** ERROR: library building aborted.

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Waleed ABDALLAH
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi,

Could you please attach the compilation.log file?

Cheers,

Benjamin

Revision history for this message
Waleed ABDALLAH (wabdallah) said :
#2

Thanks a lot, my problem was solved.

Thanks

Best Regards

Waleed

On Mon, Jan 20, 2014 at 5:51 PM, Benjamin Fuks <
<email address hidden>> wrote:

> Your question #242417 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/242417
>
> Status: Open => Needs information
>
> Benjamin Fuks requested more information:
> Hi,
>
> Could you please attach the compilation.log file?
>
> Cheers,
>
> Benjamin
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/madanalysis5/+question/242417
>
> You received this question notification because you asked the question.
>

Revision history for this message
Waleed ABDALLAH (wabdallah) said :
#3

Thanks

Waleed

Revision history for this message
Harikrishnan Ramani (harikrishramani) said :
#4

Hi, I have the same problem? Could you tell me how to solve it?
Hari

Revision history for this message
Benjamin Fuks (fuks) said :
#5

Hi

Yes, by inspecting the log files which provide more information. This will allow you to understand why the code is not working.

Cheers,

Benjamin

Revision history for this message
Harikrishnan Ramani (harikrishramani) said :
#6

Thank you for your quick response. This is my compilation.log file
I am not able to decipher what the problem is.

Sincerely
Harikrishnan

c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Analyzer/AnalyzerManager.o Analyzer/AnalyzerManager.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Analyzer/MergingPlots.o Analyzer/MergingPlots.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Core/Configuration.o Core/Configuration.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Core/ProgressBar.o Core/ProgressBar.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Core/SampleAnalyzer.o Core/SampleAnalyzer.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Core/castorstream.o Core/castorstream.cpp
Analyzer/AnalyzerManager.cpp:54:8: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
  if (n<0 || n>=Objects_.size())
      ~^~
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Core/gz_streambase.o Core/gz_streambase.cpp
1 warning generated.
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Core/xdr_istream.o Core/xdr_istream.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Counter/CounterManager.o Counter/CounterManager.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o DataFormat/PdgDataFormat.o DataFormat/PdgDataFormat.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o DataFormat/PdgTable.o DataFormat/PdgTable.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Detector/DetectorDelphes.o Detector/DetectorDelphes.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Detector/DetectorManager.o Detector/DetectorManager.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Filter/FilterManager.o Filter/FilterManager.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/JetClustererManager.o JetClustering/JetClustererManager.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/JetClusteringCDFJetClu.o JetClustering/JetClusteringCDFJetClu.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/JetClusteringCDFMidpoint.o JetClustering/JetClusteringCDFMidpoint.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/JetClusteringFastJet.o JetClustering/JetClusteringFastJet.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/JetClusteringGridJet.o JetClustering/JetClusteringGridJet.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/JetClusteringSISCone.o JetClustering/JetClusteringSISCone.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/JetClusteringStandard.o JetClustering/JetClusteringStandard.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/TaggerBase.o JetClustering/TaggerBase.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/TauTagger.o JetClustering/TauTagger.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/bTagger.o JetClustering/bTagger.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o JetClustering/cTagger.o JetClustering/cTagger.cpp
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/Users/harikrishnan/Downloads/root/include -I./../ -DZIP_USE -DFASTJET_USE -I/usr/local/include -c -o Plot/Histo.o Plot/Histo.cpp
JetClustering/TauTagger.cpp:136:33: error: calling a private constructor of class 'std::__1::__wrap_iter<MA5::RecJetFormat *>'
    myEvent.rec()->jets().erase((std::vector<RecJetFormat>::iterator) Candidates[i-1]);
                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1187:31: note: declared private here
    _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
                              ^
JetClustering/TauTagger.cpp:219:33: error: calling a private constructor of class 'std::__1::__wrap_iter<MA5::RecJetFormat *>'
    myEvent.rec()->jets().erase((std::vector<RecJetFormat>::iterator) Taus[j-1]);
                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1187:31: note: declared private here
    _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
                              ^
2 errors generated.
make: *** [JetClustering/TauTagger.o] Error 1
make: *** Waiting for unfinished jobs....

Revision history for this message
Benjamin Fuks (fuks) said :
#7

Hi,

Could you please provide more information on your system? Have you by chance tried with v1.1.10beta?

Cheers,

Benjamin

Revision history for this message
Harikrishnan Ramani (harikrishramani) said :
#8

Hi,
This is a Mac OS X Maverix.
Relevant softwares needed:
PYTHON:
Python 2.7.5
g++
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Root-config version
5.34/14
Root-config --has-python
Yes

I use the main MA5 download from the launchpad webpage.

Harikrishnan

Revision history for this message
Benjamin Fuks (fuks) said :
#9

Hi,

Please move to version 1.1.10. This is the version compatible with Maverick.

Cheers,

Benjamin