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

depenndency installer failing #146

Closed
vijayank88 opened this issue Sep 2, 2021 · 4 comments
Closed

depenndency installer failing #146

vijayank88 opened this issue Sep 2, 2021 · 4 comments
Assignees

Comments

@vijayank88
Copy link
Contributor

vijayank88 commented Sep 2, 2021

I am trying to install open road flow locally. Trying to install dependencies for Centos7 with below command:
sudo ./etc/DependencyInstaller.sh -run
Got below error message:
No packages marked for update
Loaded plugins: fastestmirror, langpacks
epel-release-latest-7.noarch.rpm | 15 kB 00:00:00
Examining /var/tmp/yum-root-jUgMLP/epel-release-latest-7.noarch.rpm: epel-release-7-13.noarch
/var/tmp/yum-root-jUgMLP/epel-release-latest-7.noarch.rpm: does not update installed package.
Error: Nothing to do

Looking for solution to fix above error.

uname -a: Linux hp11 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

OpenROAD ./etch/Build.sh throwing below erros:
[vijayan@ctpl-hp11 OpenROAD]$ sudo ./etc/Build.sh
-- The CXX compiler identification is GNU 4.8.5
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OpenROAD version: 1
-- OpenROAD git sha: ad04cdd
-- System name: Linux
-- Compiler: GNU 4.8.5
-- Build type: RELEASE
-- Install prefix: /usr/local
-- TCL library: /usr/lib64/libtcl.so
-- TCL header: /usr/include/tcl.h
-- TCL readline library: /usr/lib64/libtclreadline-2.1.0.so
-- TCL readline header: /usr/include
-- Found SWIG: /usr/bin/swig (found suitable version "3.0.12", minimum required is "3.0")
-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0")
-- Found Python3: /usr/include/python3.6m (found version "3.6.8") found components: Development Development.Module Development.Embed
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Looking for C++ include pthread.h
CMake Error in /home/vijayan/OPEN_ROAD_FLOW/Aug18_OpenROAD/OpenROAD/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
Target "cmTC_82058" requires the language dialect "CXX17" , but CMake does
not know the compile flags to use to enable it.

CMake Error at /usr/local/lib64/python3.6/site-packages/cmake/data/share/cmake-3.21/Modules/CheckIncludeFileCXX.cmake:94 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
/usr/local/lib64/python3.6/site-packages/cmake/data/share/cmake-3.21/Modules/FindThreads.cmake:148 (CHECK_INCLUDE_FILE_CXX)
/usr/local/lib64/cmake/spdlog/spdlogConfig.cmake:4 (find_package)
src/CMakeLists.txt:107 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/vijayan/OPEN_ROAD_FLOW/Aug18_OpenROAD/OpenROAD/build/CMakeFiles/CMakeOutput.log".

Already tried #632 The-OpenROAD-Project/OpenROAD#632 but not able to resolve the issue.
/usr/include/pthread.h already available.

@vvbandeira
Copy link
Member

Try to comment out the line that installs epel, looks like you already have it on your system. Then run the script again. Repeat if it complains about any other rpm package like these.

@vvbandeira vvbandeira self-assigned this Sep 2, 2021
@vijayank88
Copy link
Contributor Author

@vvbandeira thanks for the update, able to install all dev packages successfully.
I used #./build_openroad.sh --local after 94% completion of installation got below error:

[ 94%] ABC: `` Building binary: abc-341db25
make[1]: Leaving directory /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/yosys/abc' [100%] Building yosys-abc mkdir -p /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/yosys/bin cp yosys yosys-config yosys-abc yosys-filterlib yosys-smtbmc /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/yosys/bin strip -S /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/yosys/bin/yosys strip /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/yosys/bin/yosys-abc strip /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/yosys/bin/yosys-filterlib mkdir -p /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/yosys/share/yosys cp -r share/. /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/yosys/share/yosys/. make: Leaving directory /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/yosys'
-- The CXX compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OpenROAD version: 1
-- OpenROAD git sha: 4dca404
-- System name: Linux
-- Compiler: GNU 4.8.5
-- Build type: RELEASE
-- Install prefix: /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/install/OpenROAD
-- TCL library: /usr/lib64/libtcl.so
-- TCL header: /usr/include/tcl.h
-- TCL readline library: /usr/lib64/libtclreadline.so
-- TCL readline header: /usr/include
-- Found SWIG: /usr/bin/swig (found suitable version "4.0.1", minimum required is "3.0")
-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0")
-- Found Python3: /usr/lib64/libpython3.6m.so (found version "3.6.8") found components: Development
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Looking for C++ include pthread.h
CMake Error in /home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/OpenROAD/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
Target "cmTC_d1434" requires the language dialect "CXX17" , but CMake does
not know the compile flags to use to enable it.

CMake Error at /usr/share/cmake3/Modules/CheckIncludeFileCXX.cmake:92 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
/usr/share/cmake3/Modules/FindThreads.cmake:144 (CHECK_INCLUDE_FILE_CXX)
/usr/local/lib64/cmake/spdlog/spdlogConfig.cmake:4 (find_package)
src/CMakeLists.txt:107 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/vijayan/OPEN_ROAD_FLOW/ORFS_LOCALL/OpenROAD-flow-scripts/tools/OpenROAD/build/CMakeFiles/CMakeOutput.log".

@maliberty
Copy link
Member

This is an ancient version:
The CXX compiler identification is GNU 4.8.5

you'll need something more recent. You may need to do:

source scl_source enable devtoolset-8

before running cmake.

@vijayank88
Copy link
Contributor Author

@maliberty @vvbandeira thanks for the help. Installed successfully after few tweaking. Also below things can be updated in README.md helpful for new user if they install locally. (Optional Info user allowed to edit)
If user gets error message "Error: Nothing to do" skip those lines from ./etc/DependencyInstaller.sh and continue run.
source below files at the time of running installation.
source scl_source enable devtoolset-8
source scl_source enable llvm-toolset-7.0

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