Building Racket 7.5 CS on MacOS Catalina

38 views
Skip to first unread message

Bruce O'Neel

unread,
Nov 21, 2019, 4:17:16 AM11/21/19
to Racket Users
Hi all,

I normally build Racket from source, and, for 7.5 I decided to try Racket CS as well.

Racket 7.5 builds fine from minimal source.  Racket CS builds fine as well from minimal source, but, when I run the command to build the rest of the distribution.

./raco pkg install --deps search-auto -i main-distribution


it fails with:

Resolving "main-distribution" via https://download.racket-lang.org/releases/7.5/catalog/

bytes-copy!: contract violation

  expected: (and/c bytes? (not/c immutable?))

  given: 54043195528445952

  context...:

   do-raise-argument-error

   bytes-copy!

   try-again

   loop

   do-display9

   loop

   fprintf

   /Users/XXX/tmp/racket-7.5/collects/net/http-client.rkt:152:0: http-conn-send!27

   call-with-values

   /Users/XXX/tmp/racket-7.5/collects/racket/contract/private/arrow-val-first.rkt:555:3

   /Users/XXX/tmp/racket-7.5/collects/net/url.rkt:201:0: http://getpost-impure-port

   /Users/XXX/tmp/racket-7.5/collects/net/url.rkt:308:2: redirection-loop

   call-with-values

   /Users/XXX/tmp/racket-7.5/collects/racket/contract/private/arrow-val-first.rkt:555:3

   /Users/XXX/tmp/racket-7.5/collects/pkg/private/network.rkt:59:3

   dynamic-wind


The full set of commands run:

tar xjvf ~/archive/Racket/racket-minimal-7.5-src-builtpkgs.tgz

cd racket-7.5/src

mkdir build

cd build

../configure --enable-csdefault

 make

 make install

 cd ../../bin

 ./raco pkg install --deps search-auto -i main-distribution


MacOS 10.15.1, and, command line developer tools:

gcc -v

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1

Apple clang version 11.0.0 (clang-1100.0.33.8)

Target: x86_64-apple-darwin19.0.0

Thread model: posix

InstalledDir: /Library/Developer/CommandLineTools/usr/bin


Thanks!

cheers

bruce


Matthew Flatt

unread,
Nov 25, 2019, 9:29:53 AM11/25/19
to bruce...@pckswarms.ch, Racket Users
Hi Bruce,

Thanks for the report!

It looks like this failure is due to a Racket CS I/O bug that has been
fixed for the next version (by commit 3c2efafbf5).

If you really need things to work for v7.5, I can suggest a workaround.
But if you were just trying it out to see, then we should have this
working for next time.

Matthew

At Thu, 21 Nov 2019 10:16:51 +0100, "Bruce O'Neel" wrote:
>
> Hi all,
>
> I normally build Racket from source, and, for 7.5 I decided to try Racket CS
> as well.
>
> Racket 7.5 builds fine from minimal source.  Racket CS builds fine as well
> from minimal source, but, when I run the command to build the rest of the
> distribution.
>
> ./raco pkg install --deps search-auto -i main-distribution
>
>
> it fails with:
>
> Resolving "main-distribution" via 
> [https://download.racket-lang.org/releases/7.5/catalog/](https://download.racke
> t-lang.org/releases/7.5/catalog/)
>
>
> bytes-copy!: contract violation
>
>
>   expected: (and/c bytes? (not/c immutable?))
>
>
>   given: 54043195528445952
>
>
>   context...:
>
>
>    do-raise-argument-error
>
>
>    bytes-copy!
>
>
>    try-again
>
>
>    loop
>
>
>    do-display9
>
>
>    loop
>
>
>    fprintf
>
>
>    /Users/XXX/tmp/racket-7.5/collects/net/http-client.rkt:152:0:
> http-conn-send!27
>
>
>    call-with-values
>
>
>    
> /Users/XXX/tmp/racket-7.5/collects/racket/contract/private/arrow-val-first.rkt:
> 555:3
>
>
>    /Users/XXX/tmp/racket-7.5/collects/net/url.rkt:201:0: 
> [http://getpost-impure-port](http://getpost-impure-port)
>
>
>    /Users/XXX/tmp/racket-7.5/collects/net/url.rkt:308:2: redirection-loop
>
>
>    call-with-values
>
>
>    
> /Users/XXX/tmp/racket-7.5/collects/racket/contract/private/arrow-val-first.rkt:
> 555:3
>
>
>    /Users/XXX/tmp/racket-7.5/collects/pkg/private/network.rkt:59:3
>
>
>    dynamic-wind
>
>
>
> The full set of commands run:
>
> tar xjvf ~/archive/Racket/racket-minimal-7.5-src-builtpkgs.tgz
> cd racket-7.5/src
>
>
> mkdir build
>
>
> cd build
>
>
> ../configure --enable-csdefault
>
>
>  make
>
>
>  make install
>
>
>  cd ../../bin
>
>
>  ./raco pkg install --deps search-auto -i main-distribution
>
>
>
> MacOS 10.15.1, and, command line developer tools:
>
> gcc -v
>
>
> Configured with: --prefix=/Library/Developer/CommandLineTools/usr
> --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/[MacOSX.sdk/usr
> /include/c++/4.2.1](http://MacOSX.sdk/usr/include/c++/4.2.1)
>
>
> Apple clang version 11.0.0 (clang-1100.0.33.8)
>
>
> Target: x86_64-apple-darwin19.0.0
>
>
> Thread model: posix
>
>
> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>
>
>
> Thanks!
>
> cheers
>
> bruce
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/1574327811-56147c15d1164b12004e2
> 43ea648d09b%40pckswarms.ch.

Bruce O'Neel

unread,
Nov 25, 2019, 10:32:03 AM11/25/19
to Matthew Flatt, Racket Users

Hi,

Thanks!  So if I were to grab the 7.5.0.7 version off of one of the snapshot sites it should work?

cheers

bruce



25 November 2019 15:29 Matthew Flatt <mfl...@cs.utah.edu> wrote:
Hi Bruce,

Thanks for the report!

It looks like this failure is due to a Racket CS I/O bug that has been
fixed for the next version (by commit 3c2efafbf5).

If you really need things to work for v7.5, I can suggest a workaround.
But if you were just trying it out to see, then we should have this
working for next time.

Matthew

At Thu, 21 Nov 2019 10:16:51 +0100, "Bruce O'Neel" wrote:
>
> Hi all,
>
> I normally build Racket from source, and, for 7.5 I decided to try Racket CS
> as well.
>
> Racket 7.5 builds fine from minimal source.  Racket CS builds fine as well
> from minimal source, but, when I run the command to build the rest of the
> distribution.
>
> ./raco pkg install --deps search-auto -i main-distribution
>
>
> it fails with:
>
> Resolving "main-distribution" via 
>
>
> bytes-copy!: contract violation
>
>
>   expected: (and/c bytes? (not/c immutable?))
>
>
>   given: 54043195528445952
>
>
>   context...:
>
>
>    do-raise-argument-error
>
>
>    bytes-copy!
>
>
>    try-again
>
>
>    loop
>
>
>    do-display9
>
>
>    loop
>
>
>    fprintf
>
>
>    /Users/XXX/tmp/racket-7.5/collects/net/http-client.rkt:152:0:
> http-conn-send!27
>
>
>    call-with-values
>
>
>    
> /Users/XXX/tmp/racket-7.5/collects/racket/contract/private/arrow-val-first.rkt:
> 555:3
>
>
>    /Users/XXX/tmp/racket-7.5/collects/net/url.rkt:201:0: 
>
>
>    /Users/XXX/tmp/racket-7.5/collects/net/url.rkt:308:2: redirection-loop
>
>
>    call-with-values
>
>
>    
> /Users/XXX/tmp/racket-7.5/collects/racket/contract/private/arrow-val-first.rkt:
> 555:3
>
>
>    /Users/XXX/tmp/racket-7.5/collects/pkg/private/network.rkt:59:3
>
>
>    dynamic-wind
>
>
>
> The full set of commands run:
>
> tar xjvf ~/archive/Racket/racket-minimal-7.5-src-builtpkgs.tgz
> cd racket-7.5/src
>
>
> mkdir build
>
>
> cd build
>
>
> ../configure --enable-csdefault
>
>
>  make
>
>
>  make install
>
>
>  cd ../../bin
>
>
>  ./raco pkg install --deps search-auto -i main-distribution
>
>
>
> MacOS 10.15.1, and, command line developer tools:
>
> gcc -v
>
>
> Configured with: --prefix=/Library/Developer/CommandLineTools/usr
> --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/[MacOSX.sdk/usr
>
>
> Apple clang version 11.0.0 (clang-1100.0.33.8)
>
>
> Target: x86_64-apple-darwin19.0.0
>
>
> Thread model: posix
>
>
> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>
>
>
> Thanks!
>
> cheers
>
> bruce
>
>

Matthew Flatt

unread,
Nov 25, 2019, 10:33:32 AM11/25/19
to bruce...@pckswarms.ch, Racket Users
Yes, the snapshot should work.

At Mon, 25 Nov 2019 16:31:33 +0100, "Bruce O'Neel" wrote:
>
>
> Hi,
>
> Thanks!  So if I were to grab the 7.5.0.7 version off of one of the snapshot
> sites it should work?
>
> cheers
>
> bruce
>
>
>
> https://groups.google.com/d/msgid/racket-users/1574695893-3bcb6148e3cd4f19f35e0
> d6b39910f3e%40pckswarms.ch.
Reply all
Reply to author
Forward
0 new messages