
@pdgonzalez872_rackets has joined the channel

@thebestnsmb has joined the channel

I’ve been using ‘raco cross’ to cross complie Windows builds on my Linux system. That has been working fine, but cross compiling Mac OSX is failing: mkdir -p cross/x86_64-macosx
rm -rf compiled/
raco cross --target x86_64-macosx --vm cs -j 4 exe -o cross/x86_64-macosx/molasses.bin main.rkt
>> Cross configuration
Target: x86_64-macosx
Host: x86_64-linux
Version: 8.2
VM: cs
Workspace: /home/jonathan/.racket/raco-cross/8.2
raco cross --target x86_64-macosx --vm cs dist cross/x86_64-macosx/molasses cross/x86_64-macosx/molasses.bin
>> Cross configuration
Target: x86_64-macosx
Host: x86_64-linux
Version: 8.2
VM: cs
Workspace: /home/jonathan/.racket/raco-cross/8.2
make-directory: cannot make directory;
the path already exists
path: /home/jonathan/git/molasses/src/cross/x86_64-macosx/molasses
context...:
/home/jonathan/.racket/raco-cross/8.2/x86_64-macosx-cs/collects/compiler/distribute.rkt:20:2: assemble-distribution
body of "/home/jonathan/.racket/raco-cross/8.2/x86_64-macosx-cs/share/pkgs/compiler-lib/compiler/commands/exe-dir.rkt"
/home/jonathan/.racket/raco-cross/8.2/x86_64-macosx-cs/collects/raco/raco.rkt:41:0
body of "/home/jonathan/.racket/raco-cross/8.2/x86_64-macosx-cs/collects/raco/raco.rkt"
body of "/home/jonathan/.racket/raco-cross/8.2/x86_64-macosx-cs/collects/raco/main.rkt"
raco cross: command failed
make: *** [Makefile:31: macos] Error 1

Some more info on my cross compiling setup: raco cross --target x86_64-macosx --vm cs pkg show
>> Cross configuration
Target: x86_64-macosx
Host: x86_64-linux
Version: 8.2
VM: cs
Workspace: /home/jonathan/.racket/raco-cross/8.2
Installation-wide:
Package Checksum Source
compiler-lib 4f7b6264a9f6c7d6a7... catalog compiler-lib
gui 53ea9321b15f0f57e2... catalog gui
racket-lib 39b0cffdb67f2973bc... catalog racket-lib
src link...t/molasses/src
[119 auto-installed packages not shown]
User-specific for installation "8.2-x86_64-macosx-cs":
[none]

Does cross/x86_64-macosx/molasses
already exist as a file instead of a directory?

Thanks! Yes that was it. I modified my makefile to add .bin to the executable but forgot to delete the old executable :disappointed:

This is what happens when you get back to something a week later.

That deserves to be mentioned in the build instructions.

I could add a troubleshooting section to the end of https://docs.racket-lang.org/racket-build-guide/build.html\|https://docs.racket-lang.org/racket-build-guide/build.html perhaps…?