Skip to content

Compiling with Solaris 11 #2363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions COMPILING.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,23 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.

1. As root, get the necessary development tools:
```
pkg install system/header developer/lexer/flex developer/parser/bison developer/versioning/git
pkg install --accept developer/gcc/gcc-c++-5
pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -i gcc5g++ bison flex git
```
2. As a user, get the CBMC source via
```
export PATH=/opt/csw/bin:$PATH
git clone https://github.com/diffblue/cbmc cbmc-git
```
3. Get MiniSat2 by entering
```
cd cbmc-git
wget http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
gtar xfz minisat_2.2.1.orig.tar.gz
mv minisat2-2.2.1 minisat-2.2.1
(cd minisat-2.2.1; patch -p1 < ../scripts/minisat-2.2.1-patch)
cd cbmc-git/src
gmake minisat2-download DOWNLOADER=wget TAR=gtar
```
4. Type
4. To compile, type
```
cd src; gmake
gmake
```
That should do it. To run, you will need
```
Expand Down
5 changes: 3 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ $(patsubst %, %_clean, $(DIRS)):
# minisat2 and glucose download, for your convenience

DOWNLOADER = lwp-download
TAR = tar

minisat2-download:
@echo "Downloading Minisat 2.2.1"
@$(DOWNLOADER) http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
@tar xfz minisat2_2.2.1.orig.tar.gz
@$(TAR) xfz minisat2_2.2.1.orig.tar.gz
@rm -Rf ../minisat-2.2.1
@mv minisat2-2.2.1 ../minisat-2.2.1
@(cd ../minisat-2.2.1; patch -p1 < ../scripts/minisat-2.2.1-patch)
Expand All @@ -100,7 +101,7 @@ minisat2-download:
glucose-download:
@echo "Downloading glucose-syrup"
@$(DOWNLOADER) http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup.tgz
@tar xfz glucose-syrup.tgz
@$(TAR) xfz glucose-syrup.tgz
@rm -Rf ../glucose-syrup
@mv glucose-syrup ../
@(cd ../glucose-syrup; patch -p1 < ../scripts/glucose-syrup-patch)
Expand Down