Skip to content

Commit 8e0f974

Browse files
authored
Merge pull request diffblue#1970 from tautschnig/java-bytecode-fixes
Java bytecode build fixes
2 parents edb8eeb + df1c7e3 commit 8e0f974

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

COMPILING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
2121
The GNU Make needs to be version 3.81 or higher.
2222
On Debian-like distributions, do
2323
```
24-
apt-get install g++ gcc flex bison make git libwww-perl patch
24+
apt-get install g++ gcc flex bison make git libwww-perl patch openjdk-7-jdk
2525
```
2626
On Red Hat/Fedora or derivates, do
2727
```
28-
yum install gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6
28+
yum install gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6 java-1.7.0-openjdk-devel
2929
```
3030
Note that you need g++ version 4.9 or newer.
3131
2. As a user, get the CBMC source via
@@ -91,7 +91,7 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
9191

9292
1. As root, get the necessary tools:
9393
```
94-
pkg install bash gmake git www/p5-libwww patch flex bison
94+
pkg install bash gmake git www/p5-libwww patch flex bison openjdk
9595
```
9696
2. As a user, get the CBMC source via
9797
```
@@ -186,11 +186,11 @@ require manual modification of build files.
186186
--version`. To install all build dependencies:
187187
- On Debian-like distributions, do
188188
```
189-
apt-get install cmake g++ gcc flex bison make git libwww-perl patch
189+
apt-get install cmake g++ gcc flex bison make git libwww-perl patch openjdk-7-jdk
190190
```
191191
- On Red Hat/Fedora or derivates, do
192192
```
193-
yum install cmake gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6
193+
yum install cmake gcc gcc-c++ flex bison perl-libwww-perl patch devtoolset-6 java-1.7.0-openjdk-devel
194194
```
195195
- On macOS, do
196196
```

scripts/perf-test/codebuild-glucose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Resources:
6666
- apt-get install -y software-properties-common
6767
- add-apt-repository ppa:ubuntu-toolchain-r/test
6868
- apt-get update -y
69-
- apt-get install -y libwww-perl g++-5 flex bison git
69+
- apt-get install -y libwww-perl g++-5 flex bison git openjdk-7-jdk
7070
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
7171
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
7272
build:
@@ -109,7 +109,7 @@ Resources:
109109
- apt-get install -y software-properties-common
110110
- add-apt-repository ppa:ubuntu-toolchain-r/test
111111
- apt-get update -y
112-
- apt-get install -y libwww-perl g++-5 flex bison git
112+
- apt-get install -y libwww-perl g++-5 flex bison git openjdk-7-jdk
113113
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
114114
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
115115
build:

scripts/perf-test/codebuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Resources:
6666
- apt-get install -y software-properties-common
6767
- add-apt-repository ppa:ubuntu-toolchain-r/test
6868
- apt-get update -y
69-
- apt-get install -y libwww-perl g++-5 flex bison git
69+
- apt-get install -y libwww-perl g++-5 flex bison git openjdk-7-jdk
7070
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
7171
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
7272
build:
@@ -108,7 +108,7 @@ Resources:
108108
- apt-get install -y software-properties-common
109109
- add-apt-repository ppa:ubuntu-toolchain-r/test
110110
- apt-get update -y
111-
- apt-get install -y libwww-perl g++-5 flex bison git
111+
- apt-get install -y libwww-perl g++-5 flex bison git openjdk-7-jdk
112112
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
113113
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
114114
build:

src/java_bytecode/java_bytecode_parse_tree.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Author: Daniel Kroening, [email protected]
1111
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_PARSE_TREE_H
1212

1313
#include <set>
14+
#include <map>
1415

1516
#include <util/optional.h>
1617
#include <util/std_code.h>

src/java_bytecode/java_enum_static_init_unwind_handler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Author: Chris Smowton, [email protected]
1111

1212
#include "java_enum_static_init_unwind_handler.h"
1313

14+
#include <util/invariant.h>
1415
#include <util/suffix.h>
1516

1617
/// Unwind handler that special-cases the clinit (static initializer) functions

0 commit comments

Comments
 (0)