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

Compiler Panics when --prebuild-platform is omitted. #6815

Closed
ishehadeh opened this issue Jun 16, 2024 · 2 comments
Closed

Compiler Panics when --prebuild-platform is omitted. #6815

ishehadeh opened this issue Jun 16, 2024 · 2 comments
Labels
intermediate issue Likely good for someone who has completed a few other issues

Comments

@ishehadeh
Copy link

ishehadeh commented Jun 16, 2024

Steps to reproduce:

  • git clone https://github.com/lukewilliamboswell/roc-platform-template-c
  • roc run build.roc
  • roc build app.roc
  • compiler panics with Error When Building C Platform: failed to open file "platform/dynhost": No such file or directory (os error 2)

This could probably be repoduced different ways, without using the roc-plaftform-c repo.

Steps to fix:

Catch the error, possibly suggest trying the -prebuilt-platform.

see: #6814

@Anton-4 Anton-4 added the intermediate issue Likely good for someone who has completed a few other issues label Jul 19, 2024
@Anton-4
Copy link
Collaborator

Anton-4 commented Jul 19, 2024

Suggested fix sounds good, the error message could be:

Error: File "platform/dynhost" does not exist.
    Tip: Perhaps you intended to use a prebuilt platform? Try again with for example; `roc build your_file.roc --prebuilt-platform`.

@lukewilliamboswell
Copy link
Collaborator

Fixed by #6859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intermediate issue Likely good for someone who has completed a few other issues
Projects
None yet
Development

No branches or pull requests

3 participants