[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/176: gnu: tcc-boot: Update for mes 0.14.
From: |
Jan Nieuwenhuizen |
Subject: |
52/176: gnu: tcc-boot: Update for mes 0.14. |
Date: |
Fri, 31 Aug 2018 11:20:12 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 5fa99d268dad191bff0733b952ad0443ead96f98
Author: Jan Nieuwenhuizen <address@hidden>
Date: Thu May 3 12:00:38 2018 +0200
gnu: tcc-boot: Update for mes 0.14.
* gnu/packages/mes.scm (tcc-boot): Update for mes 0.14.
---
gnu/packages/mes.scm | 49 ++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 38 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 393e2e2..375b561 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -359,7 +359,7 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(define-public tcc-boot
(let ((version "0.9.26")
(revision "0")
- (commit "ddea739c89e145004526b5f66f3b47b20ae30cf2"))
+ (commit "ff1caa80178b8c7d91c14c52b030ff067faef46f"))
(package-with-bootstrap-guile
(package
(name "tcc-boot")
@@ -372,16 +372,16 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
"/tinycc-" commit ".tar.gz"))
(sha256
(base32
- "0w17a2qjh6rcfmd8phw6zxdgwh6yfwdxy6i9awzi8fckfjcwkywh"))))
+ "066z8z1wlzs0k8a1xv6ds0g25vvxwd24fzdca59bahwdaaq0j0ic"))))
(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"))
;; For testing with Guile
;; ("guile" ,%bootstrap-guile)
+ ;; ("libc" ,@(assoc-ref %bootstrap-inputs "libc"))
;; guile-2.0.9 does not have srfi-43; cherry-pick
- ("srfi-43" ,%srfi-43)
+ ;; ("srfi-43" ,%srfi-43)
("tar" ,(search-bootstrap-binary "tar" (%current-system)))
("xz" ,(search-bootstrap-binary "xz" (%current-system)))
("mes" ,mes-boot)
@@ -407,7 +407,9 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(tinycc-seed (assoc-ref %build-inputs "tinycc-seed"))
(out (assoc-ref %outputs "out"))
(libc (assoc-ref %build-inputs "libc"))
- (interpreter (string-append libc ,(glibc-dynamic-linker)))
+ (interpreter (if libc
+ (string-append libc
,(glibc-dynamic-linker))
+ (string-append mes "/lib/mes-loader")))
(dir (getcwd)))
(setenv "PATH" (string-append
bash "/bin:"
@@ -426,9 +428,12 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(system* "tar" "--strip=1" "-C" "mes-seed" "-xvf" mes-seed)
(mkdir-p "tinycc-seed")
(system* "tar" "--strip=1" "-C" "tinycc-seed" "-xvf" tinycc-seed)
- (mkdir-p "srfi")
- (system* "cp" srfi-43 "srfi/srfi-43.scm")
+ (when srfi-43
+ (mkdir-p "srfi")
+ (system* "cp" srfi-43 "srfi/srfi-43.scm"))
(chdir "source")
+
+ ;; configure
(setenv "PREFIX" out)
(setenv "MESCC" (string-append mes "/bin/mescc"))
(symlink (string-append mes "/share/mes") "mes")
@@ -457,7 +462,6 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(symlink (string-append "../nyacc-source/module")
"nyacc")))
(and
- ;; configure
(zero? (system* "sh" "configure"
"--prefix=$PREFIX"
(string-append "--elfinterp=" interpreter)
@@ -467,9 +471,32 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
;; build
(zero? (system* "sh" "build.sh"))
- (zero? (system* "sh" "-ex" "test.sh" "01-return-0"))
- ;; check: 1/68 tests fail
- (or (zero? (system* "sh" "check.sh")) #t)
+ ;; check
+ (setenv "MES" "mes")
+ (setenv "DIFF" "diff.scm")
+ (zero? (system* "sh" "-ex" "test.sh"
"mes/scaffold/tests/30-strlen"))
+ (zero? (system* "sh" "-ex" "test.sh"
"mes/scaffold/tinycc/00_assignment"))
+ (zero? (system* "sh" "-x" "check.sh"))
+
+ (setenv "TCC" "./mes-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot0-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot1-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot2-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot3-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
;; install
(zero? (system* "sh" "install.sh")))))))
- 50/176: gnu: mes-boot: Update to 0.14., (continued)
- 50/176: gnu: mes-boot: Update to 0.14., Jan Nieuwenhuizen, 2018/08/31
- 23/176: gnu: mescc-tools-boot: Update to bootstrap from M1 binaries., Jan Nieuwenhuizen, 2018/08/31
- 17/176: bump: mlibc: Mescc-tools support: chmod., Jan Nieuwenhuizen, 2018/08/31
- 25/176: gnu: Update mescc-tools-boot: Binaries with function debug info., Jan Nieuwenhuizen, 2018/08/31
- 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 <=
- 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, 2018/08/31
- 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