rusty icon indicating copy to clipboard operation
rusty copied to clipboard

Failed to compile examples on Mac ARM64

Open zsx opened this issue 1 year ago • 2 comments

Describe the bug

It fails to compile the files under example/ on an M2 Macbook.

To Reproduce Steps to reproduce the behavior:

I tried to follow the example as documented: cargo run plc examples/hello_world.st -o hello_world --linker=cc complains:

LLVM ERROR: Global variable 'main' has an invalid section specifier ',fn-$RUSTY$main:i32': mach-o section specifier requires a section whose length is between 1 and 16 characters.

Expected behavior the command should produce an executable

Additional context Add any other context about the problem here.

Tests Optional: Add a link to a PR or a branch where you have a failing test of the issue.

zsx avatar Aug 10 '24 03:08 zsx

Seems like the changes to the metadata affects macs. There's a PR that will move them behind a flag but we should still look into this.

ghaith avatar Aug 12 '24 07:08 ghaith

Related https://github.com/PLC-lang/rusty/issues/1192; in the meantime you'll have to use Docker / Devcontainer when developing under MacOS

volsa avatar Aug 12 '24 07:08 volsa