@@ -21,45 +21,39 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
21
21
The GNU Make needs to be version 3.81 or higher.
22
22
On Debian-like distributions, do
23
23
```
24
- apt-get install g++ gcc flex bison make git libwww-perl patch openjdk-7-jdk
24
+ apt-get install g++ gcc flex bison make git libwww-perl patch
25
25
```
26
26
On Red Hat/Fedora or derivates, do
27
27
```
28
- yum install gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6 java-1.7.0-openjdk-devel
28
+ yum install gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6
29
29
```
30
30
Note that you need g++ version 5.0 or newer.
31
31
32
32
To compile JBMC, you additionally need the JDK and the java-models-library.
33
-
34
33
For the JDK, on Debian-like distributions, do
35
34
```
36
- apt-get install openjdk-7 -jdk
35
+ apt-get install openjdk-8 -jdk
37
36
```
38
37
On Red Hat/Fedora or derivates, do
39
38
```
40
- yum install java-1.7.0-openjdk-devel
41
- ```
42
- For the models library, do
43
- ```
44
- make -C jbmc/src java-models-library-download
39
+ yum install java-1.8.0-openjdk-devel
45
40
```
46
41
47
42
2 . As a user, get the CBMC source via
48
43
```
49
44
git clone https://github.com/diffblue/cbmc cbmc-git
50
45
```
46
+
51
47
3 . On Debian or Ubuntu, do
52
48
```
53
- cd cbmc-git/src
54
- make minisat2-download
55
- make
49
+ make -C cbmc-git/src minisat2-download
50
+ make -C cbmc-git/src
56
51
```
57
52
On Redhat/Fedora etc., do
58
53
```
59
- cd cbmc-git/src
60
- make minisat2-download
61
54
scl enable devtoolset-6 bash
62
- make
55
+ make -C cbmc-git/src minisat2-download
56
+ make -C cbmc-git/src
63
57
```
64
58
65
59
4 . Linking against an IPASIR SAT solver
@@ -75,6 +69,12 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
75
69
make -C src IPASIR=../../ipasir LIBSOLVER=$(pwd)/ipasir/libipasir.a
76
70
```
77
71
72
+ 5 . To compile JBMC, do
73
+ ```
74
+ make -C cbmc-git/jbmc/src java-models-library-download
75
+ make -C cbmc-git/jbmc/src
76
+ ```
77
+
78
78
# COMPILATION ON SOLARIS 11
79
79
80
80
1 . As root, get the necessary development tools:
@@ -88,42 +88,40 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
88
88
export PATH=/opt/csw/bin:$PATH
89
89
git clone https://github.com/diffblue/cbmc cbmc-git
90
90
```
91
- 3 . Get MiniSat2 by entering
92
- ```
93
- cd cbmc-git/src
94
- gmake minisat2-download DOWNLOADER=wget TAR=gtar
95
- ```
96
- 4 . To compile, type
91
+ 3 . To compile CBMC, type
97
92
```
98
- gmake
93
+ gmake -C cbmc-git/src minisat2-download DOWNLOADER=wget TAR=gtar
94
+ gmake -C cbmc-git/src
99
95
```
100
- That should do it . To run, you will need
96
+ 4 . To compile JBMC, type
101
97
```
102
- export LD_LIBRARY_PATH=/usr/gcc/5.0/lib
98
+ gmake -C cbmc-git/jbmc/src java-models-library-download
99
+ gmake -C cbmc-git/jbmc/src
103
100
```
104
101
105
102
# COMPILATION ON FREEBSD 11
106
103
107
104
1 . As root, get the necessary tools:
108
105
```
109
- pkg install bash gmake git www/p5-libwww patch flex bison openjdk
106
+ pkg install bash gmake git www/p5-libwww patch flex bison
110
107
```
111
108
To compile JBMC, additionally install
112
109
```
113
- pkg install openjdk
110
+ pkg install openjdk8 wget
114
111
```
115
- 2 . As a user, get the CBMC source via
112
+ 2 . As a user, get the CBMC source via
116
113
```
117
114
git clone https://github.com/diffblue/cbmc cbmc-git
118
115
```
119
- 3 . Do
116
+ 3 . To compile CBMC, do
120
117
```
121
- cd cbmc-git/src
118
+ gmake -C cbmc-git/src minisat2-download
119
+ gmake -C cbmc-git/src
122
120
```
123
- 4 . Do
121
+ 4 . To compile JBMC, do
124
122
```
125
- gmake minisat2 -download
126
- gmake
123
+ gmake -C cbmc-git/jbmc/src java-models-library -download
124
+ gmake -C cbmc-git/jbmc/src
127
125
```
128
126
129
127
# COMPILATION ON MACOS X
@@ -140,11 +138,15 @@ Follow these instructions:
140
138
```
141
139
git clone https://github.com/diffblue/cbmc cbmc-git
142
140
```
143
- 3 . Then type
141
+ 3 . To compile CBMC, do
142
+ ```
143
+ make -C cbmc-git/src minisat2-download
144
+ make -C cbmc-git/src
145
+ ```
146
+ 4 . To compile JBMC, do
144
147
```
145
- cd cbmc-git/src
146
- make minisat2-download
147
- make
148
+ make -C cbmc-git/jbmc/src java-models-library-download
149
+ make -C cbmc-git/jbmc/src
148
150
```
149
151
150
152
# COMPILATION ON WINDOWS
@@ -180,9 +182,8 @@ Follow these instructions:
180
182
Then start the Cygwin shell.
181
183
4. In the Cygwin shell, type
182
184
```
183
- cd cbmc-git/src
184
- make DOWNLOADER=wget minisat2-download
185
- make
185
+ make -C cbmc-git/src DOWNLOADER=wget minisat2-download
186
+ make -C cbmc-git/src
186
187
```
187
188
188
189
(Optional) A Visual Studio project file can be generated with the script
0 commit comments