Skip to content

Build fails with g++: error: shell/datalog_frontend: No such file or directory #7

Description

@XX-Official

Hello, I am currently trying to set up Loki for experimentation.

I was able to build the Docker image without any issues. However, the subsequent setup/build step fails with the following error:

src/shell/datalog_frontend.cpp g++: error: shell/datalog_frontend: No such file or directory Makefile:4032: recipe for target 'shell/datalog_frontend' failed make: *** [shell/datalog_frontend] Error 1

Before reaching this error, I also encountered the following Cargo/Rust-related issue:

error: failed to parse manifest at `/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rmp-serde-1.3.1/Cargo.toml`

Caused by:
  failed to parse the `edition` key

Caused by:
  this version of Cargo is older than the `2024` edition, and only supports `2015`, `2018`, and `2021` editions.

To work around the Rust dependency issue, I upgraded Rust. My current Rust version is:

rustc 1.80.0

I also applied the following changes based on related issues/discussions:

I removed the following lines from loki/obfuscator/intermediate_language/Cargo.toml:

[lints]
needless_return = "allow"

In the Cargo.toml files, I forced the version of the rand crate to 0.7.3.

After these changes, the Rust-related error seems to be resolved, but the build now fails at:

g++: error: shell/datalog_frontend: No such file or directory

Could you please help me understand whether this is caused by a missing generated file, an incorrect build path, or a dependency/version mismatch? Is there a recommended compiler/Rust/Cargo version for building the current Loki codebase?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions