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

Cannot test circuit based on sha256 #22

Closed
color-typea opened this issue Jun 5, 2023 · 0 comments · Fixed by #23
Closed

Cannot test circuit based on sha256 #22

color-typea opened this issue Jun 5, 2023 · 0 comments · Fixed by #23

Comments

@color-typea
Copy link
Contributor

Example with minimal changes compared to template master branch:
https://github.com/color-typea/lido-zkllvm-accounting-curcuit/tree/minimal_setup_with_tests_and_crypto3

Steps to reproduce:
See README.md on the branch, but essentially just

cmake -DBUILD_TESTS=TRUE -S . -B ./build && cmake --build ./build --target test

Expected outcome:

  • test/lib.cpp is compiled and run.
  • test_sum pass (100% sure it will... Ok, 99%)
  • test_balance might pass (not 100% sure the "supporting" code is implemented correctly)

Actual outcome:

CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:24 (add_library)

Success criteria: it is possible to write and run tests against code using crypto3::sha256

NickVolynkin added a commit to NilFoundation/crypto3 that referenced this issue Jun 6, 2023
Dependency on crypto3::blueprint in zk/marshalling was
resulting in the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Part of NilFoundation/zkllvm-template#22
NickVolynkin added a commit to NilFoundation/crypto3 that referenced this issue Jun 6, 2023
Dependency on crypto3::blueprint in zk/marshalling was
resulting in the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Part of NilFoundation/zkllvm-template#22
NickVolynkin added a commit to NilFoundation/crypto3 that referenced this issue Jun 6, 2023
Dependency on crypto3::blueprint in zk/marshalling was
causing the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Part of NilFoundation/zkllvm-template#22
NickVolynkin added a commit that referenced this issue Jun 6, 2023
Dependency on crypto3::blueprint in zk/marshalling was causing
the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Resolves #22
NickVolynkin added a commit that referenced this issue Jun 6, 2023
Dependency on crypto3::blueprint in zk/marshalling was causing
the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Resolves #22
NickVolynkin added a commit to NilFoundation/crypto3 that referenced this issue Jun 6, 2023
Dependency on crypto3::blueprint in zk/marshalling was
causing the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Part of NilFoundation/zkllvm-template#22
NickVolynkin added a commit that referenced this issue Jun 12, 2023
Dependency on crypto3::blueprint in zk/marshalling was causing
the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Resolves #22
NickVolynkin added a commit that referenced this issue Jun 12, 2023
Dependency on crypto3::blueprint in zk/marshalling was causing
the following error:

```
CMake Error at cmake/modules/share/modules/cmake/CMFuture.cmake:83 (_add_library):
  Target "zkllvm_circuit" links to target "crypto3::blueprint" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
```

Resolves #22
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

Successfully merging a pull request may close this issue.

1 participant