Skip to content

building grammars broken on Alpine Linux #13155

Closed
@JonahBranch

Description

@JonahBranch

Summary

x86_64-alpine-linux-musl is an unknown cc-rs target which breaks the grammar build

Reproduction Steps

Output of cat /etc/os-release:

jone@phosphene helix $ cat /etc/os-release                             
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.20.3
PRETTY_NAME="Alpine Linux v3.20"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

I tried this:

  1. Cloning the hx git repo, following installation steps
  2. the hx binary builds fine, hx -g fetch works fine
  3. hx -g build fails

Here's the output:

jone@phosphene helix $ hx -g build                                    
Building 230 grammars


error occurred in cc-rs: unknown target `x86_64-alpine-linux-musl`.

NOTE: `cc-rs` only supports a fixed set of targets when not in a build script.
- If adding a new target, you will need to fork of `cc-rs` until the target
  has landed on nightly and the auto-generated list has been updated. See also
  the `rustc` dev guide on adding a new target:
  https://rustc-dev-guide.rust-lang.org/building/new-target.html
- If using a custom target, prefer to upstream it to `rustc` if possible,
  otherwise open an issue with `cc-rs`:
  https://github.com/rust-lang/cc-rs/issues/new

Helix log

I didn't find anything relevant in the logs, just errors about me trying to load non-existent themes.

Platform

Alpine Linux Version 3.20.3

Terminal Emulator

foot

Installation Method

source

Helix Version

25.01.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions