Admin/polyml/README
author wenzelm
Sun, 24 Nov 2019 22:54:42 +0100
changeset 71160 625df1eb7873
parent 71118 2bc568573a47
child 71492 a296d3697e50
permissions -rw-r--r--
updated to polyml-5.8.1-20191113 test version (Poly/ML 055f20cdc326);

Poly/ML for Isabelle
====================

This test version of Poly/ML pre-5.8.1 is based on the repository
snapshot https://github.com/polyml/polyml/commit/055f20cdc326

The Isabelle repository provides an administrative tool "isabelle
build_polyml", which can be used in the polyml component directory as
follows.

* Linux:

  $ isabelle build_polyml -m32 -s sha1 src
  $ isabelle build_polyml -m64 -s sha1 src

* Mac OS X:

  $ isabelle build_polyml -m32 -s sha1 src
  $ isabelle build_polyml -m64 -s sha1 src

* Windows (Cygwin shell)

  $ isabelle build_polyml -M /cygdrive/c/msys64 -m32 -s sha1 src
  $ isabelle build_polyml -M /cygdrive/c/msys64 -m64 -s sha1 src


Building libgmp on Mac OS X
===========================

The build_polyml invocations above implicitly use the GNU Multiple Precision
Arithmetic Library (libgmp), but that is not available on Mac OS X by default.
Appending "--without-gmp" to the command-line omits this library. Building
libgmp properly from sources works as follows (library headers and binaries
will be placed in /usr/local).

* Download:

  $ curl https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz | xz -dc | tar xf -
  $ cd gmp-6.1.2

* build:

  $ make distclean
  $ ./configure --enable-cxx --build=core2-apple-darwin"$(uname -r)"
  $ make && make check
  $ sudo make install


        Makarius
        24-Nov-2019