Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaejunllee opened this issue Aug 28, 2024 · 14 comments
Open

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

jaejunllee opened this issue Aug 28, 2024 · 14 comments
Assignees

Comments

@jaejunllee
Copy link

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
Copy link
Member

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

@vvbandeira
Copy link
Member

@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

@vvbandeira vvbandeira self-assigned this Aug 28, 2024
@jaejunllee
Copy link
Author

jaejunllee commented Aug 29, 2024

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
Copy link
Author

jaejunllee commented Aug 29, 2024

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
Copy link
Author

jaejunllee commented Aug 29, 2024

@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
Copy link
Member

Can you just clone a new area?

@jaejunllee
Copy link
Author

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

@maliberty
Copy link
Member

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

@jaejunllee
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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

@maliberty
Copy link
Member

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

@jaejunllee
Copy link
Author

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
Copy link
Member

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.

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

No branches or pull requests

3 participants