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

Errors when building compiler from source #564

Open
Its-Kenta opened this issue Oct 25, 2022 · 0 comments
Open

Errors when building compiler from source #564

Its-Kenta opened this issue Oct 25, 2022 · 0 comments

Comments

@Its-Kenta
Copy link

Multiple errors when attempting to build compiler from source using Bootstrapping Vale ver 2.0.15:

Coordinator/src/main.vale:

[100%] Built target backend
Compiling Coordinator...
Running:
/sbin/java -cp /home/----/Documents/Repositories/Vale/Vale-Ubuntu-0.2.0.15/Frontend.jar dev.vale.passmanager.PassManager build --output_dir build --sanity_check true stdlib=/home/----/Documents/Repositories/Vale/Vale-Ubuntu-0.2.0.15/stdlib/src coordinator=/home/----/Documents/Repositories/Vale/Coordinator/src valecutils=/home/----/Documents/Repositories/Vale/Utils/src
Error: coordinator:/home/----/Documents/Repositories/Vale/Coordinator/src/main.vale:12:5 error S: : Can't use the name mut for a local.
    mut i = i + 1;

Frontend returned error code 22, aborting.
(panic)
Coordinator build failed.

https://github.com/ValeLang/Vale/blob/master/Coordinator/src/main.vale <- mut keyword is still present here?? I believe that was change to set as changing mut to set fixes the problem but then again in Coordinator:


Compiling Coordinator...
Running:
/usr/lib64/openjdk-11/bin/java -cp /home/kenta/Documents/Repositories/Vale/BootstrappingValeCompiler/Frontend.jar dev.vale.passmanager.PassManager build --output_dir build --sanity_check true stdlib=/home/kenta/Documents/Repositories/Vale/BootstrappingValeCompiler/stdlib/src coordinator=/home/kenta/Documents/Repositories/Vale/Coordinator/src valecutils=/home/kenta/Documents/Repositories/Vale/Utils/src
Error: stdlib.command:/home/kenta/Documents/Repositories/Vale/BootstrappingValeCompiler/stdlib/src/command/command.vale:65:50 error T
  handle = launch_command(cmd_array, maybe_cwd.or(""));
Couldn't find a suitable function or(&Opt<str>, str). Rejected candidates:


stdlib:/home/kenta/Documents/Repositories/Vale/BootstrappingValeCompiler/stdlib/src/logic.vale:7:1:
func or(a bool, b bool) bool { a or b }

 Index 0 argument &Opt<str> can't be given to expected parameter bool


Frontend returned error code 22, aborting.
(panic)
Coordinator build failed.

This is as far as I could get building Vale from source on Solus linux.
Could you please rectify those errors? It's impossible to build Vale from source due to this!

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

1 participant