You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
eyalitki
pushed a commit
to eyalitki/zlib
that referenced
this issue
Nov 22, 2024
Issue: madler#1023
Add a configure test that verifies the presence of the compiler
before we continue on using it in the following tests. If missing
return an indicative error to the user.
Signed-off-by: Eyal Itkin <[email protected]>
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:
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:
The text was updated successfully, but these errors were encountered: