OpenROAD icon indicating copy to clipboard operation
OpenROAD copied to clipboard

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Open wjrforcyber opened this issue 2 years ago • 14 comments

I found this CMake error after I built (without #1922 (although I don't think they are relevant...))

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TCL_LIBRARY 
    linked by target "openroad" in directory /home/Github/OpenROAD/OpenROAD/src
    linked by target "odb" in directory /home/Github/OpenROAD/OpenROAD/src/odb/src/db
    linked by target "TestCallBacks" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestGeom" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestModule" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestLef58Properties" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestGuide" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestJournal" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestGroup" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestGCellGrid" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "TestAccessPoint" in directory /home/Github/OpenROAD/OpenROAD/src/odb/test/cpp
    linked by target "odbpy" in directory /home/Github/OpenROAD/OpenROAD/src/odb/src/swig/python
    linked by target "odbtcl" in directory /home/Github/OpenROAD/OpenROAD/src/odb/src/swig/tcl
    linked by target "sta" in directory /home/Github/OpenROAD/OpenROAD/src/sta
    linked by target "TestDistributed" in directory /home/Github/OpenROAD/OpenROAD/src/dst/test/cpp
    linked by target "TestBalancer" in directory /home/Github/OpenROAD/OpenROAD/src/dst/test/cpp
    linked by target "TestWorker" in directory /home/Github/OpenROAD/OpenROAD/src/dst/test/cpp

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

wjrforcyber avatar Aug 01 '22 09:08 wjrforcyber

@wjrforcyber I don't understand your issue? Please provide following:

  1. What command you're tried and facing this issue or instruction followed?
  2. OpenROAD version currently using?
  3. OS related

vijayank88 avatar Aug 01 '22 10:08 vijayank88

@wjrforcyber I don't understand your issue? Please provide following:

  1. What command you're tried and facing this issue or instruction followed?
  2. OpenROAD version currently using?
  3. OS related

Sorry, I haven't written issue for a long time, here is the information:

  1. I was following the readme and cloned master, in Build by hand section I tried cmake, and the error showed up.
  2. May I ask how could I get the version of OpenROAD?
  3. MacOs

wjrforcyber avatar Aug 01 '22 11:08 wjrforcyber

Is https://github.com/The-OpenROAD-Project/OpenROAD#install-dependencies installed? you've tried cmake .. right?

vijayank88 avatar Aug 01 '22 11:08 vijayank88

https://github.com/The-OpenROAD-Project/OpenROAD#install-dependencies

  1. Yes, dependencies are installed except the qt issue #1922 as I mentioned above.
  2. Yes, tried cmake ...

wjrforcyber avatar Aug 01 '22 11:08 wjrforcyber

Its a fresh installation or updating existing repo?

vijayank88 avatar Aug 01 '22 11:08 vijayank88

Its a fresh installation or updating existing repo?

Cloned last Friday.

wjrforcyber avatar Aug 01 '22 11:08 wjrforcyber

Try the following:

git checkout master
git pull
git submodule init
git submodule update
git submodule sync
git clean -xdi
mkdir build
cd build
cmake ..
make

vijayank88 avatar Aug 01 '22 11:08 vijayank88

@wjrforcyber I don't understand your issue? Please provide following:

  1. What command you're tried and facing this issue or instruction followed?
  2. OpenROAD version currently using?
  3. OS related

Sorry, I haven't written issue for a long time, here is the information:

  1. I was following the readme and cloned master, in Build by hand section I tried cmake, and the error showed up.
  2. May I ask how could I get the version of OpenROAD?
  3. MacOs

Sorry, about 3, I used it on ubuntu in docker. @vijayank88

wjrforcyber avatar Aug 01 '22 11:08 wjrforcyber

Try the following:

git checkout master
git pull
git submodule init
git submodule update
git submodule sync
git clean -xdi
mkdir build
cd build
cmake ..
make

Tried, still the same error. I found that there a similar one in the issue history, don't know how they dealt with it.

wjrforcyber avatar Aug 01 '22 11:08 wjrforcyber

May i know the reason for OpenROAD developement branch installation? If that ok, you can install https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts as stable flow.

vijayank88 avatar Aug 01 '22 11:08 vijayank88

https://github.com/The-OpenROAD-Project/OpenROAD#install-dependencies

1. Yes, dependencies are installed except the qt issue  [qt5-default package from DependencyInstaller.sh is deprecated #1922](https://github.com/The-OpenROAD-Project/OpenROAD/issues/1922) as I mentioned above.

2. Yes, tried `cmake ..`.

have you ran both?

    ./etc/DependencyInstaller.sh -run
       ./etc/DependencyInstaller.sh -dev

vijayank88 avatar Aug 01 '22 11:08 vijayank88

  

https://github.com/The-OpenROAD-Project/OpenROAD#install-dependencies

1. Yes, dependencies are installed except the qt issue  [qt5-default package from DependencyInstaller.sh is deprecated #1922](https://github.com/The-OpenROAD-Project/OpenROAD/issues/1922) as I mentioned above.

2. Yes, tried `cmake ..`.

have you ran both?

    ./etc/DependencyInstaller.sh -run
       ./etc/DependencyInstaller.sh -dev

Yes, the first one and the second one both showed the qt error, others are fine, I can even apt search tcllib and apt search tcl-dev and find them. Just for study, I may try OpenROAD-flow-scripts later.

wjrforcyber avatar Aug 01 '22 12:08 wjrforcyber

@wjrforcyber if you are using docker you can use openroad/ubuntu20-dev image which is validated to have all the dependencies to build/run the app.

If you are on macOS, which version of Cmake do you have? Also, setting the Tcl path can be tricky, did you install Tcl with brew? You can take a look at how we do for our CI here

vvbandeira avatar Aug 01 '22 15:08 vvbandeira

@wjrforcyber Are you able to resolve it now?

vijayank88 avatar Aug 09 '22 06:08 vijayank88

Closing as stale. Please re-open or file a new issue in case this is still relevant.

vvbandeira avatar Oct 03 '22 16:10 vvbandeira