Repository navigation
Conversation
Follow-up to ontio#1454. Cross-compiling ontology-linux from a non-Linux host (or ontology-windows from non-Windows, etc.) silently disables cgo, which drops wasmvm's wasmjit integration and fails with 'undefined: WasmjitValidate' / 'undefined: invokeJit' -- a confusing error that looks like a missing symbol rather than a cgo/cross-compile issue. Confirmed by reproducing it locally and by forcing CGO_ENABLED=1, which then fails on missing Linux libc calls instead, showing this is host-OS-dependent rather than a Go version issue. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #1454, where I dug into why
make ontology-linuxfails on Go 1.22+ withundefined: WasmjitValidate/undefined: invokeJit— it's not a Go version regression, it's that cross-compiling dropswasmvm's cgo-based wasmjit integration silently (Go disables cgo by default whenever GOOS/GOARCH differ from the host). Native builds (including CI, which runsontology-linux/ontology-darwinon matchingubuntu-latest/macos-latestrunners) aren't affected.Adds a short comment above the
ontology-crosstargets so the next person hitting this doesn't have to re-diagnose it from scratch.🤖 Generated with Claude Code