Skip to content

fix(guest): install-native-crypto-deps target and ZKC_EXEC_FLAGS propagation - #3808

Merged
lorenzogentile404 merged 24 commits into
mainfrom
3728-fixci-execution-specs-tests
Sep 2, 2026
Merged

fix(guest): install-native-crypto-deps target and ZKC_EXEC_FLAGS propagation#3808
lorenzogentile404 merged 24 commits into
mainfrom
3728-fixci-execution-specs-tests

Conversation

@lorenzogentile404

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
@lorenzogentile404 lorenzogentile404 linked an issue Aug 17, 2026 that may be closed by this pull request
@lorenzogentile404 lorenzogentile404 added the Arithmetization Arithmetization team is in charge or involved in this task label Aug 17, 2026
@lorenzogentile404 lorenzogentile404 self-assigned this Aug 17, 2026
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
@lorenzogentile404 lorenzogentile404 changed the title fix: fix reference tests in the CI fix(arithmetization): reference tests in the CI Aug 19, 2026
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
@DavePearce
DavePearce requested a review from amkCha August 24, 2026 22:59
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
@@ -0,0 +1,422 @@
package main

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been deleted in main. Understand if the logic has been moved somewhere else.

@lorenzogentile404 lorenzogentile404 changed the title fix(arithmetization): reference tests in the CI fix(guest): install dependencies and ZKC_EXEC_FLAGS propagation Sep 1, 2026
@lorenzogentile404 lorenzogentile404 changed the title fix(guest): install dependencies and ZKC_EXEC_FLAGS propagation fix(guest): install-native-crypto-deps target and ZKC_EXEC_FLAGS propagation Sep 1, 2026
@lorenzogentile404 lorenzogentile404 changed the title fix(guest): install-native-crypto-deps target and ZKC_EXEC_FLAGS propagation fix(guest): install-native-crypto-deps target and ZKC_EXEC_FLAGS propagation Sep 1, 2026
Filter94
Filter94 previously approved these changes Sep 1, 2026
Comment thread riscv-guests/Makefile
$$sudo cp /tmp/blst-src/bindings/blst.h /tmp/blst-src/bindings/blst_aux.h "$$prefix/include/"; \
fi; \
if [ -f "$$prefix/lib/libmcl.so" ] || [ -f "$$prefix/lib/libmcl.dylib" ]; then \
if { [ -f "$$prefix/lib/libmcl.so" ] || [ -f "$$prefix/lib/libmcl.dylib" ]; } && { [ "$$uname_s" != "Darwin" ] || [ -f "$$prefix/lib/libmcl.a" ]; }; then \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know - what is this doing ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically there is a difference between Linux and MacOS in the libraries we install. In the case of MacOS (when uname_s is equal to Darwin) the file libmcl.a needs to be moved from the tmp folder under lib. In the case of Linux that file is already under lib.
So, when we are on MacOS and libmcl.a is not under lib, then we know that the library/target still needs to be executed fully, so we do not skip the body of this if.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the explanation - if the script adapts to both OS then, looks good 👍

# Convert and execute an already compiled external ELF
elf-exec: elf-to-json install-zkc
$(MAKE) -C $(MAKEFILE_DIR) --no-print-directory zkc-exec JSON=$(JSON_EXT)
$(MAKE) -C $(MAKEFILE_DIR) --no-print-directory zkc-exec JSON=$(JSON_EXT) ZKC_EXEC_FLAGS="$(ZKC_EXEC_FLAGS)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you calling elf-exec directly ? Through make -C risv-guests/l2-execution exec it's passed already

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I understand. Here I added the ZKC_EXEC_FLAGS otherwise at the internal invokation the default values was used instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the command line for an internal invocation ? you mean when you type make elf-exec directly ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, when a target is included as a dependency (in this case elf-to-json install-zkc) I call those internal, as the values of the flags are "inherited", while if you invoke make again, then it is like a fresh new call.

amkCha
amkCha previously approved these changes Sep 2, 2026
Signed-off-by: Lorenzo Gentile <lorenzo.gentile@consensys.net>
@lorenzogentile404
lorenzogentile404 dismissed stale reviews from amkCha and Filter94 via d34d926 September 2, 2026 14:50
@lorenzogentile404
lorenzogentile404 enabled auto-merge (squash) September 2, 2026 15:09
@lorenzogentile404
lorenzogentile404 requested review from Filter94 and removed request for Filter94 September 2, 2026 23:00

@DavePearce DavePearce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lorenzogentile404
lorenzogentile404 merged commit 9f00776 into main Sep 2, 2026
46 checks passed
@lorenzogentile404
lorenzogentile404 deleted the 3728-fixci-execution-specs-tests branch September 2, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arithmetization Arithmetization team is in charge or involved in this task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): execution specs tests

4 participants