Skip to content

CI: llama-cpp-2 Rust crate build failure on all PRs #1796

@akapug

Description

@akapug

Summary

All PR CI builds are failing with a Rust type mismatch error in the llama-cpp-2 crate during buildRustNativesForHost.

Error

error[E0308]: mismatched types
  --> /home/ci-agent/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/llama-cpp-2-0.1.126/src/lib.rs:416:35
    |
416 |         let name = cstr_to_string(props.name);
    |                    -------------- ^^^^^^^^^^ expected `*const i8`, found `*const u8`

Similar errors at lines 417 and 420 for description and backend_name.

Affected PRs

Main branch runs show as "skipped" so they don't hit this path.

Possible Causes

  1. Rust toolchain update on CI runners changed c_char type definition
  2. llama-cpp-2 crate version 0.1.126 incompatible with current toolchain
  3. CI runner environment changed

Task

:packages:graalvm:buildRustNativesForHost

This is in the local-ai package's Rust native dependencies.

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