author | wenzelm |
Sun, 24 Jan 2021 19:34:37 +0100 | |
changeset 73183 | ebf7babc05ce |
parent 73142 | 0398f18ec76c |
parent 73155 | d63c6fcccff2 |
child 73598 | 461da479f95c |
permissions | -rw-r--r-- |
64339 | 1 |
Multi-platform support of Isabelle |
2 |
================================== |
|
35610 | 3 |
|
4 |
Preamble |
|
5 |
-------- |
|
6 |
||
7 |
The general programming model is that of a stylized ML + Scala + POSIX |
|
68002 | 8 |
environment, with a minimum of system-specific code in user-space |
9 |
tools. |
|
35610 | 10 |
|
67235 | 11 |
The Isabelle system infrastructure provides some facilities to make |
12 |
this work, e.g. see the ML and Scala modules File and Path, or |
|
48833 | 13 |
functions like Isabelle_System.bash. The settings environment also |
61294 | 14 |
provides some means for portability, e.g. the bash function |
15 |
"platform_path" to keep the impression that Windows/Cygwin adheres to |
|
64339 | 16 |
Isabelle/POSIX standards, although Poly/ML and the JVM are native on |
17 |
Windows. |
|
35610 | 18 |
|
19 |
When producing add-on tools, it is important to stay within this clean |
|
67235 | 20 |
room of Isabelle, and refrain from non-portable access to operating |
21 |
system functions. The Isabelle environment uses peculiar scripts for |
|
68002 | 22 |
GNU bash and perl as system glue: this style should be observed as far |
23 |
as possible. |
|
35610 | 24 |
|
25 |
||
26 |
Supported platforms |
|
27 |
------------------- |
|
28 |
||
72366 | 29 |
A broad range of hardware and operating system platforms are supported |
30 |
by building executables on base-line versions that are neither too old |
|
31 |
nor too new. Common OS families work: Linux, Windows, macOS, but |
|
32 |
exotic ones are unsupported: BSD, Solaris, NixOS. |
|
33 |
||
34 |
Official (full support): |
|
35610 | 35 |
|
69725 | 36 |
x86_64-linux Ubuntu 14.04 LTS |
35610 | 37 |
|
72366 | 38 |
x86_64-darwin macOS 10.13 High Sierra (lapbroy68 MacBookPro11,2) |
72390 | 39 |
macOS 10.14 Mojave (mini2 Macmini8,1) |
72366 | 40 |
macOS 10.15 Catalina (laramac01 Macmini8,1) |
73142 | 41 |
macOS 11.1 Big Sur (mini1 Macmini8,1) |
72366 | 42 |
|
72526 | 43 |
x86_64-windows Windows 10 |
72366 | 44 |
x86_64-cygwin Cygwin 3.1.x https://isabelle.sketis.net/cygwin_2021 (x86_64/release) |
45 |
||
46 |
New (experimental): |
|
72359 | 47 |
|
72371
3e84f4e9651a
clarified arm64-linux base line: prefer Pi OS, which is based on slightly older Debian;
wenzelm
parents:
72366
diff
changeset
|
48 |
arm64-linux Raspberry Pi OS 64bit beta (Debian 10 / Buster) |
36204 | 49 |
|
73155 | 50 |
arm64-darwin macOS 11.1 Big Sur |
72895 | 51 |
|
36204 | 52 |
|
66911 | 53 |
64 bit vs. 32 bit platform personality |
54 |
-------------------------------------- |
|
36204 | 55 |
|
67235 | 56 |
Isabelle requires 64 bit hardware running a 64 bit operating |
72895 | 57 |
system. Only Windows still supports native x86 executables, but the |
58 |
POSIX emulation on Windows via Cygwin64 works exclusively for x86_64. |
|
65073 | 59 |
|
72895 | 60 |
The Isabelle settings environment provides variable |
61 |
ISABELLE_PLATFORM64 to refer to the standard platform personality. On |
|
62 |
Windows this is for Cygwin64, but the following native platform |
|
63 |
identifiers are available as well: |
|
65073 | 64 |
|
66732 | 65 |
ISABELLE_WINDOWS_PLATFORM64 |
65073 | 66 |
ISABELLE_WINDOWS_PLATFORM32 |
67 |
||
72894
bd2269b6cd99
updated "macOS" terminology: current Big Sur is already version 11;
wenzelm
parents:
72526
diff
changeset
|
68 |
These are always empty on Linux and macOS, and non-empty on |
72895 | 69 |
Windows. For example, this is how to refer to native Windows and |
70 |
fall-back on Unix (always 64 bit): |
|
71 |
||
72 |
"${ISABELLE_WINDOWS_PLATFORM64:-$ISABELLE_PLATFORM64}" |
|
65073 | 73 |
|
72895 | 74 |
And this is for old 32 bit executables on Windows, but still 64 bit on |
75 |
Unix: |
|
76 |
||
77 |
"${ISABELLE_WINDOWS_PLATFORM32:-$ISABELLE_PLATFORM64}" |
|
65073 | 78 |
|
79 |
||
35610 | 80 |
Dependable system tools |
81 |
----------------------- |
|
82 |
||
83 |
The following portable system tools can be taken for granted: |
|
84 |
||
68002 | 85 |
* Scala on top of Java. Isabelle/Scala irons out many oddities and |
64339 | 86 |
portability issues of the Java platform. |
87 |
||
68002 | 88 |
* GNU bash as uniform shell on all platforms. The POSIX "standard" |
89 |
shell /bin/sh does *not* work portably -- there are too many |
|
90 |
non-standard implementations of it. On Debian and Ubuntu /bin/sh is |
|
91 |
actually /bin/dash and introduces many oddities. |
|
35610 | 92 |
|
58780
1f8c0da85664
discontinued python from standard system environment;
wenzelm
parents:
55438
diff
changeset
|
93 |
* Perl as largely portable system programming language, with its |
1f8c0da85664
discontinued python from standard system environment;
wenzelm
parents:
55438
diff
changeset
|
94 |
fairly robust support for processes, signals, sockets etc. |
35610 | 95 |
|
96 |
||
97 |
Known problems |
|
98 |
-------------- |
|
99 |
||
72894
bd2269b6cd99
updated "macOS" terminology: current Big Sur is already version 11;
wenzelm
parents:
72526
diff
changeset
|
100 |
* macOS: If MacPorts is installed there is some danger that |
41668 | 101 |
accidental references to its shared libraries are created |
102 |
(e.g. libgmp). Use otool -L to check if compiled binaries also work |
|
103 |
without MacPorts. |
|
104 |
||
72894
bd2269b6cd99
updated "macOS" terminology: current Big Sur is already version 11;
wenzelm
parents:
72526
diff
changeset
|
105 |
* macOS: If MacPorts is installed and its version of Perl takes |
35610 | 106 |
precedence over /usr/bin/perl in the PATH, then the end-user needs |
36204 | 107 |
to take care of installing extra modules, e.g. for HTTP support. |
108 |
Such add-ons are usually included in Apple's /usr/bin/perl by |
|
109 |
default. |
|
35610 | 110 |
|
55438 | 111 |
* Common Unix tools like /bin/sh, /bin/kill, sed, ulimit are |
64339 | 112 |
notoriously non-portable an should be avoided. |
66911 | 113 |
|
114 |
* The traditional "uname" Unix tool only tells about its own executable |
|
115 |
format, not the underlying platform! |