Skip to content

LEC check - #3728

Merged
maliberty merged 26 commits into
The-OpenROAD-Project:masterfrom
keplertech:signoff-single-commit
Jan 25, 2026
Merged

maliberty merged 26 commits into
The-OpenROAD-Project:masterfrom
keplertech:signoff-single-commit

Conversation

@nanocoh

@nanocoh nanocoh commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@nanocoh

nanocoh commented Dec 25, 2025 via email

Copy link
Copy Markdown
Contributor Author

@nanocoh
nanocoh force-pushed the signoff-single-commit branch from 31e6352 to 594eb4c Compare December 28, 2025 00:55
Noam Cohen and others added 2 commits December 28, 2025 01:57
@maliberty

Copy link
Copy Markdown
Member

I installed the dependencies but build.sh fails with:

-- Installing: /usr/local/lib/libyosys_liberty.a
CMake Error at thirdparty/naja/thirdparty/yosys-liberty/src/cmake_install.cmake:46 (file):
  file INSTALL cannot copy file
  "/workspace/w7/tools/kepler-formal/build/thirdparty/naja/thirdparty/yosys-liberty/src/libyosys_liberty.a"
  to "/usr/local/lib/libyosys_liberty.a": Permission denied.
Call Stack (most recent call first):
  thirdparty/naja/thirdparty/yosys-liberty/cmake_install.cmake:47 (include)
  thirdparty/naja/thirdparty/cmake_install.cmake:47 (include)
  thirdparty/naja/cmake_install.cmake:47 (include)
  thirdparty/cmake_install.cmake:47 (include)
  cmake_install.cmake:52 (include)

You should not be installing into /usr/local

@maliberty

Copy link
Copy Markdown
Member

Please see INSTALL_PATH in build_openroad.sh.

@nanocoh
nanocoh force-pushed the signoff-single-commit branch from acb2957 to fd4e419 Compare December 30, 2025 00:37
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
@nanocoh

nanocoh commented Dec 30, 2025 •

Copy link
Copy Markdown
Contributor Author

Hi @maliberty ,

"I installed the dependencies but build.sh fails with:

-- Installing: /usr/local/lib/libyosys_liberty.a
CMake Error at thirdparty/naja/thirdparty/yosys-liberty/src/cmake_install.cmake:46 (file):
file INSTALL cannot copy file
"/workspace/w7/tools/kepler-formal/build/thirdparty/naja/thirdparty/yosys-liberty/src/libyosys_liberty.a"
to "/usr/local/lib/libyosys_liberty.a": Permission denied.
Call Stack (most recent call first):
thirdparty/naja/thirdparty/yosys-liberty/cmake_install.cmake:47 (include)
thirdparty/naja/thirdparty/cmake_install.cmake:47 (include)
thirdparty/naja/cmake_install.cmake:47 (include)
thirdparty/cmake_install.cmake:47 (include)
cmake_install.cmake:52 (include)
You should not be installing into /usr/local
Please see INSTALL_PATH in build_openroad.sh."

Can you check again with the last commit? I have used INSTALL_PATH for the installation as you instructed.

Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
@maliberty

Copy link
Copy Markdown
Member

It installs but now I see:

kepler-formal 
kepler-formal: error while loading shared libraries: libnaja_python.so: cannot open shared object file: No such file or directory

env.sh doesn't setup the path to find the .so. Fwiw it is typically easier if you just statically link the binary and side step this.

@maliberty

Copy link
Copy Markdown
Member

I manually fixed the above and ran make LEC=1 but it fails

Error: cts.tcl, 83 0
child process exited abnormally

That's because in run_lec_test you do the equivalent of:

% grep -c "Found difference" logs/nangate45/gcd/base/4_lec_check.log 
0
% echo $?
1

gemini suggests

  try {
    set count [exec grep -c "Found difference" $::env(LOG_DIR)/4_lec_check.log]
  } trap CHILDSTATUS {results options} {
    # This block executes if grep returns a non-zero exit code
    set count 0
  }

instead

@maliberty

Copy link
Copy Markdown
Member

I don't know why the eqy code is in load.tcl but I think it is time to split out a lec.tcl for lec & eqy.

noam cohen added 6 commits December 30, 2025 16:24
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: nanocoh <noam.chn1@gmail.com>
@nanocoh

nanocoh commented Dec 30, 2025 •

Copy link
Copy Markdown
Contributor Author

For this comment:

I manually fixed the above and ran make LEC=1 but it fails

Error: cts.tcl, 83 0
child process exited abnormally

That's because in run_lec_test you do the equivalent of:

% grep -c "Found difference" logs/nangate45/gcd/base/4_lec_check.log 
0
% echo $?
1

gemini suggests

  try {
    set count [exec grep -c "Found difference" $::env(LOG_DIR)/4_lec_check.log]
  } trap CHILDSTATUS {results options} {
    # This block executes if grep returns a non-zero exit code
    set count 0
  }

instead

I done it intentionally in order to fail the compile in case let_check is failing. I followed the same process as the eqy test that s already there. do you prefer for it to pass in case the lec test find changes?

@nanocoh

nanocoh commented Dec 30, 2025 •

Copy link
Copy Markdown
Contributor Author

I don't know why the eqy code is in load.tcl but I think it is time to split out a lec.tcl for lec & eqy.

You are completely right. I done it as I saw the eqy test there but better to separate. done with latest commits in this pr.

This change will also allow to use it in the general case.

@nanocoh

nanocoh commented Dec 30, 2025

Copy link
Copy Markdown
Contributor Author

It installs but now I see:

kepler-formal 
kepler-formal: error while loading shared libraries: libnaja_python.so: cannot open shared object file: No such file or directory

env.sh doesn't setup the path to find the .so. Fwiw it is typically easier if you just statically link the binary and side step this.

Are you sure you are using the update bin under install or the one that might have been previously installed in /usr/lib before the fixes?

@maliberty

Copy link
Copy Markdown
Member

| Are you sure you are using the update bin under install or the one that might have been previously installed in /usr/lib before the fixes?

I don't have write to /usr/lib. It is the current one:

% ldd /workspace/w7/tools/install/kepler-formal/bin/kepler-formal |grep naja
	libnaja_python.so => /workspace/w7/tools/install/kepler-formal/lib/libnaja_python.so (0x00007f8643e74000)

@maliberty

Copy link
Copy Markdown
Member

lec is not failing when errors=0 so why should the flow fail?

noam cohen added 4 commits December 30, 2025 19:09
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: nanocoh <noam.chn1@gmail.com>
Signed-off-by: nanocoh <noam.chn1@gmail.com>
noam cohen and others added 3 commits December 31, 2025 00:54
Signed-off-by: nanocoh <noam.chn1@gmail.com>
Signed-off-by: nanocoh <noam.chn1@gmail.com>
@nanocoh
nanocoh force-pushed the signoff-single-commit branch from d11115f to d28aa1a Compare January 5, 2026 23:19
Noam Cohen and others added 2 commits January 6, 2026 00:22
noam cohen added 2 commits January 8, 2026 16:27
Signed-off-by: Noam Cohen <noam.chn1@gmail.com>
Signed-off-by: nanocoh <noam.chn1@gmail.com>
@maliberty

Copy link
Copy Markdown
Member

You need to run tclfmt on flow/scripts/lec_check.tcl

Noam Cohen and others added 2 commits January 20, 2026 18:02
@nanocoh

nanocoh commented Jan 20, 2026

Copy link
Copy Markdown
Contributor Author

You need to run tclfmt on flow/scripts/lec_check.tcl

done

@nanocoh
nanocoh force-pushed the signoff-single-commit branch from f84a185 to 1d047ac Compare January 21, 2026 21:47
Signed-off-by: nanocoh <noam.chn1@gmail.com>
@maliberty
maliberty merged commit e5b2215 into The-OpenROAD-Project:master Jan 25, 2026
5 checks passed
@povik

povik commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

I'm happy to see this landing. We need to do something about the options as both "EQUIVALENCE_CHECK" and "LEC_CHECK" now enable a LEC check using different tools.

@maliberty

Copy link
Copy Markdown
Member

I plan to migrate over in another pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants