`hvmc compile` throws error "No such file or directory"
Janiczek opened this issue · 5 comments
Janiczek commented
This is on hvm-core
commit 7d8053d.
Note this seems to be related to an output file, because if I do use a non-.hvmc
file, it shows a different error:
Janiczek commented
I do see my program compiled into Rust code in my .hvm/src/fns.rs
, if that helps.
Janiczek commented
Janiczek commented
Sources:
crc32.hvm.txt
crc32.hvmc.txt
Compiled with hvm-lang
commit 074f043e693692e644e3f51da8f81a7b8a0a987b
(current master
)
Janiczek commented
FWIW, the issues persist even if I remove all .
from my "user-space" identifiers. In that case I get
error: expected one of `:`, `;`, or `=`, found `.`
--> src/fns.rs:52:13
|
52 | pub const F_. : Val = 0x00003f;
| ^ expected one of `:`, `;`, or `=`
error[E0599]: no method named `call_native` found for mutable reference `&mut run::Net<'a>` in the current scope
--> src/run.rs:880:15
|
880 | if self.call_native(book, ptr, trg) {
| ^^^^^^^^^^^ method not found in `&mut Net<'a>`
error: missing type for `const` item
--> src/fns.rs:52:13
|
52 | pub const F_. : Val = 0x00003f;
| ^ help: provide a type for the item: `: <type>`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `hvm-core` (lib) due to 3 previous errors
imaqtkatt commented
Does it compile if you just rename the identifiers that ends with .
?