roc-lang / roc-lang/examples

Fix go example on aarch64 linux

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

medium priority
Dominant language
Shell
Stars
46
Forks
19
Avg merge
13h 38m
Merged PRs (30d)
19

Description

 + ./roc_nightly/roc build --lib ./examples/GoPlatform/main.roc --output examples/GoPlatform/platform/libapp.so
0 errors and 0 warnings found in 110 ms while successfully building:

    examples/GoPlatform/platform/libapp.so
+ go build -C examples/GoPlatform/platform -buildmode=pie -o dynhost
+ ./roc_nightly/roc preprocess-host ./examples/GoPlatform/platform/dynhost ./examples/GoPlatform/platform/main.roc ./examples/GoPlatform/platform/libapp.so
+ ./roc_nightly/roc build ./examples/GoPlatform/main.roc
Legacy linking failed: Failed to find any legacy linking files; I need one of these three paths to exist:
    ./examples/GoPlatform/platform/linux-arm64.a
    ./examples/GoPlatform/platform/linux-arm64.o
    ./examples/GoPlatform/platform/libhost.a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GoPlatform example and reproduce the listed build sequence on aarch64 Linux. Inspect the generated files under examples/GoPlatform/platform, especially the expected linux-arm64 artifacts, and verify that the final roc build command completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.