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

test on macos too #174

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

test on macos too #174

wants to merge 7 commits into from

Conversation

Anton-4
Copy link
Collaborator

@Anton-4 Anton-4 commented Apr 29, 2024

No description provided.

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Apr 29, 2024

@lukewilliamboswell I wanted to set up testing of the examples on macos and also ran into problems with the go example like you mentioned earlier, I tried to re-use some stuff from #173 but I'm still encountering:

+ go build -C examples/GoPlatform/platform -buildmode=c-archive -o libhost.a
+ cp examples/GoPlatform/platform/libhost.a examples/GoPlatform/platform/macos-arm64.a
+ roc build --prebuilt-platform ./examples/GoPlatform/main.roc
Undefined symbols for architecture arm64:
  "_main", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture arm64
./examples/GoPlatform/main: No such file or directory
thread 'main' panicked at crates/compiler/build/src/program.rs:1043:17:
not yet implemented: gracefully handle `ld` (or `zig` in the case of wasm with --optimize) returning exit code Some(1)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Can you take a look?

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Apr 30, 2024

Looks like the tests passed because I did a bad copy-paste... I'll fix that.

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Apr 30, 2024

Ok, now I get the Undefined symbols error:

 + roc build --prebuilt-platform ./examples/GoPlatform/main.roc
ld: Undefined symbols:
  _main, referenced from:
      <initial-undefines>
./examples/GoPlatform/main: No such file or directory
thread 'main' panicked at crates/compiler/build/src/program.rs:1043:17:
not yet implemented: gracefully handle `ld` (or `zig` in the case of wasm with --optimize) returning exit code Some(1)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

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

Successfully merging this pull request may close these issues.

None yet

1 participant