[Bug other/40046] GCC build fails due to host_address variable is empty
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 24 17:33:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40046
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |egallager at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Roman Marchenko from comment #0)
> There is the following line in configure script:
>
> eval `${CC-cc} -E conftest.c | grep host_address=`
>
> Since I have GREP_OPTIONS variable in my environment which looks like
> "GREP_OPTIONS=--color=always", some color codes are generated in grep's
> output. The issue is the "eval ..." does not work properly in this case and
> the host_address variable is empty.
>
> I have repaired the build by replacing the line with the following:
>
> eval `${CC-cc} -E conftest.c | grep --color=auto host_address=`
The GREP_OPTIONS environment variable is deprecated; don't use it:
https://www.gnu.org/software/grep/manual/html_node/Environment-Variables.html
More information about the Gcc-bugs
mailing list