The-OpenROAD-Project / OpenSTA

OpenSTA engine
GNU General Public License v3.0
386 stars 167 forks source link

Compilation error - const convert #236

Open aviadb opened 3 months ago

aviadb commented 3 months ago

Hello, I am facing a compilation error with the latest from git

-- STA git sha: 95276f87311b63092b8502832f24f784cc516128 -- System name: Linux -- Compiler: GNU 14.0.1 -- Build type: RELEASE -- Build CXX_FLAGS: -O3 -DNDEBUG

OpenSTA/dcalc/CcsCeffDelayCalc.cc: In member function ‘virtual sta::ArcDcalcResult sta::CcsCeffDelayCalc::gateDelay(const sta::Pin*, const sta::TimingArc*, const sta::Slew&, float, const sta::Parasitic*, const sta::LoadPinIndexMap&, const sta::DcalcAnalysisPt*)’:
OpenSTA/dcalc/CcsCeffDelayCalc.cc:90:14: error: cannot convert ‘const sta::Slew’ {aka ‘const sta::Delay’} to ‘double’ in assignment
   90 |   in_slew_ = in_slew;
      |              ^~~~~~~
      |              |
      |              const sta::Slew {aka const sta::Delay}
jjcherry56 commented 2 months ago

This is fixed in the official OpenSTA repo https://github.com/parallaxsw/OpenSTA.git by commit 057a5dd2 compile warnings