[Bug other/79885] --with-build-sysroot= does not get honored throughout the build (fix-includes, CPP, CXXCPP, configure-stage2)

noloader at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 10 16:21:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885

Jeffrey Walton <noloader at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |noloader at gmail dot com

--- Comment #8 from Jeffrey Walton <noloader at gmail dot com> ---
I don't know how much of this observation applies, but:

$ ./configure --help | grep sysroot
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).

The description does not say anything about headers; it only says libraries.

I am certainly not advocating for it. In fact, I came across this bug report
because a --with-sysroot (not --with-build-sysroot) is not being honored, and
headers seem to be the problem.

By the way, when compiling the compiler, I though --host and --target are used.
"Build" indicates the machine the tools are running on. So wouldn't that be
--with-host-sysroot or --with-target-sysroot?


More information about the Gcc-bugs mailing list