hawkw/mycelium

Compiling error on mach-o

nicolasdanelon opened this issue · 1 comments

I'm having the following error while I run cargo run-x64:

   Compiling owo-colors v2.1.0
LLVM ERROR: Global variable '_ZN8mycotest1_4TEST17h5b175f4f09402ec8E' has an invalid section specifier 'MyceliumTests': mach-o section specifier requires a segment and section separated by a comma.
error: could not compile `mycotest`
warning: build failed, waiting for other jobs to finish...
  • rustc --version >> rustc 1.68.0-nightly (bdb07a8ec 2022-12-11)
  • OS: Ventura 13.1 >> Darwin sov.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64
hawkw commented

Huh, that's interesting. We should be compiling Mycelium as an ELF rather than a mach-o regardless of the host OS that's building the Mycelium binary, so this is a pretty surprising error. It seems like we're probably missing some configuration somewhere and the macOS toolchain is trying to build a mach-o object.