You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.4 KiB

  1. FROM debian:buster-slim as yosys
  2. ## YOSYS ##
  3. # Get yosys dependencies
  4. RUN apt-get update -qq && \
  5. DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
  6. ca-certificates \
  7. gcc \
  8. make \
  9. bison \
  10. flex \
  11. libreadline-dev \
  12. gawk \
  13. tcl-dev \
  14. libffi-dev \
  15. graphviz \
  16. xdot \
  17. pkg-config \
  18. python3 \
  19. libboost-system-dev \
  20. libboost-python-dev \
  21. libboost-filesystem-dev \
  22. clang \
  23. git && \
  24. apt-get autoclean && apt-get clean && apt-get -y autoremove && \
  25. update-ca-certificates && \
  26. rm -rf /var/lib/apt/lists/* && \
  27. cd /root && \
  28. git clone https://github.com/YosysHQ/yosys.git yosys && \
  29. cd yosys && \
  30. make -j$(nproc) PREFIX=/opt/yosys && \
  31. make install PREFIX=/opt/yosys
  32. # SymbiYosys, Solvers
  33. FROM yosys AS symbiyosys
  34. RUN apt-get update -qq && \
  35. DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
  36. autoconf \
  37. gperf \
  38. cmake \
  39. curl \
  40. libgmp-dev && \
  41. apt-get autoclean && apt-get clean && apt-get -y autoremove && \
  42. rm -rf /var/lib/apt/lists/* && \
  43. cd /root && \
  44. git clone https://github.com/YosysHQ/SymbiYosys.git symbiyosys && \
  45. cd symbiyosys && \
  46. make install PREFIX=/opt/symbiyosys && \
  47. cd .. && \
  48. git clone https://github.com/Z3Prover/z3.git z3 && \
  49. cd z3 && \
  50. python scripts/mk_make.py && \
  51. cd build && \
  52. make -j$(nproc) PREFIX=/opt/z3 && \
  53. make install PREFIX=/opt/z3 && \
  54. cd /root && \
  55. git clone https://github.com/SRI-CSL/yices2.git yices2 && \
  56. cd yices2 && \
  57. autoconf && \
  58. ./configure --prefix=/opt/yices2 && \
  59. make -j$(nproc) && \
  60. make install && \
  61. cd /opt && \
  62. mkdir cvc4 && mkdir cvc4/bin && \
  63. curl -L -o cvc4/bin/cvc4 https://github.com/CVC4/CVC4/releases/download/1.7/cvc4-1.7-x86_64-linux-opt && \
  64. chmod +x cvc4/bin/cvc4 && \
  65. cd /root && \
  66. git clone https://github.com/boolector/boolector && \
  67. cd boolector && \
  68. ./contrib/setup-btor2tools.sh && \
  69. ./contrib/setup-lingeling.sh && \
  70. ./configure.sh && \
  71. make -C build -j$(nproc) PREFIX=/opt/boolector && \
  72. cd /root/boolector && \
  73. mkdir /opt/boolector && \
  74. mkdir /opt/boolector/bin && \
  75. cp build/bin/boolector /opt/boolector/bin/ && \
  76. cp build/bin/btor* /opt/boolector/bin/ && \
  77. cp deps/btor2tools/bin/btorsim /opt/boolector/bin/