# Makefile compile time difference between slc5 and 6

**URL:** <https://root-forum.cern.ch/t/makefile-compile-time-difference-between-slc5-and-6/16564>\
**Category:** ROOT\
**Created:** [August 26, 2013, 9:58am UTC](https://root-forum.cern.ch/t/makefile-compile-time-difference-between-slc5-and-6/16564 "2013-08-26T09:58:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kalliopi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kalliopi](https://root-forum.cern.ch/u/kalliopi)\
**Post date:** [August 26, 2013, 9:58am UTC](https://root-forum.cern.ch/t/makefile-compile-time-difference-between-slc5-and-6/16564/1 "2013-08-26T09:58:44Z")

</div>

Lately, I face a problem when I compile the same code using the same Makefile in slc5 and slc6 enviroment. In slc5 it takes only a few seconds whereas in slc6 it takes ~40minutes!

The Makefile is:

SOURCES = isEM/VertexPositionReweightingTool.cxx Jets/GSC.cxx Jets/NPVBeamspotCorrection.cxx Jets/ApplyJetCalibration.cxx MuonEfficiencyCorrections/LeptonTriggerSF.cxx isEM/egammaEnergyCorrectionTool.h isEM/TResult.cxx isEM/TElectronEfficiencyCorrectionTool.cxx isEM/MultiLeptonMenu.cxx PileupReweighting/TPileupReweighting.cxx GetElicityAngles.cxx isEM/CaloIsoCorrection.cxx MuonMomentumCorrections/SmearingClass.cxx MuonEfficiencyCorrections/fineEtaPhiBinning.cxx MuonEfficiencyCorrections/EtaPhiBinning.cxx MuonEfficiencyCorrections/AnalysisMuonConfigurableScaleFactors.cxx isEM/TAccept.cxx isEM/TElectronLikelihoodTool.cxx isEM/TElectronIsEMSelector.cxx e2mu2.C

HEADERS = isEM/VertexPositionReweightingTool.h Jets/GSC.h Jets/NPVBeamspotCorrection.h Jets/ApplyJetCalibration.h MuonEfficiencyCorrections/LeptonTriggerSF.h isEM/PATCoreEnums.h isEM/egammaEnergyCorrectionTool.h isEM/TCalculatorToolBase.h isEM/TResult.h isEM/TElectronEfficiencyCorrectionTool.h isEM/MultiLeptonMenu.h PileupReweighting/TPileupReweighting.h GetElicityAngles.h isEM/CaloIsoCorrection.h MuonMomentumCorrections/SmearingClass.h MuonEfficiencyCorrections/fineEtaPhiBinning.h MuonEfficiencyCorrections/EtaPhiBinning.h MuonEfficiencyCorrections/AnalysisMuonConfigurableScaleFactors.h isEM/TAccept.h isEM/TCalculatorToolBase.h isEM/TSelectorToolBase.h isEM/TElectronLikelihoodTool.h isEM/FakeMsgStreamAndSC.h isEM/EMAmbiguityToolDefs.h isEM/egammaPIDdefs.h isEM/TElectronIsEMSelector.h e2mu2.h

FLAGS = -O -Wall -fPIC `root-config --cflags` `root-config --ldflags`  
LIBS = `root-config --libs` -lTreePlayer -lMinuit  
GLIBS = `root-config --glibs`  
INC = -I`root-config --incdir`

# suffix rule

.cc.o:  
g++ -c $(CXXFLAGS) $(GDBFLAGS) $\<

# define the final target

all: [libanal.so](http://libanal.so)

Dictionary.cxx: $(HEADERS) LinkDef.h  
rootcint -f $@ -c -g $^

[libanal.so](http://libanal.so): Dictionary.cxx $(SOURCES)  
g++ -shared -o $@ $(FLAGS) $(LIBS) $(GLIBS) -g $(INC) $^

clean:  
rm -f Dictionary.\* [libanal.so](http://libanal.so) \*~

I work on the lxplus and I use as setup the “ATLASLocalRootBase”.

Could you please help me make it faster on slc6?

---

_[View the full topic](https://root-forum.cern.ch/t/makefile-compile-time-difference-between-slc5-and-6/16564)._
