Skip to content

Commit 9797c0d

Browse files
committed
Build and documentation fixes for FreeBSD
We rely on thin archives via `ar rcT` for libcprover-cpp nests archives, which FreeBSD's `ar` does not support. Use `llvm-ar` instead, which does have this capability. This enables a successful build.
1 parent 8fc41f3 commit 9797c0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

COMPILING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The environments below have been used successfully in the
1616
past, but are not actively tested:
1717

1818
- Solaris 11
19-
- FreeBSD 11
19+
- FreeBSD 13
2020

2121
# Building using CMake
2222

@@ -246,11 +246,11 @@ Maven 3 manually.
246246
247247
1. As root, get the necessary tools:
248248
```
249-
pkg install bash gmake git www/p5-libwww patch flex bison
249+
pkg install bash gmake git www/p5-libwww python python3 patch flex bison cvc5 z3
250250
```
251251
To compile JBMC, additionally install
252252
```
253-
pkg install openjdk8 wget maven3
253+
pkg install openjdk8 wget maven
254254
```
255255
2. As a user, get the CBMC source via
256256
```

src/common

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ifeq ($(filter-out OSX OSX_Universal,$(BUILD_ENV_)),)
6464
YFLAGS ?= -v
6565
else ifeq ($(filter-out FreeBSD,$(BUILD_ENV_)),)
6666
CP_CXXFLAGS +=
67-
LINKLIB = ar rcT $@ $^
67+
LINKLIB = llvm-ar rcT $@ $^
6868
LINKBIN = $(CXX) $(LINKFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LIBS)
6969
LINKNATIVE = $(HOSTCXX) $(HOSTLINKFLAGS) -o $@ $^
7070
ifeq ($(origin CC),default)

0 commit comments

Comments
 (0)