Makefile compile time difference between slc5 and 6

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 = -Iroot-config --incdir

suffix rule

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

define the final target

all: libanal.so

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

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

clean:
rm -f Dictionary.* libanal.so *~

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

Could you please help me make it faster on slc6?

Hi,

We have not seen such large differences. There might be some issue with your hardware and/or network connection.

Cheers,
Philippe.