unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Philip McGrath <philip@philipmcgrath.com>
Cc: Katherine Cox-Buday <cox.katherine.e+guix@gmail.com>,
	70065@debbugs.gnu.org,
	Liliana Marie Prikler <liliana.prikler@gmail.com>,
	Skyler Ferris <skyvine@protonmail.com>,
	Andrew Tropin <andrew@trop.in>
Subject: [bug#70065] [PATCH v2 2/8] gnu: racket: Update to 8.12.
Date: Tue, 9 Apr 2024 11:46:42 +0300	[thread overview]
Message-ID: <ZhUAcvhyP7e5uLjE@3900XT> (raw)
In-Reply-To: <d57255760c875d07e84b9eef5ee575de73940ca6.1711953507.git.philip@philipmcgrath.com>

[-- Attachment #1: Type: text/plain, Size: 8115 bytes --]

On Mon, Apr 01, 2024 at 02:51:07AM -0400, Philip McGrath wrote:
> All of Racket's changes to Chez Scheme have been merged upstream.  They
> are the basis for the Chez Scheme 10.0.0 release.  For the forseeable
> future, Racket will continue to depend on a specific pre-release
> version of Chez Scheme as part of Racket's "ABI": see upstream
> discussion at <https://racket.discourse.group/t/2739/3>.
...
> (chez-scheme-for-racket-bootstrap-bootfiles): Stop inheriting from
> 'chez-scheme-bootstrap-bootfiles'.
> [arguments]: Rewrite without inheritance. Use `make cross.boot` instead
> of broken experimental script for cross builds.
> [home-page]: Use bootstrapping Racket package instead of archived Git
> repository.
> [description]: Rewrite to reflect upstreaming of Racket's changes to
> Chez Scheme.
> @@ -646,58 +725,70 @@ (define-public chez-scheme-bootstrap-bootfiles
...
>  
>  (define-public chez-scheme-for-racket-bootstrap-bootfiles
>    (package
> -    (inherit chez-scheme-bootstrap-bootfiles)
>      (name "chez-scheme-for-racket-bootstrap-bootfiles")
>      (version (package-version chez-scheme-for-racket))
>      (source #f) ; avoid problematic cycle with racket.scm
>      (native-inputs
> -     (cons* chez-nanopass-bootstrap
> -            (if (%current-target-system)
> -                (list zuo
> -                      chez-scheme-for-racket)
> -                (list racket-vm-bc))))
> +     (cons chez-nanopass-bootstrap
> +           (if (%current-target-system)
> +               (list zuo
> +                     chez-scheme-for-racket)
> +               (list racket-vm-bc))))
> +    (build-system copy-build-system)
>      (arguments
> -     (substitute-keyword-arguments
> -         (package-arguments chez-scheme-bootstrap-bootfiles)
> -       ((#:phases those-phases #~%standard-phases)
> -        #~(let* ((those-phases #$those-phases)
> -                 (unpack (assoc-ref those-phases 'unpack)))
> -            (modify-phases those-phases
> -              (replace 'unpack
> -                (lambda args
> -                  (unpack #:source #$(or (package-source this-package)
> -                                         (package-source racket-vm-bc)))))
> -              (add-after 'unpack 'chdir
> -                (lambda args
> -                  (chdir "racket/src/ChezScheme")))
> -              (add-after 'chdir 'unpack-nanopass+stex
> -                (lambda args
> -                  #$unpack-nanopass+stex))
> -              (add-before 'install 'build
> -                (lambda* (#:key native-inputs inputs #:allow-other-keys)
> -                  #$(cond
> -                     ((%current-target-system)
> -                      ;; cross-compiling
> -                      #~(invoke
> -                         (search-input-file (or native-inputs inputs)
> -                                            "/bin/zuo")
> -                         "makefiles/boot.zuo"
> -                         (search-input-file (or native-inputs inputs)
> -                                            "/bin/scheme")
> -                         #$(or (racket-cs-native-supported-system?)
> -                               (nix-system->pbarch-machine-type))))
> -                     (else
> -                      ;; bootstrapping
> -                      #~(invoke
> -                         (search-input-file (or native-inputs inputs)
> -                                            "/opt/racket-vm/bin/racket")
> -                         "../rktboot/main.rkt"))))))))))
> -    (supported-systems
> -     (package-supported-systems chez-scheme-for-racket))
> -    (home-page "https://github.com/racket/ChezScheme")
> -    ;; ^ This is downstream of https://github.com/racket/racket,
> -    ;; but it's designed to be a friendly landing place for people
> -    ;; who want a ChezScheme-shaped repositroy.
> +     (list
> +      #:install-plan
> +      #~`(("boot/" "lib/chez-scheme-bootfiles"))
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (replace 'unpack
> +            (let ((unpack (assoc-ref %standard-phases 'unpack)))
> +              (lambda args
> +                (unpack #:source #$(or (package-source this-package)
> +                                       (package-source racket-vm-bc))))))
> +          (add-after 'unpack 'unpack-nanopass
> +            #$unpack-nanopass)
> +          (add-after 'unpack-nanopass 'chdir
> +            (lambda args
> +              (chdir "racket/src/ChezScheme")))
> +          (add-before 'install 'build
> +            #$(cond
> +               ((%current-target-system)
> +                ;; cross-compiling
> +                ;; TODO: share more of this with upstream, once we figure out
> +                ;; how best to manage running Chez as a cross-compiler and the
> +                ;; unfortate cycle with %racket-origin.
> +                #~(lambda* (#:key native-inputs inputs (parallel-build? #t)
> +                            #:allow-other-keys)
> +                    (invoke "./configure"
> +                            "--force" ; don't complain about missing bootfiles
> +                            #$(string-append
> +                               "-m=" (or (racket-cs-native-supported-system?)
> +                                         (nix-system->pbarch-machine-type)))
> +                            "ZUO=zuo"
> +                            ;; ignore submodules:
> +                            "ZLIB=-lz"
> +                            "LZ4=-llz4"
> +                            "STEXLIB=/GuixNotUsingStex")
> +                    (apply invoke
> +                           "make"
> +                           `(,@(if parallel-build?
> +                                   `("-j" ,(number->string
> +                                            (parallel-job-count)))
> +                                   '())
> +                             ,(string-append "SCHEME="
> +                                             (search-input-file
> +                                              (or native-inputs inputs)
> +                                              "/bin/scheme"))
> +                             "cross.boot"))))
> +               (else
> +                ;; bootstrapping
> +                #~(lambda* (#:key native-inputs inputs #:allow-other-keys)
> +                    (invoke
> +                     (search-input-file (or native-inputs inputs)
> +                                        "/opt/racket-vm/bin/racket")
> +                     "../rktboot/main.rkt"))))))))
> +    (home-page "https://pkgs.racket-lang.org/package/cs-bootstrap")
>      (synopsis "Chez Scheme bootfiles bootstrapped by Racket")
>      (description "Chez Scheme is a self-hosting compiler: building it
>  requires ``bootfiles'' containing the Scheme-implemented portions compiled for

chez-scheme-for-racket-bootstrap timed out due to 3600 seconds of
silence on riscv64-linux. I'm building it again with allowing for a
longer silent period.

chez-scheme-for-racket-bootstrap fails in the 'build phase on
powerpc-linux.  This is the same way that it fails on master, so there
is no regression here.

starting phase `build'
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "/gnu/store/1q72i8fv2fnf5q2rscahdy90jiigym42-racket-vm-bc-8.12/opt/racket-vm/bin/racket" arguments: ("../rktboot/main.rkt") exit-status: #f term-signal: 6 stop-signal: #f>
phase `build' failed after 0.4 seconds
command "/gnu/store/1q72i8fv2fnf5q2rscahdy90jiigym42-racket-vm-bc-8.12/opt/racket-vm/bin/racket" "../rktboot/main.rkt" failed with signal 6
builder for `/gnu/store/hcccfsv6n1llkqgv98y8sk1wywflnk59-chez-scheme-for-racket-bootstrap-bootfiles-9.9.9-pre-release.23.drv' failed with exit code 1

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-04-09  8:48 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-29  5:15 [bug#70065] [PATCH 0/6] gnu: Update to Racket 8.12, Chez Scheme 10, and Zuo 1.9 Philip McGrath
2024-03-29  5:18 ` [bug#70065] [PATCH 1/6] gnu: zuo: Update to 1.9 Philip McGrath
2024-03-30 14:31   ` Skyler Ferris via Guix-patches via
2024-03-29  5:18 ` [bug#70065] [PATCH 2/6] gnu: racket: Update to 8.12 Philip McGrath
2024-03-30 14:35   ` Skyler Ferris via Guix-patches via
2024-03-30 22:10     ` Philip McGrath
2024-03-29  5:18 ` [bug#70065] [PATCH 3/6] gnu: chez-scheme: Reorganize package definitions Philip McGrath
2024-03-30 14:35   ` Skyler Ferris via Guix-patches via
2024-03-29  5:18 ` [bug#70065] [PATCH 4/6] gnu: chez-scheme: Update to 10.0.0 Philip McGrath
2024-03-30  7:56   ` Liliana Marie Prikler
2024-03-30 14:39   ` Skyler Ferris via Guix-patches via
2024-03-30 22:49     ` Philip McGrath
2024-03-31 14:35       ` Skyler Ferris via Guix-patches via
2024-03-31 15:28       ` Skyler Ferris via Guix-patches via
2024-03-31 20:17         ` Philip McGrath
2024-04-02 14:55           ` Skyler Ferris via Guix-patches via
2024-04-01  6:51         ` [bug#70065] [PATCH v2 0/8] Update to Racket 8.12, Chez Scheme 10, and Zuo 1.9 Philip McGrath
2024-04-01  6:51           ` [bug#70065] [PATCH v2 1/8] gnu: zuo: Update to 1.9 Philip McGrath
2024-04-01  6:51           ` [bug#70065] [PATCH v2 2/8] gnu: racket: Update to 8.12 Philip McGrath
2024-04-09  8:46             ` Efraim Flashner [this message]
2024-04-11 10:44               ` Ludovic Courtès
2024-04-11 12:34                 ` Efraim Flashner
2024-04-01  6:51           ` [bug#70065] [PATCH v2 3/8] gnu: chez-scheme: Reorganize package definitions Philip McGrath
2024-04-01 15:40             ` Liliana Marie Prikler
2024-04-02  3:59               ` Philip McGrath
2024-04-01  6:51           ` [bug#70065] [PATCH v2 4/8] gnu: chez-scheme: Update to 10.0.0 Philip McGrath
2024-04-01  6:51           ` [bug#70065] [PATCH v2 5/8] gnu: Deprecate chez-scheme-for-system.in favor of chez-scheme Philip McGrath
2024-04-01  6:51           ` [bug#70065] [PATCH v2 6/8] gnu: Fix uses of deprecated chez-scheme-for-system Philip McGrath
2024-04-01 15:41             ` Liliana Marie Prikler
2024-04-01  6:51           ` [bug#70065] [PATCH v2 7/8] gnu: chez-scheme: Update and simplify machine-type handling Philip McGrath
2024-04-01 15:45             ` Liliana Marie Prikler
2024-04-02  3:59               ` Philip McGrath
2024-04-01  6:51           ` [bug#70065] [PATCH v2 8/8] gnu: chez-scheme: Bootstrap from source Philip McGrath
2024-04-11 10:55           ` bug#70065: [PATCH v2 0/8] Update to Racket 8.12, Chez Scheme 10, and Zuo 1.9 Ludovic Courtès
2024-03-29  5:18 ` [bug#70065] [PATCH 5/6] gnu: chez-scheme: Update and simplify machine-type handling Philip McGrath
2024-03-30 14:40   ` Skyler Ferris via Guix-patches via
2024-03-29  5:18 ` [bug#70065] [PATCH 6/6] gnu: chez-scheme: Bootstrap from source Philip McGrath
2024-03-30 14:41   ` Skyler Ferris via Guix-patches via
2024-03-30 14:28 ` [bug#70065] [PATCH 0/6] gnu: Update to Racket 8.12, Chez Scheme 10, and Zuo 1.9 Skyler Ferris via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZhUAcvhyP7e5uLjE@3900XT \
    --to=efraim@flashner.co.il \
    --cc=70065@debbugs.gnu.org \
    --cc=andrew@trop.in \
    --cc=cox.katherine.e+guix@gmail.com \
    --cc=liliana.prikler@gmail.com \
    --cc=philip@philipmcgrath.com \
    --cc=skyvine@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).