Skip to content

fix: numkong build failure on ubuntu-22.04 CI (AVX-512 unsupported) #533

Closed

Description

@ajianaz

Problem

[email protected] (transitive dependency via uteke-core) fails to compile on ubuntu-22.04 CI runners due to AVX-512 instructions not supported by the GCC version:

cc: error: unrecognized command-line option '-mavx512fp16'
cc: error: unrecognized command-line option '-mamx-fp16'
cc: error: unrecognized command-line option '-mavx10.2-512'
cc: error: unrecognized command-line option '-mavxvnniint8'

This blocks Tauri builds for Linux consumers (CorIn desktop app).

Suggested Fix

  1. Conditional compile gate numkong behind a feature flag
  2. Pin older numkong version compatible with Ubuntu 22.04 GCC (12.x)
  3. Bump runner image to ubuntu-24.04 (GCC 14.x)

Impact

Blocks CorIn v0.2.0 Linux build. Workaround: skip Linux in release matrix.

Activity

  1. added
    bug
    on Jul 3, 2026
  2. ajianaz commented on Jul 3, 2026

    @ajianaz
    CollaboratorAuthor

    Root Cause Analysis

    Local build succeeds but CI fails due to different environments:

    Local (ARM Linux) CI (Ubuntu 22.04)
    Arch aarch64 x86_64
    GCC 14.2 (Debian 12) 12.x (Ubuntu 22.04)

    numkong is a transitive dependency of ort (ONNX Runtime). It uses AVX-512 instructions (-mavx512fp16, -mamx-fp16, -mavx10.2-512) that require GCC 13+. Ubuntu 22.04 ships GCC 12.

    On local ARM, numkong skips x86 AVX-512 code paths entirely (ARM uses NEON/SVE instead), so it compiles fine.

    ort is a hard dependency of uteke-core (not optional/feature-gated), so all consumers pull it in regardless of whether they need ONNX features.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions