Skip to content

How to Use JIT #1192

@theduke

Description

@theduke

usage.md mentions that the JIT mode requires certain dynamic libraries, but it doesn't specify which ones or how to set them up.

Trying to run jit/lazy-jit results in a bunch of linker errors for me.

The error messages refer to libc items.

  = note: ld.lld: error: /home/theduke/dev/github.com/bjorn3/rustc_codegen_cranelift/build/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-64ad50e1415b1d9b.so: undefined reference to stat64@GLIBC_2.33 [--no-allow-shlib-undefined]
          ld.lld: error: /home/theduke/dev/github.com/bjorn3/rustc_codegen_cranelift/build/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-64ad50e1415b1d9b.so: undefined reference to fstat64@GLIBC_2.33 [--no-allow-shlib-undefined]
          ld.lld: error: /home/theduke/dev/github.com/bjorn3/rustc_codegen_cranelift/build/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-64ad50e1415b1d9b.so: undefined reference to lstat64@GLIBC_2.33 [--no-allow-shlib-undefined]
          ld.lld: error: /home/theduke/dev/github.com/bjorn3/rustc_codegen_cranelift/build/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-64ad50e1415b1d9b.so: undefined reference to fstatat64@GLIBC_2.33 [--no-allow-shlib-undefined]
          collect2: error: ld returned 1 exit status

log.txt

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