-
Notifications
You must be signed in to change notification settings - Fork 266
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
fix: Fixing fuzzing build after composer splitting #1317
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1f5831c
fix: Fixing fuzzing build after composer splitting
Rumata888 31bed07
Added fuzzing build to CI
Rumata888 0acbfa5
Fixing format weirdness
Rumata888 7174c7e
Fixes
Rumata888 78a4311
Attempt to add libfuzzer
Rumata888 0c9eff7
What if we add llvm?
Rumata888 5560164
Update Dockerfile.x86_64-linux-clang-fuzzing
ludamad 18d23df
Merge master
ludamad 3e3fc2c
Merge branch 'master' into is/fixing_fuzzing
ludamad 9ce7e1f
Attempt fix
ludamad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
circuits/cpp/barretenberg/cpp/dockerfiles/Dockerfile.x86_64-linux-clang-fuzzing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM alpine:3.18 AS builder | ||
RUN apk update && \ | ||
apk upgrade && \ | ||
apk add --no-cache \ | ||
build-base \ | ||
clang16 \ | ||
compiler-rt \ | ||
openmp-dev \ | ||
cmake \ | ||
ninja \ | ||
git \ | ||
curl \ | ||
perl | ||
|
||
WORKDIR /usr/src/barretenberg/cpp | ||
|
||
COPY . . | ||
# Build the entire project, as we want to check everything builds under clang | ||
RUN cmake --preset fuzzing && cmake --build --preset fuzzing | ||
|
||
FROM alpine:3.18 | ||
RUN apk update && apk add openmp | ||
COPY --from=builder /usr/src/barretenberg/cpp/srs_db /usr/src/barretenberg/cpp/srs_db |
22 changes: 12 additions & 10 deletions
22
circuits/cpp/barretenberg/cpp/src/barretenberg/bb/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
add_executable( | ||
bb | ||
main.cpp | ||
) | ||
if (NOT(FUZZING)) | ||
add_executable( | ||
bb | ||
main.cpp | ||
) | ||
|
||
target_link_libraries( | ||
bb | ||
PRIVATE | ||
barretenberg | ||
env | ||
) | ||
target_link_libraries( | ||
bb | ||
PRIVATE | ||
barretenberg | ||
env | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 13 additions & 11 deletions
24
circuits/cpp/barretenberg/cpp/src/barretenberg/grumpkin_srs_gen/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
add_executable( | ||
grumpkin_srs_gen | ||
grumpkin_srs_gen.cpp | ||
) | ||
if (NOT(FUZZING)) | ||
add_executable( | ||
grumpkin_srs_gen | ||
grumpkin_srs_gen.cpp | ||
) | ||
|
||
target_link_libraries( | ||
grumpkin_srs_gen | ||
PRIVATE | ||
srs | ||
ecc | ||
crypto_sha256 | ||
) | ||
target_link_libraries( | ||
grumpkin_srs_gen | ||
PRIVATE | ||
srs | ||
ecc | ||
crypto_sha256 | ||
) | ||
endif() |
22 changes: 12 additions & 10 deletions
22
circuits/cpp/barretenberg/cpp/src/barretenberg/solidity_helpers/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
barretenberg_module(stdlib_solidity_helpers plonk proof_system transcript crypto_pedersen_commitment polynomials crypto_sha256 ecc crypto_blake3s stdlib_primitives stdlib_pedersen_commitment stdlib_blake3s stdlib_blake2s srs) | ||
|
||
add_executable(solidity_key_gen key_gen.cpp) | ||
if (NOT(FUZZING)) | ||
add_executable(solidity_key_gen key_gen.cpp) | ||
|
||
add_executable(solidity_proof_gen proof_gen.cpp) | ||
add_executable(solidity_proof_gen proof_gen.cpp) | ||
|
||
target_link_libraries( | ||
solidity_key_gen | ||
stdlib_solidity_helpers | ||
) | ||
target_link_libraries( | ||
solidity_key_gen | ||
stdlib_solidity_helpers | ||
) | ||
|
||
target_link_libraries( | ||
solidity_proof_gen | ||
stdlib_solidity_helpers | ||
) | ||
target_link_libraries( | ||
solidity_proof_gen | ||
stdlib_solidity_helpers | ||
) | ||
endif() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't love how it autoformats concepts with another {} inside the {}, but that's an aside