The-OpenROAD-Project / OpenROAD-flow-scripts

OpenROAD's scripts implementing an RTL-to-GDS Flow. Documentation at https://openroad-flow-scripts.readthedocs.io/en/latest/
https://theopenroadproject.org/
Other
313 stars 274 forks source link

Error: 'abc' is not configured as a git submodule. #2298

Open jaejunllee opened 2 weeks ago

jaejunllee commented 2 weeks ago

Subject

[Flow] for any util, flow Makefile, or flow script issues.

Describe the bug

When executing build_openroad.sh in a centos7.4 Linux environment, the following error message occurs. Error : 'abc' is not configured as a git submodule. build_openroad error

Expected Behavior

I would like to know how to fix the error I shared.

Environment

Unknown git commit, this is not a git repository.

please make sure that you have the latest code changed and add the commit hash in the description.

kernel: Linux 3.10.0-693.el7.x86_64
os : Red Hat Enterprise Linux Server 7.4 (Maipo)
cmake version 2.8.12.2
Cmake Error : The source directory ~~~

To Reproduce

When executing build_openroad.sh in a centos7.4 Linux environment, the following error message occurs. Error : 'abc' is not configured as a git submodule.

Relevant log output

No response

Screenshots

No response

Additional Context

No response

maliberty commented 2 weeks ago

What steps did you do before running the build script. This seems to be a git error and nothing platform specific.

vvbandeira commented 2 weeks ago

@jaejunllee You are likely updating your local clone from an old version of ORFS. A couple of weeks back, Yosys changed the way they handle abc. To fix this try:

cd tools/yosys
git clean -xdf
git submodule sync
git submodule update --init --recursive
jaejunllee commented 2 weeks ago

What steps did you do before running the build script. This seems to be a git error and nothing platform specific.

@maliberty Before running the script, I performed the following steps git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts cd OpenROAD-flow-scripts sudo ./setup.sh

jaejunllee commented 2 weeks ago

You are likely updating your local clone from an old version of ORFS. A couple of weeks back, Yosys changed the way they handle abc. To fix this try:

cd tools/yosys
git clean -xdf
git submodule sync
git submodule update --init --recursive

@vvbandeira Thank you for your answer. I tried the method you suggested, but I get the same error....

jaejunllee commented 2 weeks ago

@vvbandeira I have additional questions. If you go to the path below, you will see that the "abc" file has been changed to "abc @ 28d955c" https://github.com/The-OpenROAD-Project/yosys

Could the name change be causing the problem?

maliberty commented 2 weeks ago

Can you just clone a new area?

jaejunllee commented 2 weeks ago

I didn't understand what you said, could you explain it to me in more detail?

maliberty commented 2 weeks ago

Just clone ORFS again in a new area as if for the first time.

jaejunllee commented 2 weeks ago

I tried again after cloning ORFS to a new region from scratch. However, I keep getting the error I shared before...

Error : 'abc' is not configured as a git submodule.

vvbandeira commented 2 weeks ago

If you go to the path below, you will see that the "abc" file has been changed to "abc @ 28d955c"

This is just a GH notation to indicate that abc is a submodule and it is pointing to the commit hash 28d955c of that repo.

Another thing that I found odd is the Unknown git commit, this is not a git repository. from your Env.sh run. Where did you run the command?

jaejunllee commented 2 weeks ago

I run the command on the "/home/jjunjun/OpenROAD-flow-scripts/"

maliberty commented 2 weeks ago

Please give the exact sequence of commands you are giving from nothing to failure.

jaejunllee commented 2 weeks ago

Start at the following path : /home/jjunjun/

  1. git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts
  2. cd OpenROAD-flow-scripts
  3. sudo ./setup.sh (dir: home/jjunjun/OpenROAD-flow-scripts
  4. ./build_openroad.sh --local

Please let me know if you need any further information

maliberty commented 1 week ago

I did these steps without error. Please try it in a fresh directory as I think you may have an older result that is interfering. Note that we don't build or test on Centos7 anymore as it is EOL.