https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87769
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- On Tue, 30 Oct 2018, mte.zych at gmail dot com wrote: > ../gcc-source/configure --build=x86_64-linux-gnu \ > --host=x86_64-linux-gnu \ > --target=x86_64-linux-gnu \ If host = target that's a native compiler, and searches native system library directories. If you don't want that you need to configure with different host and target values (and probably use --with-sysroot= to point to an image of the native system library directories).