hawkw / mycelium

🍄 an alleged 'operating system'
https://mycelium.elizas.website
MIT License
532 stars 19 forks source link

Compiling error on mach-o #393

Open nicolasdanelon opened 1 year ago

nicolasdanelon commented 1 year ago

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...
hawkw commented 1 year ago

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.