Skip to content

Harsh configure error when compiler is missing #1023

@eyalitki

Description

@eyalitki

Background

When preparing to build the project on a clean machine (often a build container), the out-of-the-box error many developers (and devops engineers) get, is the following:

$ ./configure
Checking for gcc...
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
** ./configure aborting.

The source of the error is that the compiler itself is missing, hence the compilation test returns an error. This error was reported in multiple places, such as here and here and was also encountered by my colleagues several times (hence my awareness to this issue).

Suggested Fix

Add an initial configure test that will check that the identified compiler (GCC/CC) is indeed installed on the machine, and report an indicate error otherwise. Example:

$ ./configure
Checking for gcc...
Failed to find an installed compiler.
** ./configure aborting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions