author | wenzelm |
Wed, 06 Mar 2019 19:29:46 +0100 | |
changeset 69871 | 02e0458d342f |
parent 69822 | 8c587dd44f51 |
child 69903 | 63721ee8c86c |
permissions | -rw-r--r-- |
38469 | 1 |
Poly/ML for Isabelle |
2 |
==================== |
|
27012 | 3 |
|
69704 | 4 |
This compilation of Poly/ML (https://www.polyml.org) is based on the |
5 |
repository version |
|
69871 | 6 |
https://github.com/polyml/polyml/commit/fef9f8681c2f (master). |
57689
e189ba8a64b9
updated to polyml-5.5.2-1 which addresses two hard crashes;
wenzelm
parents:
56958
diff
changeset
|
7 |
|
69704 | 8 |
The Isabelle repository provides the administrative tool |
9 |
"build_polyml", which can be used in the polyml component directory as |
|
10 |
follows. |
|
62281
707f9b182f4f
evade a potential conflict of /bin/bash versus /bin/sh -> dash (notably on Ubuntu and Debian) -- note that execvpe does not exist on old glibc on Ubuntu 10.04 LTS, but the environ should be unchanged;
wenzelm
parents:
62252
diff
changeset
|
11 |
|
64544
d23b7c9b9dd4
updated Poly/ML repository test version (08-Dec-2016);
wenzelm
parents:
62281
diff
changeset
|
12 |
* Linux: |
62281
707f9b182f4f
evade a potential conflict of /bin/bash versus /bin/sh -> dash (notably on Ubuntu and Debian) -- note that execvpe does not exist on old glibc on Ubuntu 10.04 LTS, but the environ should be unchanged;
wenzelm
parents:
62252
diff
changeset
|
13 |
|
67593 | 14 |
$ isabelle build_polyml -m32 -s sha1 src |
15 |
$ isabelle build_polyml -m64 -s sha1 src |
|
62281
707f9b182f4f
evade a potential conflict of /bin/bash versus /bin/sh -> dash (notably on Ubuntu and Debian) -- note that execvpe does not exist on old glibc on Ubuntu 10.04 LTS, but the environ should be unchanged;
wenzelm
parents:
62252
diff
changeset
|
16 |
|
67595 | 17 |
* Mac OS X: |
18 |
||
19 |
$ isabelle build_polyml -m32 -s sha1 src |
|
20 |
$ isabelle build_polyml -m64 -s sha1 src |
|
21 |
||
64544
d23b7c9b9dd4
updated Poly/ML repository test version (08-Dec-2016);
wenzelm
parents:
62281
diff
changeset
|
22 |
* Windows (Cygwin shell) |
d23b7c9b9dd4
updated Poly/ML repository test version (08-Dec-2016);
wenzelm
parents:
62281
diff
changeset
|
23 |
|
67593 | 24 |
$ isabelle build_polyml -M /cygdrive/c/msys64 -m32 -s sha1 src |
25 |
$ isabelle build_polyml -M /cygdrive/c/msys64 -m64 -s sha1 src |
|
41331 | 26 |
|
67589 | 27 |
|
28 |
Building libgmp on Mac OS X |
|
29 |
=========================== |
|
30 |
||
67593 | 31 |
The build_polyml invocations above implicitly use the GNU Multiple Precision |
32 |
Arithmetic Library (libgmp), but that is not available on Mac OS X by default. |
|
33 |
Appending "--without-gmp" to the command-line omits this library. Building |
|
67595 | 34 |
libgmp properly from sources works as follows (library headers and binaries |
35 |
will be placed in /usr/local). |
|
67589 | 36 |
|
37 |
* Download: |
|
38 |
||
39 |
$ curl https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz | xz -dc | tar xf - |
|
40 |
$ cd gmp-6.1.2 |
|
67583 | 41 |
|
69704 | 42 |
* build: |
67589 | 43 |
|
44 |
$ make distclean |
|
45 |
$ ./configure --enable-cxx --build=core2-apple-darwin"$(uname -r)" |
|
46 |
$ make && make check |
|
47 |
$ sudo make install |
|
67583 | 48 |
|
41331 | 49 |
|
57689
e189ba8a64b9
updated to polyml-5.5.2-1 which addresses two hard crashes;
wenzelm
parents:
56958
diff
changeset
|
50 |
Makarius |
69871 | 51 |
06-Mar-2019 |