Problem cross-compiling gcc
Segher Boessenkool
segher@kernel.crashing.org
Mon Feb 13 08:16:17 GMT 2023
On Sun, Feb 12, 2023 at 06:51:06PM +0100, Christer Solskogen via Gcc-help wrote:
> While cross compiling gcc with musl I see this:
> This is the configure line: /home/solskogen/gcc/configure --prefix=/usr
> --libexecdir=/lib --host=aarch64-centrix-linux-musl
> --target=aarch64-centrix-linux-musl --build=x86_64-pc-linux-gnu
> --enable-languages=c,c++ --disable-multilib --enable-checking=release
> --disable-nls --with-gcc-major-version-only --enable-plugin
> --disable-libstdcxx-pch --enable-default-pie --enable-default-ssp
> --disable-libsanitizer --enable-host-shared
That is not a cross-compiler, you are building a cross-built native
compiler here (host=target). To do that you already need a working
cross-compiler, so it is probably not what you intended to do.
To build a cross-compiler you should not normally give any --build= or
--host=, and instead use what is auto-detected for that. You'll end up
with build=host: a cross-compiler.
Segher
More information about the Gcc-help
mailing list