Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

DlError following wiki "Getting Started": "hello.so: undefined symbol: lucet_vmctx_grow_memory" #360

@vvuk

Description

@vvuk

Following the "Your first application" instructions here: https://github.com/fastly/lucet/wiki/Your-first-Lucet-application

I end up with:

vladimir@frost:~/proj/lucet/hello$ wasm32-wasi-clang -Ofast -o hello.wasm hello.c
vladimir@frost:~/proj/lucet/hello$ lucetc-wasi -o hello.so hello.wasm
vladimir@frost:~/proj/lucet/hello$ file hello.so
hello.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
vladimir@frost:~/proj/lucet/hello$ file hello.wasm
hello.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)
vladimir@frost:~/proj/lucet/hello$ lucet-wasi hello.so
thread 'main' panicked at 'module can be loaded: DlError(Custom { kind: Other, error: "/lucet/hello/hello.so: undefined symbol: lucet_vmctx_grow_memory" })', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

I see some bits like issue #73 and #194 -- but those are both with Rust, and I don't see any info on how to get the symbols linked to the C-based .so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions