OpenROAD安装流程
运行环境:VMwear-15下的CentOS-7-x86_64-Everything-1611,SSH软件:Secure CRT登陆CentOS-7,方便复制命令。
总共需要安装三个包
一.yosys Dockerfile
二.OpenRoad App Dockerfile
三.TritonRoute Dockerfile
第一步安装yosys Dockerfile
#创建工作目录
1 cd home && \ 2 mkdir admin && \ 3 cd admin && \ 4 mkdir workspace && cd workspace
#安装gcc 7
1 yum -y install centos-release-scl && \ 2 yum -y install devtoolset-7 devtoolset-7-libatomic-devel
#安装python 3.6
1 yum -y install rh-python36
#安装yosys依赖
1 yum install -y flex tcl tcl-devel libffi-devel git graphviz readline-devel glibc-static wget autoconf zlib-devel && \ 2 wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz && \ 3 tar -xvzf bison-3.0.1.tar.gz && \ 4 cd bison-3.0.1 && \ 5 ./configure && \ 6 make -j$(nproc) && \ 7 make install
#复制到yosys文件夹
1 cp -r . /yosys 2 cd /yosys
#执行make
1 make PREFIX=/build config-gcc-static-tcl-dynamic
#出现错误
[root@localhost yosys]# make PREFIX=/build config-gcc-static-tcl-dynamic CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/admin/workspace1/bison-3.0.1/build-aux/missing aclocal-1.14 -I m4 /home/admin/workspace1/bison-3.0.1/build-aux/missing: line 81: aclocal-1.14: command not found WARNING: 'aclocal-1.14' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> make: *** [aclocal.m4] Error 127
#解决错误,涉及到一系列的软件包安装。
1 autoconf 2 automake 3 binutils 4 bison 5 flex 6 gcc 7 gcc-c++ 8 gettext 9 libtool 10 make 11 patch 12 pkgconfig
#单个安装太过麻烦,所以统一安装
1 yum group install "Development Tools"
#问题解决
autoreconf -ivf
cd . && /bin/sh /home/admin/workspace1/bison-3.0.1/build-aux/missing automake-1.14 --gnits /home/admin/workspace1/bison-3.0.1/build-aux/missing: line 81: automake-1.14: command not found WARNING: 'automake-1.14' is missing on your system. You should only need it if you modified 'Makefile.am' or 'configure.ac' or m4 files included by 'configure.ac'. The 'automake' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> make: *** [Makefile.in] Error 1
[root@localhost yosys]# automake --version automake (GNU automake) 1.13.4 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@redhat.com> and Alexandre Duret-Lutz <adl@gnu.org>.
#输入命令:wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz下载autoconf安装包
#解压缩automake-1.14.tar.gz ,输入命令:tar -zxvf automake-1.14.1.tar.gz -C /opt/
#进入解压缩后的目录automake-1.14,输入命令:cd /opt/automake-1.14
#输入命令:./bootstrap.sh
#配置编译环境,输入命令:./configure
#编译并安装automake,输入俩命令:make ; make install
#检查是否安装成功,输入命令:automake --version
[root@localhost automake-1.14]# automake --version automake (GNU automake) 1.14 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@redhat.com> and Alexandre Duret-Lutz <adl@gnu.org>.
[root@localhost yosys]# make PREFIX=/build config-gcc-static-tcl-dynamic cd . && /bin/sh /home/admin/workspace1/bison-3.0.1/build-aux/missing automake-1.14 --gnits configure.ac:44: error: version mismatch. This is Automake 1.14, configure.ac:44: but the definition used by this AM_INIT_AUTOMAKE configure.ac:44: comes from Automake 1.13.4. You should recreate configure.ac:44: aclocal.m4 with aclocal and run automake again. WARNING: 'automake-1.14' is probably too old. You should only need it if you modified 'Makefile.am' or 'configure.ac' or m4 files included by 'configure.ac'. The 'automake' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> make: *** [Makefile.in] Error 1