Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error on mach-o #393

Open
nicolasdanelon opened this issue Jan 11, 2023 · 1 comment
Open

Compiling error on mach-o #393

nicolasdanelon opened this issue Jan 11, 2023 · 1 comment

Comments

@nicolasdanelon
Copy link

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
Copy link
Owner

hawkw commented Jan 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants