[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
164/176: gnu: Add gcc-mesboot-wrapper 4.7.4.
From: |
Jan Nieuwenhuizen |
Subject: |
164/176: gnu: Add gcc-mesboot-wrapper 4.7.4. |
Date: |
Fri, 31 Aug 2018 11:20:33 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 7c85e7ee6d7b080db3521ed824492f2d9d1deb45
Author: Jan Nieuwenhuizen <address@hidden>
Date: Fri Aug 31 13:54:28 2018 +0200
gnu: Add gcc-mesboot-wrapper 4.7.4.
* gnu/packages/commencement.scm (gcc-mesboot-wrapper): New variable.
(%bootstrap-inputs+toolchain): Use it to replace gcc-mesboot. WIP
---
gnu/packages/commencement.scm | 49 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index a113134..e0279cd 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1350,6 +1350,52 @@ ac_cv_c_float_format='IEEE (little-endian)'
(zero?
(apply system* "../configure" configure-flags))))))))))
+(define-public gcc-mesboot-wrapper
+ (package-with-bootstrap-guile
+ (package
+ (inherit gcc-mesboot)
+ (name "gcc-mesboot-wrapper")
+ (source #f)
+ (inputs '())
+ (native-inputs `(("bash" ,%bootstrap-coreutils&co)
+ ("libc" ,%bootstrap-glibc)
+ ("gcc" ,gcc-mesboot)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'unpack)
+ (delete 'configure)
+ (delete 'install)
+ (replace 'build
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bash (assoc-ref %build-inputs "bash"))
+ (libc (assoc-ref %build-inputs "libc"))
+ (gcc (assoc-ref %build-inputs "gcc"))
+ (bin (string-append out "/bin"))
+ (program (string-append bin "/gcc")))
+ (mkdir-p bin)
+ (with-output-to-file program
+ (lambda _
+ (display (string-append "#! " bash "/bin/bash
+exec " gcc "/bin/gcc"
+" -Wl,--dynamic-linker"
+" -Wl," libc ,(glibc-dynamic-linker)
+" -Wl,--rpath"
+" -Wl," libc "/lib"
+" \"address@hidden"
+"))))
+ (chmod program #o555)
+ #t)))
+ (replace 'check
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (program (string-append bin "/gcc")))
+ (invoke program "--help"))))))))))
+
(define-public glibc-headers-mesboot
(package-with-bootstrap-guile
(package
@@ -1642,7 +1688,8 @@ ac_cv_c_float_format='IEEE (little-endian)'
("i686-linux" `(;;("libc" ,glibc-mesboot) ; FIXME: make usable for
unpatched gnu-make-boot0, *-boot0
("libc" ,%bootstrap-glibc)
("binutils" ,binutils-mesboot)
- ("gcc" ,gcc-mesboot)))
+ ;; ("gcc" ,gcc-mesboot) ; FIXME: allow gcc to
use glibc
+ ("gcc" ,gcc-mesboot-wrapper)))
(_ '()))
%bootstrap-inputs))
- 112/176: gnu: tcc-boot: Package with bootstrap-guile., (continued)
- 112/176: gnu: tcc-boot: Package with bootstrap-guile., Jan Nieuwenhuizen, 2018/08/31
- 108/176: gnu: Add gcc-mesboot 4.7.4. WIP, Jan Nieuwenhuizen, 2018/08/31
- 109/176: REMOVEME: %fake-bootstrap => #t., Jan Nieuwenhuizen, 2018/08/31
- 129/176: gnu: %mes-seed: Update for mes 0.17., Jan Nieuwenhuizen, 2018/08/31
- 154/176: Revert "gnu: Add %bootstrap-diffutils.", Jan Nieuwenhuizen, 2018/08/31
- 140/176: gnu: Add %diffutils-static, %diffutils-static-stripped, %diffutils-bootstrap-tarball., Jan Nieuwenhuizen, 2018/08/31
- 161/176: gnu: make-boot0: Set LOADLIBES for i686-linux., Jan Nieuwenhuizen, 2018/08/31
- 126/176: gnu: gcc-mesboot0: Revise dependencies., Jan Nieuwenhuizen, 2018/08/31
- 136/176: gnu: tcc-boot0: Use gnu-build-system., Jan Nieuwenhuizen, 2018/08/31
- 131/176: gnu: mes: Update to 0.17., Jan Nieuwenhuizen, 2018/08/31
- 164/176: gnu: Add gcc-mesboot-wrapper 4.7.4.,
Jan Nieuwenhuizen <=
- 160/176: gnu: Add mpc-boot 1.0.3., Jan Nieuwenhuizen, 2018/08/31
- 166/176: gnu: diffutils-boot0: Export (for testing)., Jan Nieuwenhuizen, 2018/08/31
- 165/176: Revert "gnu: make-boot0: Set LOADLIBES for i686-linux.", Jan Nieuwenhuizen, 2018/08/31
- 87/176: gnu: %mes-seed: Update for mes 0.16., Jan Nieuwenhuizen, 2018/08/31
- 77/176: Revert "gnu: gcc-boot: Update to 3.0.", Jan Nieuwenhuizen, 2018/08/31
- 102/176: gnu: gcc-core-mesboot: Rename from gcc-core-boot., Jan Nieuwenhuizen, 2018/08/31
- 103/176: gnu: glibc-mesboot: Rename from glibc-boot., Jan Nieuwenhuizen, 2018/08/31
- 107/176: gnu: Add gcc-mesboot 4.1.0., Jan Nieuwenhuizen, 2018/08/31
- 119/176: gnu: %mes-seed: Update for mes 0.16.1., Jan Nieuwenhuizen, 2018/08/31
- 121/176: gnu: tcc-boot0: Revise dependencies., Jan Nieuwenhuizen, 2018/08/31