-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: master
-
Fix Version/s: 6.20/00
-
Component/s: RooFit/RooStats
-
Labels:None
-
Environment:
OS: CentOS7
GCC: 8
env: CMSSW
One of CMSSW developers reported that CMSSW build fails if root master is build in Release mode ( -DCMAKE_BUILD_TYPE=Release) . while compiling https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/Utilities/src/SideBandSubtraction.cc
we get linking error.
gcc/x86_64-unknown-linux-gnu/8.3.1/../../../../x86_64-unknown-linux-gnu/bin/ld: tmp/slc7_amd64_gcc820/src/PhysicsTools/Utilities/src/PhysicsToolsUtilities/SideBandSubtraction.cc.o: in function `SideBandSubtract::doSubtraction(RooRealVar*, double, int)': |
SideBandSubtraction.cc:(.text+0x13b0): undefined reference to `RooAbsReal::getVal(RooArgSet const*) const' |
/data2/alja/bldgcc8/slc7_amd64_gcc820/external/gcc/8.2.0-pafccj/bin/../lib/gcc/x86_64-unknown-linux-gnu/8.3.1/../../../../x86_64-unknown-linux-gnu/bin/ld: SideBandSubtraction.cc:(.text+0x13c1): undefined reference to `RooAbsReal::getVal(RooArgSet const*) const' |
/data2/alja/bldgcc8/slc7_amd64_gcc820/external/gcc/8.2.0-pafccj/bin/../lib/gcc/x86_64-unknown-linux-gnu/8.3.1/../../../../x86_64-unknown-linux-gnu/bin/ld: tmp/slc7_amd64_gcc820/src/PhysicsTools/Utilities/src/PhysicsToolsUtilities/SideBandSubtraction.cc.o: in function `SideBandSubtract::getYield(std::vector<SbsRegion, std::allocator<SbsRegion> > const&, RooAbsPdf*)': |
SideBandSubtraction.cc:(.text+0x24f0): undefined reference to `RooAbsReal::getVal(RooArgSet const*) const' |
collect2: error: ld returned 1 exit status |
|