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

typo in loadAll function #636

Closed
ziereis opened this issue Feb 28, 2024 · 3 comments
Closed

typo in loadAll function #636

ziereis opened this issue Feb 28, 2024 · 3 comments

Comments

@ziereis
Copy link

ziereis commented Feb 28, 2024

when trying to compile with zig build you get the error:

install
└─ install arocc
└─ zig build-exe arocc Debug native 1 errors
src/aro/Compilation.zig:72:17: error: expected type 'error{OutOfMemory,InvalidUtf8,EnvironmentVariableNotFound}', found 'error{InvalidWtf8}'
error.InvalidWtf8 => null,
^~~~~~~~~~~~~~~~~
src/aro/Compilation.zig:72:17: note: 'error.InvalidWtf8' not a member of destination error set

easily fixed by changing the W to a U

@ziereis ziereis changed the title type in loadAll function typo in loadAll function Feb 28, 2024
@ehaas
Copy link
Collaborator

ehaas commented Feb 29, 2024

I believe this is because you're using an older version of zig; that error was added recently. However I just saw that there is a different error with the latest version of the compiler, I'll send a PR for that soon.

@ehaas
Copy link
Collaborator

ehaas commented Feb 29, 2024

@ziereis if you download the latest version of zig (I'm on 0.12.0-dev.3074+ae7f3fc36) + pull in the latest from this repo you should be able to build it.

@ehaas
Copy link
Collaborator

ehaas commented Mar 4, 2024

Let me know if you have any other trouble getting it to compile.

@ehaas ehaas closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
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