Skip to content

Build from src (without nix) on Mac CI/CD #987

Open
@F-WRunTime

Description

@F-WRunTime

Investigating Building from Src on MacOs. Following instructions has run into some issues. But building from source helps us track any issues building mac nix would not uncover unless we did it ourselves.

Objective:

  • Discover build from src issues not found through pulling down pre-build nix derivations

Done:

  • Successfully build locally on Mac
    • evm-semantics
    • Kontrol
  • Integrate build steps in test-pr.yml
    • evm-semantics
    • Kontrol
  • Update documentation
    • Clarify steps of blockchain-k-plugin: Run make poetry FIRST, THEN try and run poetry -C kemv-pyk run kdist...

Findings so far (and blockers):

  • Documentation is unclear between the setup steps of blockchain-k-plugin and returning to the primary build steps.
  • Investigating inability to build on mac following documentation.
  • Build fails to find headers provided by llvm (e.g. runtime/header.h and runtime/alloc.h)
  • Builder error so far
INFO 2025-03-13 09:58:47,950 pyk.utils - [PID=21788][stde] clang++: warning: /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/libcryptopp/include: 'linker' input unused [-Wunused-command-line-argument]
INFO 2025-03-13 09:58:47,952 pyk.utils - [PID=21788][stde] plugin-c/crypto.cpp:1:10: fatal error: 'cryptopp/keccak.h' file not found
INFO 2025-03-13 09:58:47,952 pyk.utils - [PID=21788][stde]     1 | #include <cryptopp/keccak.h>
INFO 2025-03-13 09:58:47,952 pyk.utils - [PID=21788][stde]       |          ^~~~~~~~~~~~~~~~~~~
INFO 2025-03-13 09:58:47,955 pyk.utils - [PID=21788][stde] clang++: warning: /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/libcryptopp/include: 'linker' input unused [-Wunused-command-line-argument]
INFO 2025-03-13 09:58:47,959 pyk.utils - [PID=21788][stde] plugin-c/hash_ext.cpp:1:10: fatal error: 'cryptopp/blake2.h' file not found
INFO 2025-03-13 09:58:47,959 pyk.utils - [PID=21788][stde]     1 | #include <cryptopp/blake2.h>
INFO 2025-03-13 09:58:47,959 pyk.utils - [PID=21788][stde]       |          ^~~~~~~~~~~~~~~~~~~
INFO 2025-03-13 09:58:47,961 pyk.utils - [PID=21788][stde] clang++: warning: /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/libcryptopp/include: 'linker' input unused [-Wunused-command-line-argument]
INFO 2025-03-13 09:58:47,969 pyk.utils - [PID=21788][stde] clang++: warning: /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/libcryptopp/include: 'linker' input unused [-Wunused-command-line-argument]
INFO 2025-03-13 09:58:47,973 pyk.utils - [PID=21788][stde] clang++: warning: /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/libcryptopp/include: 'linker' input unused [-Wunused-command-line-argument]
INFO 2025-03-13 09:58:47,974 pyk.utils - [PID=21788][stde] 1 error generated.
INFO 2025-03-13 09:58:47,974 pyk.utils - [PID=21788][stdo] mkdir -p /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/blake2/lib/
INFO 2025-03-13 09:58:47,980 pyk.utils - [PID=21788][stde] In file included from plugin-c/kzg.cpp:2:
INFO 2025-03-13 09:58:47,980 pyk.utils - [PID=21788][stde] plugin-c/plugin_util.h:7:10: fatal error: 'runtime/alloc.h' file not found
INFO 2025-03-13 09:58:47,980 pyk.utils - [PID=21788][stde]     7 | #include "runtime/alloc.h"
INFO 2025-03-13 09:58:47,980 pyk.utils - [PID=21788][stde]       |          ^~~~~~~~~~~~~~~~~
INFO 2025-03-13 09:58:47,980 pyk.utils - [PID=21788][stde] 1 error generated.
INFO 2025-03-13 09:58:47,981 pyk.utils - [PID=21788][stde] make: *** [plugin-c/hash_ext.o] Error 1
INFO 2025-03-13 09:58:47,982 pyk.utils - [PID=21788][stde] make: *** Waiting for unfinished jobs....
INFO 2025-03-13 09:58:47,982 pyk.utils - [PID=21788][stde] make: *** [plugin-c/kzg.o] Error 1
INFO 2025-03-13 09:58:47,985 pyk.utils - [PID=21788][stdo] ar qs /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/blake2/lib/blake2.a plugin-c/blake2-compress.o plugin-c/blake2-avx2.o plugin-c/blake2-generic.o
INFO 2025-03-13 09:58:47,985 pyk.utils - [PID=21788][stde] In file included from plugin-c/k.cpp:1:
INFO 2025-03-13 09:58:47,985 pyk.utils - [PID=21788][stde] plugin-c/k.h:5:10: fatal error: 'runtime/header.h' file not found
INFO 2025-03-13 09:58:47,985 pyk.utils - [PID=21788][stde]     5 | #include "runtime/header.h"
INFO 2025-03-13 09:58:47,985 pyk.utils - [PID=21788][stde]       |          ^~~~~~~~~~~~~~~~~~
INFO 2025-03-13 09:58:47,994 pyk.utils - [PID=21788][stde] In file included from plugin-c/plugin_util.cpp:1:
INFO 2025-03-13 09:58:47,994 pyk.utils - [PID=21788][stde] plugin-c/plugin_util.h:7:10: fatal error: 'runtime/alloc.h' file not found
INFO 2025-03-13 09:58:47,994 pyk.utils - [PID=21788][stde]     7 | #include "runtime/alloc.h"
INFO 2025-03-13 09:58:47,994 pyk.utils - [PID=21788][stde]       |          ^~~~~~~~~~~~~~~~~
INFO 2025-03-13 09:58:47,994 pyk.utils - [PID=21788][stde] 1 error generated.
INFO 2025-03-13 09:58:47,996 pyk.utils - [PID=21788][stde] make: *** [plugin-c/plugin_util.o] Error 1
INFO 2025-03-13 09:58:47,998 pyk.utils - [PID=21788][stde] ar: creating archive /private/tmp/kdist-evm-semantics-plugin-9aduau7k/build/blake2/lib/blake2.a
INFO 2025-03-13 09:58:48,205 pyk.utils - [PID=21788][stde] 1 error generated.
INFO 2025-03-13 09:58:48,207 pyk.utils - [PID=21788][stde] make: *** [plugin-c/k.o] Error 1
INFO 2025-03-13 09:58:48,212 pyk.utils - [PID=21788][stde] In file included from plugin-c/json.cpp:5:
INFO 2025-03-13 09:58:48,212 pyk.utils - [PID=21788][stde] plugin-c/k.h:5:10: fatal error: 'runtime/header.h' file not found
INFO 2025-03-13 09:58:48,212 pyk.utils - [PID=21788][stde]     5 | #include "runtime/header.h"
INFO 2025-03-13 09:58:48,212 pyk.utils - [PID=21788][stde]       |          ^~~~~~~~~~~~~~~~~~
`

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions