Skip to content

Cross-platform build portability #77

Description

@valentina2509

Cross-platform build portability

This is a tracking issue for defects that cause build or runtime failures on
specific platforms (Linux, macOS, aarch64) due to missing platform guards in
the build configuration.

Child issues

Issue Locus Status
#43windows-sys not target-gated lore-client:21, lore:32, lore-base:37, lore-revision:61 Cargo.toml PR #45 open
#30 — CLI mojibake in lore history on Windows lore-client/src/cli/terminal_size.rs, print_macros.rs No PR
#42 — aarch64 runtime crash after self-compile lore-base/build.rs:28–29 (-mcpu=neoverse-512tvb) Pending classification

Shared pattern

Each item results from a build-time or startup configuration that lacks a
platform guard, causing failure on platforms outside the intended target.

windows-sys gating (#43):
lore-storage/Cargo.toml:47–48 and lore-credential/Cargo.toml:28–29 are
the correct reference: [target.'cfg(target_os = "windows")'.dependencies].
Four crates declare windows-sys as an unconditional dependency, adding a
Windows-only transitive dependency to non-Windows builds. PR #45 is open.

CLI mojibake (#30):
The Windows console defaults to a legacy code page on many configurations.
Adding SetConsoleOutputCP(CP_UTF8) under #[cfg(target_os = "windows")] at
CLI startup is the standard fix.

aarch64 crash (#42):
lore-base/build.rs:28–29 passes -mcpu=neoverse-512tvb unconditionally to
the C compiler. The Neoverse 512TVB microarch enables SVE2 and other
extensions not available on all aarch64 hardware. Binaries compiled with this
flag crash with illegal hardware instruction on hardware that does not
implement those extensions. The flag should be gated on a CPU-capability check
or a cargo:warning= should alert the user that their hardware does not
support this build path.

Fix directions

Background

Identified in the open-bug theme analysis (triage/2026-06-bug-theme-analysis.md,
branch valentina2509:docs/bug-theme-analysis).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions