Skip to content

Building failed with error: "Failed to execute C compiler" #773

@Serif-7

Description

@Serif-7

Reproduction steps

Environment

  • Platform: Fedora 34
  • Helix version: v0.4.1

Bug:

  Caused by:
      No such file or directory (os error 2)', helix-syntax/build.rs:172:36
  thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Failed to execute C compiler

  Caused by:
      No such file or directory (os error 2)', helix-syntax/build.rs:172:36
  thread 'main' panicked at 'assertion failed: `(left == right)`
    left: `0`,
   right: `28`', helix-syntax/build.rs:201:5

The first error was repeated in my terminal several times. The error on the bottom was not. gcc is installed and on my PATH. #642 had the same error, and it was fixed by installing gcc.

The issue seems to be at least related to the build_library().unwrap() function called in `helix-syntax/build.rs', but I don't know enough Rust to debug it.

Any help appreciated, would love to contribute.

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