Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Compilation error: Boost header not found #379

Open
aleasims opened this issue May 16, 2024 · 0 comments
Open

Compilation error: Boost header not found #379

aleasims opened this issue May 16, 2024 · 0 comments

Comments

@aleasims
Copy link
Contributor

How to reproduce

  • main.cpp
#include "nil/blueprint/blueprint/plonk/assignment.hpp"
int main() { return 0; }
  • CMakeLists.txt
cmake_minimum_required(VERSION 3.25)
add_executable(test main.cpp)
  • flake.nix
{
  description = "Test flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs";
    flake-utils.url = "github:numtide/flake-utils";
    nil_zkllvm_blueprint = {
      url = "https://github.com/NilFoundation/zkllvm-blueprint";
      type = "git";
      submodules = true;
    };
  };

  outputs = { self, nixpkgs, flake-utils, nil_zkllvm_blueprint }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { inherit system; };
        blueprint = nil_zkllvm_blueprint.packages.${system}.default;
      in
      {
        packages.default = pkgs.gcc13Stdenv.mkDerivation {
          name = "test";
          buildInputs = [ pkgs.cmake blueprint ];
          src = self;
        };
      }
    );
}

Then run:

nix build

Result

test> [ 50%] Building CXX object CMakeFiles/test.dir/main.cpp.o
test> In file included from /build/source/main.cpp:1:
test> /nix/store/v9wd2w4b7fdjy7s294zdbaqqw9g1ii3d-zkllvm-blueprint/include/nil/blueprint/blueprint/plonk/assignment.hpp:35:10: fatal error: boost/type_erasure/any.hpp: No such file or directory
test>    35 | #include <boost/type_erasure/any.hpp>
test>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
test> compilation terminated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant