-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Yices macos-arm build * Update Yices macos build docs * Upgrade version to 0.5.20
- Loading branch information
Showing
9 changed files
with
109 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ plugins { | |
} | ||
|
||
group = "io.ksmt" | ||
version = "0.5.19" | ||
version = "0.5.20" | ||
|
||
repositories { | ||
mavenCentral() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
YICES_VERSION="2.6.4" | ||
|
||
export MACOSX_DEPLOYMENT_TARGET=11.1 | ||
#apt-get install -y openjdk-8-jdk | ||
#omp install openjdk11 | ||
|
||
export CC=oa64-clang | ||
export CXX=oa64-clang++ | ||
|
||
JAVAC="/usr/bin/javac" | ||
JAVA_HOME="/usr/local/osxcross/macports/pkgs/opt/local/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home" | ||
CPPFLAGS="-I $JAVA_HOME/include -I $JAVA_HOME/include/darwin -I $(realpath ../dist-mac/include) -I $(realpath ../libgmp/dist/include)" | ||
CXXFLAGS="-fpermissive -g -fPIC -O3 -stdlib=libc++" | ||
export LIBS="$(realpath ../libgmp/dist/lib/libgmp.a) $(realpath ../dist-mac/lib/libyices.2.dylib)" | ||
export LDFLAGS="-L$(realpath ../libgmp/dist/lib) -L$(realpath ../dist-mac/lib/)" | ||
|
||
YICES_2_JAVA_LIB_NAME="libyices2java.dylib" | ||
|
||
rm -rf yices2_java_bindings | ||
|
||
# https://github.com/SRI-CSL/yices2_java_bindings/commit/d9858e540425072443830d2638db5ffdc8c92cd1 | ||
git clone https://github.com/SRI-CSL/yices2_java_bindings | ||
cd yices2_java_bindings | ||
git checkout d9858e5 | ||
|
||
# | ||
# Patch description | ||
# | ||
# Bindings native part: | ||
# 1. Fix cardinality check in `expand function`. | ||
# 2. Provide methods to extract values of product/sum components | ||
# | ||
# Bindings java part: | ||
# 1. Add the corresponding methods and classes to interact | ||
# with native product/sum value extraction methods | ||
# 2. Disable default native library load | ||
# | ||
git apply ../yices-bindings-patch.patch | ||
|
||
|
||
rm -rf build | ||
mkdir build | ||
cd build | ||
|
||
cp ../src/main/java/com/sri/yices/yicesJNI.cpp . | ||
|
||
$JAVAC -h . ../src/main/java/com/sri/yices/*.java | ||
|
||
$CXX $LD_STATIC_FLAGS $CPPFLAGS $CXXFLAGS -c yicesJNI.cpp | ||
|
||
$CXX $LD_STATIC_FLAGS $LDFLAGS -s -shared -o $YICES_2_JAVA_LIB_NAME yicesJNI.o $LIBS | ||
|
||
cp $YICES_2_JAVA_LIB_NAME ../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#apt-get install -y autoconf gperf | ||
|
||
export CC=oa64-clang | ||
export CXX=oa64-clang++ | ||
|
||
autoconf | ||
|
||
export CFLAGS="-O3" | ||
export CXXFLAGS="-O3" | ||
export CPPFLAGS="-I$(realpath libgmp/dist/include)" | ||
export LIBS=$(realpath libgmp/dist/lib/libgmp.a) | ||
export LDFLAGS="-L$(realpath libgmp/dist/lib)" | ||
|
||
./configure --enable-thread-safety --disable-mcsat --host=arm64-apple-darwin20.2 \ | ||
--prefix=$(realpath dist-mac) \ | ||
--with-pic-gmp=$(realpath libgmp/dist/lib/libgmp.a) \ | ||
--with-pic-gmp-include-dir=$(realpath libgmp/dist/include) | ||
|
||
make MODE=release ARCH=arm64-apple-darwin20.2 POSIXOS=darwin show-details dist install | ||
|
||
llvm-install-name-tool-14 -id libyices.2.dylib dist-mac/lib/libyices.2.dylib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz && tar Jxf gmp-6.3.0.tar.xz | ||
cd gmp-6.3.0 | ||
|
||
export CC=oa64-clang | ||
export CXX=oa64-clang++ | ||
export CFLAGS="-O3" | ||
export CXXFLAGS="-O3" | ||
|
||
./configure --host=arm64-apple-darwin20.2 --prefix=$(realpath ../dist) \ | ||
--enable-static=yes --enable-shared=no --enable-cxx --with-pic | ||
|
||
make -j$(nproc) | ||
make install |
Binary file not shown.