[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/160: gnu: tinycc-boot: Update for mes-0.12.
From: |
Jan Nieuwenhuizen |
Subject: |
40/160: gnu: tinycc-boot: Update for mes-0.12. |
Date: |
Tue, 28 Aug 2018 15:56:13 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit f61b58f8072bdddf78a850d8d23ea9b63a3f4390
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Apr 8 18:10:34 2018 +0200
gnu: tinycc-boot: Update for mes-0.12.
* gnu/packages/mes.scm (tinycc-boot): Update for mes-0.12. Build using
Mes+MesCC only, do not use Guile.
---
gnu/packages/mes.scm | 33 ++++++++++++++++++++++++---------
1 file changed, 24 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 7e5b914..6724da4 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -358,11 +358,12 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(file-name (string-append name "-" version ".tar.xz"))
(sha256
(base32
- "1q6la34dch8bihw470zpdxdp5j08k2mijfiz77qm28aig79y0l1h"))))
+ "0s4fzr3ax61a196152knkajq2jj50fpx9pg8li14121j6zjrmmwh"))))
(build-system trivial-build-system)
(supported-systems '("i686-linux" "x86_64-linux"))
(native-inputs
`(("static-bash" ,@(assoc-ref %bootstrap-inputs "bash"))
+ ("libc" ,@(assoc-ref %bootstrap-inputs "libc"))
("guile" ,%bootstrap-guile)
;; guile-2.0.9 does not have srfi-43; cherry-pick
("srfi-43" ,%srfi-43)
@@ -390,6 +391,9 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(mes-seed (assoc-ref %build-inputs "mes-seed"))
(tinycc-seed (assoc-ref %build-inputs "tinycc-seed"))
(out (assoc-ref %outputs "out"))
+ ;;(libc ,(with-store store (package-output store
%bootstrap-glibc)))
+ (libc (assoc-ref %build-inputs "libc"))
+ (interpreter (string-append libc ,(glibc-dynamic-linker)))
(dir (getcwd)))
(setenv "PATH" (string-append bash "/bin:"
mes "/bin:"
@@ -411,20 +415,31 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(chdir "source")
(setenv "PREFIX" out)
(setenv "MESCC" (string-append mes "/bin/mescc.scm"))
+ (setenv "MES_PREFIX" (string-append mes "/share/mes"))
(setenv "OBJDUMP" "true")
- (setenv "GUILE_AUTO_COMPILE" "1")
- (setenv "GUILE_LOAD_COMPILED_PATH"
- (string-append guile "/lib/guile/2.0/ccache"))
+ (setenv "interpreter" interpreter)
+
+ ;; for mescc.scm -- Guile+Nyacc+MesCC, ~30 times faster
+ ;; (setenv "GUILE_AUTO_COMPILE" "1")
+ ;; (setenv "GUILE_LOAD_COMPILED_PATH"
+ ;; (string-append guile "/lib/guile/2.0/ccache"))
+ ;; (setenv "GUILE_LOAD_PATH"
+ ;; (string-append dir
+ ;; ":" guile "/share/guile/2.0/"
+ ;; ":" dir "/nyacc-source/module"
+ ;; ":" mes "/share/mes/guile"))
+
+ ;; for mescc.mes -- Mes+Nyacc+MesCC
+ (setenv "MES_ARENA" "80000000")
+ (setenv "MESCC" (string-append mes "/bin/mescc.mes"))
(setenv "GUILE_LOAD_PATH"
- (string-append dir
- ":" guile "/share/guile/2.0/"
- ":" dir "/nyacc-source/module"
- ":" mes "/share/mes/guile"))
+ (string-append "../nyacc-source/module"))
+
(and
;; configure
(zero? (system* "sh" "configure"
"--prefix=$PREFIX"
- "--elfinterp=interpreter"
+ (string-append "--elfinterp=" interpreter)
"--crtprefix=."
"--tccdir=."))
- 56/160: gnu: mescc-tools-boot: Update for mes 0.15., (continued)
- 56/160: gnu: mescc-tools-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/08/28
- 42/160: gnu: mescc-tools-boot: Remove stage0 dependency., Jan Nieuwenhuizen, 2018/08/28
- 61/160: gnu: Add m4-boot., Jan Nieuwenhuizen, 2018/08/28
- 72/160: gnu: gcc-boot: Update to 3.0., Jan Nieuwenhuizen, 2018/08/28
- 66/160: gnu: binutils-boot: Update to 2.30., Jan Nieuwenhuizen, 2018/08/28
- 44/160: gnu: nyacc-boot: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/08/28
- 54/160: gnu: mescc-tools-boot: Update to 0.4., Jan Nieuwenhuizen, 2018/08/28
- 71/160: gnu: gcc-boot: Update to 2.95.3., Jan Nieuwenhuizen, 2018/08/28
- 34/160: gnu: Update tcc-boot: qsort., Jan Nieuwenhuizen, 2018/08/28
- 41/160: gnu: %mescc-tools-seed: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/08/28
- 40/160: gnu: tinycc-boot: Update for mes-0.12.,
Jan Nieuwenhuizen <=
- 39/160: gnu: %tinycc-seed: Update for mes-0.12., Jan Nieuwenhuizen, 2018/08/28
- 80/160: gnu: Add gcc-core-boot 2.95.3., Jan Nieuwenhuizen, 2018/08/28
- 67/160: Revert "gnu: binutils-boot: Update to 2.30.", Jan Nieuwenhuizen, 2018/08/28
- 63/160: gnu: binutils-boot: Update to 2.10.1., Jan Nieuwenhuizen, 2018/08/28
- 35/160: gnu: Update mes-boot: M4 support: robustify headers., Jan Nieuwenhuizen, 2018/08/28
- 36/160: gnu: nyacc-boot: Update to 0.80.42., Jan Nieuwenhuizen, 2018/08/28
- 27/160: gnu: Update tcc-boot: avoid mescc bug struct foo bar = *baz ()., Jan Nieuwenhuizen, 2018/08/28
- 28/160: gnu: Update mes-boot, tcc-boot: __udivdi3, __umoddi3., Jan Nieuwenhuizen, 2018/08/28
- 33/160: gnu: Update mes-boot: Add qsort., Jan Nieuwenhuizen, 2018/08/28
- 26/160: gnu: Update mescc-tools-boot, mes-boot, tcc-boot., Jan Nieuwenhuizen, 2018/08/28