janneke pushed a commit to branch wip-bootstrap in repository guix. commit a72bc0615f140417ca3afd98e54fba62623af6da Author: Jan Nieuwenhuizen <jann...@gnu.org> Date: Thu Nov 23 19:47:47 2017 +0100
gnu: Add gcc-boot. WIP * gnu/packages/mes.scm (gcc-boot): New variable. --- gnu/packages/mes.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm index 4169d89..a687028 100644 --- a/gnu/packages/mes.scm +++ b/gnu/packages/mes.scm @@ -441,6 +441,41 @@ standard.") (home-page "http://www.tinycc.org/") (license lgpl2.1+)))) +;; gcc-boot +;; <rain1> what I did was just this [19:11] +;; <rain1> MAKEINFO=missing CC=tcc $HOME/gcc-4.7.4/configure +;; --prefix=$HOME/gcc-out --enable-languages=c --disable-multilib +;; <rain1> with tcc built and installed in $PATH + +(define-public gcc-boot + (package + ;; (inherit gcc-4.7) + (source (package-source gcc-4.7)) + (name "gcc-boot") + (version "4.7.4") + (synopsis (package-synopsis gcc-4.7)) + (supported-systems '("i686-linux")) + (build-system gnu-build-system) + (native-inputs `(("tcc" ,tcc-boot))) + (inputs `(;;("gmp" ,gmp) + ;;("mpfr" ,mpfr) + ;;("mpc" ,mpc) + ;;("libelf" ,libelf) + ;;("zlib" ,zlib) + )) + (arguments + `(;;#:out-of-source? #t + #:configure-flags `("--enable-languages=c" + "--disable-multilib" + ;;,(string-append "CC='mes-tcc " (assoc-ref %build-inputs "tcc") "/lib/crt1.mlibc-o'") + "CC=mes-tcc" + "CFLAGS=-static" + "XAR='mes-tcc -ar" + "MAKEINFO=missing"))) + (properties `((gcc-libc . ,(assoc-ref inputs "libc")))) + (home-page (package-home-page gcc-4.7)) + (description (package-description gcc-4.7)) + (license (package-license gcc-4.7)))) ;;; (define-public nyacc