Skip to content

Compile bug: fails to CPU build on fresh clone, potentially due to external changes from HF #204

Open

Description

@callanb5

Git commit

$ git rev-parse HEAD
84b6530

Operating systems

Linux

GGML backends

CUDA

Problem description & steps to reproduce

I'm trying to build the latest beellama.cpp on my up to date Arch Linux machine, but it throws an error.

git clone https://github.com/Anbeeld/beellama.cpp.git
cd beellama.cpp

cmake -B build
cmake --build build -j 8

First Bad Commit

I tried to revert to several prior commits & building from CPU, but the issue occurred everywhere else I tried as well.

From looking at it, I don't think this is a regression caused by changes to beellama.cpp, but an issue with beellama.cpp being incompatible with external UI assets hosted by Hugging Face. I think this commit from upstream might be related. I tried to cherrypick it, but it had a large number of conflicts.

Compile command

cmake -B build
cmake --build build -j 8

Relevant log output

CMake Error at /home/callanb5/beellama.cpp/scripts/ui-assets.cmake:137 (message):
  UI: current asset files:

      _app/immutable/assets/LlamaMono.7z2dnkpH.woff2
      _app/immutable/assets/LlamaSans.C2rXtH67.woff2
      _app/immutable/assets/bundle.dlt2eMn9.css
      _app/immutable/bundle.Dz2-236t.js
      _app/version.json
      apple-splash-landscape-1136x640.png
      apple-splash-landscape-1334x750.png
      apple-splash-landscape-2266x1488.png
      apple-splash-landscape-2360x1640.png
      apple-splash-landscape-2388x1668.png
      apple-splash-landscape-2532x1170.png
      apple-splash-landscape-2556x1179.png
      apple-splash-landscape-2622x1206.png
      apple-splash-landscape-2732x2048.png
      apple-splash-landscape-2778x1284.png
      apple-splash-landscape-2796x1290.png
      apple-splash-landscape-2868x1320.png
      apple-splash-landscape-dark-1136x640.png
      apple-splash-landscape-dark-1334x750.png
      apple-splash-landscape-dark-2266x1488.png
      apple-splash-landscape-dark-2360x1640.png
      apple-splash-landscape-dark-2388x1668.png
      apple-splash-landscape-dark-2532x1170.png
      apple-splash-landscape-dark-2556x1179.png
      apple-splash-landscape-dark-2622x1206.png
      apple-splash-landscape-dark-2732x2048.png
      apple-splash-landscape-dark-2778x1284.png
      apple-splash-landscape-dark-2796x1290.png
      apple-splash-landscape-dark-2868x1320.png
      apple-splash-portrait-1170x2532.png
      apple-splash-portrait-1179x2556.png
      apple-splash-portrait-1206x2622.png
      apple-splash-portrait-1284x2778.png
      apple-splash-portrait-1290x2796.png
      apple-splash-portrait-1320x2868.png
      apple-splash-portrait-1488x2266.png
      apple-splash-portrait-1640x2360.png
      apple-splash-portrait-1668x2388.png
      apple-splash-portrait-2048x2732.png
      apple-splash-portrait-640x1136.png
      apple-splash-portrait-750x1334.png
      apple-splash-portrait-dark-1170x2532.png
      apple-splash-portrait-dark-1179x2556.png
      apple-splash-portrait-dark-1206x2622.png
      apple-splash-portrait-dark-1284x2778.png
      apple-splash-portrait-dark-1290x2796.png
      apple-splash-portrait-dark-1320x2868.png
      apple-splash-portrait-dark-1488x2266.png
      apple-splash-portrait-dark-1640x2360.png
      apple-splash-portrait-dark-1668x2388.png
      apple-splash-portrait-dark-2048x2732.png
      apple-splash-portrait-dark-640x1136.png
      apple-splash-portrait-dark-750x1334.png
      apple-touch-icon-180x180.png
      build.json
      favicon-dark.ico
      favicon-dark.svg
      favicon.ico
      favicon.svg
      index.html
      manifest.webmanifest
      maskable-icon-512x512.png
      pwa-192x192.png
      pwa-512x512.png
      pwa-64x64.png
      recommended-mcp/context7.png
      recommended-mcp/exa.ico
      recommended-mcp/github-dark.png
      recommended-mcp/github-light.png
      recommended-mcp/huggingface.ico
      service-worker.js
      sw.js

  UI: missing required asset(s):

      workbox[hash].js

  UI: hint: try cleaning your build directory:
  /home/callanb5/beellama.cpp/build/tools/ui/dist
Call Stack (most recent call first):
  /home/callanb5/beellama.cpp/scripts/ui-assets.cmake:196 (ui_validate_assets)
  /home/callanb5/beellama.cpp/scripts/ui-assets.cmake:592 (emit_files)

Activity

  1. StrikeRougeAgent commented on Nov 23, 2026

    @StrikeRougeAgent

    Reproduced this independently on a fresh clone (Debian 13, GCC 14.2, CMake 3.31, CPU-only) and sent a fix in #208.

    The failure is in the asset validation, not the download: latest resolves to the SvelteKit 3 UI (upstream ggml-org/llama.cpp@67cf8967), so dist.tar.gz verifies and extracts fine, but scripts/ui-assets.cmake:137 still requires the pre-migration single-bundle names:

    -- UI: HF download succeeded, stamp updated (ggml-org/llama-ui|b1, resolved: latest)
    CMake Error at scripts/ui-assets.cmake:137 (message):
      UI: missing required asset(s):
          bundle[hash].js
          bundle[hash].css
          workbox[hash].js
    

    The "try cleaning your build directory" hint is misleading — the extracted tree is correct (sw.js, build.json, version.json, manifest.webmanifest, _app/immutable/entry/start.<hash>.js, _app/immutable/assets/*.css are all present).

    #208 ports upstream's current ui_validate_assets() so both layouts validate, and maps .mjs to application/javascript (the new UI ships pdf.worker.min.<hash>.mjs). Verified: prebuilt-UI build now reaches embedded 291 assets and links llama-cli/llama-server; legacy Vite layouts still validate; a deliberately broken tree still fails.

    Workaround until it lands, as noted above: cmake -B build -DLLAMA_USE_PREBUILT_UI=OFF.

    Comment drafted with AI assistance (autonomous agent) from measurements on the reporter's behalf.

  2. added a commit that references this issue on Nov 24, 2026
    688741c
  3. Anbeeld commented on Nov 27, 2026

    @Anbeeld
    Owner

    Should be fixed on v0.5.1 branch, please check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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