Error when compile the static library

Asked by teddym

when I first launch ma5, the program begin to compile the static library, and give such log file

c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Analyzer/AnalyzerManager.o Analyzer/AnalyzerManager.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Analyzer/MergingPlots.o Analyzer/MergingPlots.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Core/Configuration.o Core/Configuration.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Core/ProgressBar.o Core/ProgressBar.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Core/SampleAnalyzer.o Core/SampleAnalyzer.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -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 -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Core/gz_streambase.o Core/gz_streambase.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Core/xdr_istream.o Core/xdr_istream.cpp
1 warning generated.
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Counter/CounterManager.o Counter/CounterManager.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o DataFormat/PdgDataFormat.o DataFormat/PdgDataFormat.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o DataFormat/PdgTable.o DataFormat/PdgTable.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Detector/DetectorDelphes.o Detector/DetectorDelphes.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Detector/DetectorManager.o Detector/DetectorManager.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o Filter/FilterManager.o Filter/FilterManager.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/JetClustererManager.o JetClustering/JetClustererManager.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/JetClusteringCDFJetClu.o JetClustering/JetClusteringCDFJetClu.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/JetClusteringCDFMidpoint.o JetClustering/JetClusteringCDFMidpoint.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/JetClusteringFastJet.o JetClustering/JetClusteringFastJet.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/JetClusteringGridJet.o JetClustering/JetClusteringGridJet.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/JetClusteringSISCone.o JetClustering/JetClusteringSISCone.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/JetClusteringStandard.o JetClustering/JetClusteringStandard.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/TaggerBase.o JetClustering/TaggerBase.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/TauTagger.o JetClustering/TauTagger.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/bTagger.o JetClustering/bTagger.cpp
c++ -Wall -O3 -pthread -m64 -I/Users/ted/workingspace/root-v5-34-00-patches/include -I./../ -DZIP_USE -c -o JetClustering/cTagger.o JetClustering/cTagger.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....

I'm on OS X 10.9 gcc version 4.2.1 & 4.4.7
How can I solve this problem
I'm just update the os from 10.8 to 10.9
when i was in 10.8 I've used ma5 and there is no problem, but when I update to 10.9 the problem came

Question information

Language:
English Edit question
Status:
Answered
For:
MadAnalysis 5 Edit question
Assignee:
Benjamin Fuks Edit question
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Dear Teddy,

The problem indeed comes from macos who made a change in what are the standards for the standard c++ library. This will be fixed in v1.1.10.

Cheers,

Benjamin

Revision history for this message
teddym (niepanchongsheng) said :
#2

Hi Benjamin:
    Thanks for your answers! I've changed the compiler in macos, and now I could use it! Thanks!

    Further, I am looking forward to the new version of user manual . As the paper arXiv:1206.1599 [hep-ph] seems not cover all the new feature in the newer version of ma5. Thanks!

Best

Teddy

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

Hi Teddy,

This is fixed in v1.1.10 (our next release). You can download a working beta version here:
  https://code.launchpad.net/~ma5/madanalysis5/v1.1.10beta

Cheers,

Benjamin

Can you help with this problem?

Provide an answer of your own, or ask teddym for more information if necessary.

To post a message you must log in.