https://open-source-silicon.dev logo
#openroad
Title
# openroad
v

Vijayan Krishnan

10/26/2021, 9:01 AM
I'm trying install OpenRoad flow script in Ubuntu 20.04 with docker based using git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts cd OpenROAD-flow-scripts ./build_openroad.sh but failed to complete. Any suggestion to fix it? Scanning dependencies of target lsoracle [ 91%] Building CXX object core/CMakeFiles/lsoracle.dir/lsoracle.cpp.o [ 94%] Building CXX object core/CMakeFiles/lsoracle.dir/kahypar_config.cpp.o [ 97%] Building CXX object core/CMakeFiles/lsoracle.dir/kahypar_temp_config.cpp.o In file included from /LSOracle/lib/alice/include/alice/cli.hpp:46, from /LSOracle/lib/alice/include/alice/api.hpp:42, from /LSOracle/lib/alice/include/alice/alice.hpp:36, from /LSOracle/core/lsoracle.cpp6 /LSOracle/lib/alice/include/alice/readline.hpp4710: fatal error: readline/history.h: No such file or directory #include <readline/history.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. gmake[2]: * [core/CMakeFiles/lsoracle.dir/build.make67 core/CMakeFiles/lsoracle.dir/lsoracle.cpp.o] Error 1 gmake[2]: * Waiting for unfinished jobs.... gmake[1]: * [CMakeFiles/Makefile21681 core/CMakeFiles/lsoracle.dir/all] Error 2 gmake: * [Makefile141 all] Error 2 The command '/bin/sh -c source /opt/rh/devtoolset-8/enable && cmake -B build -D CMAKE_BUILD_TYPE=RELEASE -D YOSYS_INCLUDE_DIR=/yosys -D YOSYS_PLUGIN=ON . && cmake --build build -j$(nproc)' returned a non-zero code: 2
m

Mitch Bailey

10/26/2021, 9:34 AM
@User Like it says, it can't find the
readline
header. I'd log an issue on the openroad github. They may need to add
readline
as a Isoracle dependency.
v

Vijayan Krishnan

10/26/2021, 9:54 AM
@User thanks. Is there workaround or shall i wait till next PR?
m

Mitch Bailey

10/26/2021, 10:26 AM
I'm not sure. You might try building locally, if that's an option. https://openroad.readthedocs.io/en/latest/user/BuildLocally.html
v

Vijayan Krishnan

10/26/2021, 10:46 AM
@User local install working fine. Want to install docker based as well for some testing purpose
v

Vitor Viana Bandeira

10/26/2021, 10:47 AM
The CI is passing and it works fine for me. You might have a dirty copy of the repo.
v

Vijayan Krishnan

10/26/2021, 10:48 AM
@User git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts using this to clone
v

Vitor Viana Bandeira

10/26/2021, 10:48 AM
To check:
Copy code
git status --ignored && git submodule foreach git status --ignored
To clean:
Copy code
git clean -xdi && git submodule foreach --recursive git clean -xdi
I just cloned as well, works fine
v

Vijayan Krishnan

10/26/2021, 10:52 AM
On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules) modified: tools/LSOracle (untracked content) modified: tools/OpenROAD (new commits)
v

Vitor Viana Bandeira

10/26/2021, 10:53 AM
Here's your problem:
modified:  tools/LSOracle (untracked content)
Docker will copy the dirty files you have on your local machine and try to build.
Run the command above to clean
v

Vijayan Krishnan

10/26/2021, 11:29 AM
@User after clean command On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean Entering 'tools/LSOracle' HEAD detached at cf0a0eb2 nothing to commit, working tree clean Entering 'tools/OpenROAD' HEAD detached at f864efbae nothing to commit, working tree clean Entering 'tools/yosys' HEAD detached at 014c7e26 nothing to commit, working tree clean Still got stopped with same error in the top. [ 97%] Building CXX object core/CMakeFiles/lsoracle.dir/kahypar_temp_config.cpp.o In file included from /LSOracle/lib/alice/include/alice/cli.hpp:46, from /LSOracle/lib/alice/include/alice/api.hpp:42, from /LSOracle/lib/alice/include/alice/alice.hpp:36, from /LSOracle/core/lsoracle.cpp6 /LSOracle/lib/alice/include/alice/readline.hpp4710: fatal error: readline/history.h: No such file or directory #include <readline/history.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. gmake[2]: * [core/CMakeFiles/lsoracle.dir/build.make67 core/CMakeFiles/lsoracle.dir/lsoracle.cpp.o] Error 1 gmake[2]: * Waiting for unfinished jobs.... gmake[1]: * [CMakeFiles/Makefile21681 core/CMakeFiles/lsoracle.dir/all] Error 2 gmake: * [Makefile141 all] Error 2
v

Vitor Viana Bandeira

10/26/2021, 11:40 AM
Try adding
--no-cache
to the lines 134 and 135 of
build_openroad.sh
that build the docker image. Other than that I don't know, and since I can't reproduce not sure how to debug.
v

Vijayan Krishnan

10/26/2021, 12:23 PM
same error repeats. filed a git hub issue. Thanks.
v

Vitor Viana Bandeira

10/26/2021, 12:26 PM
Yeah, I saw. I will be the one looking into it, but I am afraid there's nothing I can do until I can find a way to reproduce.
v

Vijayan Krishnan

10/26/2021, 12:40 PM
last month i tried with docker based installation. Later i locally installed and using it. I tried fresh installation with docker based and got struck. Its not blocking anyway i've local build. thanks @User let see any new user reports same take priority that time. Even Centos7 throws same error for me
m

Mitch Bailey

10/26/2021, 12:57 PM
@User Found this on google. Can you try
sudo apt-get install libreadline6 libreadline6-dev
before
build_openlane.sh
? There should be a
/usr/include/readline
directory.
v

Vijayan Krishnan

10/26/2021, 1:02 PM
its already exists in the path
m

Mitch Bailey

10/26/2021, 2:52 PM
@User Just to verify,
/usr/include/readline
exists inside your docker image?
17 Views