racket / raco-cross

Other
7 stars 6 forks source link

raco cross error on macOS after installing linux compiler #3

Closed tomyun closed 3 years ago

tomyun commented 3 years ago

What version of Racket are you using? 8.2 [cs]

What program did you run?

$ raco pkg install raco-cross
$ raco cross # download files for macOS target
$ raco cross --target x86_64-linux
$ raco cross

What should have happened? raco cross should run normally.

If you got an error message, please include it here.

fasl-read: incompatible fasl-object machine-type 'ta6le found in #<binary input port bytevector>
  context...:
   body of data
   /Applications/Racket v8.2/collects/raco/raco.rkt:41:0
   body of "/Applications/Racket v8.2/collects/raco/raco.rkt"
   body of "/Applications/Racket v8.2/collects/raco/main.rkt"

Please include any other relevant details macOS 11.4

mflatt commented 3 years ago

Thanks for the report!

The raco cross setup step did not properly handle raco cross itself being set up in user scope (as opposed to raco pkg install -i raco-cross).

Using raco setup --pkgs raco-cross should repair your current raco cross installation. Or raco pkg update raco-cross soon, after the package server has picked up the update, should both repair your installation and fix the bug.