2016-10-16 09:24:41 +00:00
|
|
|
-*- org -*-
|
2018-07-23 17:10:34 +00:00
|
|
|
#+TITLE: Building and Installing GNU Mes
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-07-23 17:10:34 +00:00
|
|
|
Copyright © 2016, 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2018-06-24 11:13:13 +00:00
|
|
|
|
2018-07-23 17:10:34 +00:00
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
notice and this notice are preserved.
|
|
|
|
|
|
|
|
Mes can be built in two modes: as a regulare package build or as a
|
|
|
|
bootstrap package.
|
|
|
|
|
|
|
|
After bootstrapping Mes it can be used to bootstrap TinyCC (tcc) in a
|
2018-06-24 11:13:13 +00:00
|
|
|
similar way.
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
* Get it
|
2018-07-22 12:24:36 +00:00
|
|
|
git clone [[git://git.savannah.gnu.org][git://git.savannah.gnu.org/mes.git]]
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
* Regular build
|
|
|
|
** Prerequisites
|
2017-06-08 18:39:24 +00:00
|
|
|
*** Guix
|
2018-12-20 06:44:18 +00:00
|
|
|
guix environment -l guix.scm #64 bit + 32bit
|
|
|
|
guix environment --system=i686-linux -l guix.scm #32 bit only
|
2017-04-02 15:01:29 +00:00
|
|
|
|
2017-06-08 18:39:24 +00:00
|
|
|
*** Other GNU/Linux
|
2018-06-26 20:22:56 +00:00
|
|
|
- [[https://github.com/oriansj/mescc-tools][mescc-tools]], 0.5 is known to work.
|
2018-09-05 05:05:08 +00:00
|
|
|
- [[https://savannah.gnu.org/projects/nyacc][Nyacc]], 0.86.0 is known to work.
|
2018-06-24 11:13:13 +00:00
|
|
|
- GNU Gcc, 4.9.3 is known to work.
|
|
|
|
- GNU Guile, version 2.0.12 or is know to work.
|
|
|
|
- SH, /bin/sh, GNU Bash 4.3 is known to work.
|
|
|
|
- GNU coreutils
|
|
|
|
- sed, GNU sed 4.2 is known to work.
|
|
|
|
- git, 2.10 is known to work.
|
|
|
|
- Perl, 5.22 is known to work.
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
** Build it
|
|
|
|
./configure
|
|
|
|
make
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
** Check it
|
|
|
|
make check
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
** Install it
|
|
|
|
make install
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
* Guix it
|
2018-12-20 06:44:18 +00:00
|
|
|
guix package -f guix.scm
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
* Bootstrap build
|
2017-05-22 21:35:39 +00:00
|
|
|
|
2018-07-22 14:21:50 +00:00
|
|
|
The bootstrap build is being developed in Guix, on wip-bootstrap, see
|
|
|
|
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/mes.scm?h=wip-bootstrap
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
** Prerequisites
|
2018-06-26 20:22:56 +00:00
|
|
|
- [[https://github.com/oriansj/mescc-tools][mescc-tools]], 0.5 is known to work.
|
2018-09-05 05:05:08 +00:00
|
|
|
- [[https://savannah.gnu.org/projects/nyacc][Nyacc]], 0.86.0 is known to work.
|
2018-08-09 22:22:05 +00:00
|
|
|
- [[https://gitlab.com/janneke/mes-seed][mes-seed]], 0.17.1 is known to work.
|
2016-10-16 09:24:41 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
** Build it
|
2018-07-09 08:46:28 +00:00
|
|
|
<setup environment, e.g. prefix, MES_SEED>
|
2018-07-22 14:21:50 +00:00
|
|
|
./configure.sh [--prefix=<prefix>]
|
2018-06-24 11:13:13 +00:00
|
|
|
./build.sh
|
2016-12-10 21:47:13 +00:00
|
|
|
|
2018-06-24 11:13:13 +00:00
|
|
|
** Check it
|
|
|
|
|
|
|
|
./check.sh
|
|
|
|
|
|
|
|
** Install it
|
|
|
|
|
|
|
|
./install.sh
|