Skip to content

Burst compilation fails on M2 Mac #2

@lpgagnon

Description

@lpgagnon

On a M2 (arm64) Mac, even with Mono installed, KSPBurst compilation fails with a "file does not exist, did you install mono?" error when running bcl.exe.

(error paraphrased; I didn't copy it before fixing things, and don't really want to try unfixing them)

Probably not going to be a high priority to fix; mostly opening this to capture how I handled it

I think I got things working by doing (not quite sure which of these steps were actually needed)

  • start a x86_64 terminal (arch -x86_64 bash)
  • install homebrew from that terminal to get the x86_64 version installed in /usr/local instead of /opt/brew
  • install mono using that brew version
  • symlink KSP.app/Contents/Resources/Data/Managed as KSP.app/Contents/Managed, because KSPBurst passes the former to bcl.exe but only the latter exists
  • launch KSP from that same terminal (cd ksp-install-dir; open KSP.app), to be sure it has the right mono on $PATH and the right $MONO_GAC_PREFIX

This seems to work; there's still some exceptions logged as Warnings, but no Errors, and on re-launch I get Burst compiler arguments haven't changed since last time, skipping burst generation, suggesting it's happy with the last run. (in fact launching ksp.app normally from the Finder also works fine at this point, since it doesn't try to invoke bcl.exe)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions