Skip to content

blst submodule of c-kzg build: error: invalid CFI advance_loc expression #7880

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

Open
philknows opened this issue May 27, 2025 · 0 comments
Open
Labels
meta-bug Issues that identify a bug and require a fix. meta-investigate Issues found that require further investigation and may not have a specific resolution/fix scope-ux Issues for CLI UX or general consumer UX.

Comments

@philknows
Copy link
Member

Describe the bug

A user in our discord reported that they're having trouble building Lodestar locally due to this error:

/var/folders/9x/kpv57hyn1mx4d_4b2jtjlp9h0000gn/T/assembly-173008.s:9678:1: error: invalid CFI advance_loc expression
.cfi_adjust_cfa_offset 8
^
/var/folders/9x/kpv57hyn1mx4d_4b2jtjlp9h0000gn/T/assembly-173008.s:9754:1: error: invalid CFI advance_loc expression
.cfi_adjust_cfa_offset 8
^
make: *** [Release/obj.target/kzg/deps/blst/build/assembly.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/justin/Projects/lodestar/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Darwin 24.5.0
gyp ERR! command "/Users/justin/.nvm/versions/node/v22.14.0/bin/node" "/Users/justin/Projects/lodestar/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/justin/Projects/lodestar/node_modules/c-kzg
gyp ERR! node -v v22.14.0

Expected behavior

Lodestar should build on macOS 15.5. It was not reproducing on some other Mac M2s with the same configuration, this one was unique to the reporter's environment.

Steps to reproduce

No response

Additional context

User reports using:

MacOs 15.5
Node v22.14.0

After consulting with AI, this error could be due to our outdated blst submodule of c-kzg and we may need to update c-kzg to resolve. For AI context, see: https://www.perplexity.ai/search/when-trying-to-build-c-kzg-for-U.ZLj5WMRs67AUNFSJzeEA

Operating system

macOS

Lodestar version or commit hash

unstable

@philknows philknows added meta-bug Issues that identify a bug and require a fix. scope-ux Issues for CLI UX or general consumer UX. meta-investigate Issues found that require further investigation and may not have a specific resolution/fix labels May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-bug Issues that identify a bug and require a fix. meta-investigate Issues found that require further investigation and may not have a specific resolution/fix scope-ux Issues for CLI UX or general consumer UX.
Projects
None yet
Development

No branches or pull requests

1 participant