pdgonzalez872_rackets
2021-9-9 15:33:25

@pdgonzalez872_rackets has joined the channel


thebestnsmb
2021-9-9 17:14:24

@thebestnsmb has joined the channel


jjsimpso
2021-9-9 18:24:50

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


jjsimpso
2021-9-9 18:27:03

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]


mflatt
2021-9-9 18:30:44

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


jjsimpso
2021-9-9 18:38:04

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


jjsimpso
2021-9-9 18:41:10

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


soegaard2
2021-9-9 20:14:38

That deserves to be mentioned in the build instructions.


jryans
2021-9-10 00:15:30