[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/176: gnu: tinycc-boot: Update for mes-0.12.
From: |
Jan Nieuwenhuizen |
Subject: |
40/176: gnu: tinycc-boot: Update for mes-0.12. |
Date: |
Fri, 31 Aug 2018 11:20:10 -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=."))
- 36/176: gnu: nyacc-boot: Update to 0.80.42., (continued)
- 36/176: gnu: nyacc-boot: Update to 0.80.42., Jan Nieuwenhuizen, 2018/08/31
- 29/176: gnu: Update tcc-boot: mescc has no unsigned arithmetic., Jan Nieuwenhuizen, 2018/08/31
- 55/176: gnu: %mescc-tools-seed: Update for 0.15., Jan Nieuwenhuizen, 2018/08/31
- 49/176: gnu: %mes-seed: Update for mes 0.14., Jan Nieuwenhuizen, 2018/08/31
- 47/176: gnu: %tinycc-seed: Update for mes 0.13., Jan Nieuwenhuizen, 2018/08/31
- 44/176: gnu: nyacc-boot: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/08/31
- 52/176: gnu: tcc-boot: Update for mes 0.14., Jan Nieuwenhuizen, 2018/08/31
- 56/176: gnu: mescc-tools-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/08/31
- 18/176: gnu: mescc-tools-boot: Use bootstrap Guile and simplify., Jan Nieuwenhuizen, 2018/08/31
- 16/176: bump: mes-boot: fixup for 80-setjmp test, Jan Nieuwenhuizen, 2018/08/31
- 40/176: gnu: tinycc-boot: Update for mes-0.12.,
Jan Nieuwenhuizen <=
- 45/176: gnu: %mes-seed: Update for mes 0.13., Jan Nieuwenhuizen, 2018/08/31
- 58/176: gnu: mes-boot: Update to 0.15., Jan Nieuwenhuizen, 2018/08/31
- 70/176: gnu: linux-libre-headers-boot0: Export., Jan Nieuwenhuizen, 2018/08/31
- 74/176: gnu: gcc-boot: Update to 3.4.0., Jan Nieuwenhuizen, 2018/08/31
- 73/176: gnu: gcc-boot: Update to 3.2., Jan Nieuwenhuizen, 2018/08/31
- 62/176: gnu: Add binutils-boot 2.5.1., Jan Nieuwenhuizen, 2018/08/31
- 66/176: gnu: binutils-boot: Update to 2.30., Jan Nieuwenhuizen, 2018/08/31
- 75/176: Revert "gnu: gcc-boot: Update to 3.4.0.", Jan Nieuwenhuizen, 2018/08/31
- 76/176: Revert "gnu: gcc-boot: Update to 3.2.", Jan Nieuwenhuizen, 2018/08/31
- 72/176: gnu: gcc-boot: Update to 3.0., Jan Nieuwenhuizen, 2018/08/31