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.

Simple AssemblyScript example fails to compile #436

Closed
@calavera

Description

@calavera

Hi,

I'm trying to compile AssemblyScript with Lucetc, but even the most basic example seems to not work. I'm pretty sure I'm missing something because I get this error:

Error: Lucet Module: Unknown module for symbol `env::abort

These are the steps I used to get to that point:

  1. Install AssemblyScript globally with npm install -g assemblyscript.
  2. Initialize a new AS project in the current directory with npx asinit ..
  3. Compile the wasm module with npm run asbuild:optimized.
  4. Compile the wasm module with lucetc with lucetc build/optimized.wasm -o app.

What's the expected abort symbol? I've seen some examples that use wasi_abort, but I don't want/need wasi.

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