Re: Problem cross-compiling gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13.02.2023 09:16, Segher Boessenkool wrote:
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.


Oh, I know. That's why the subject is "cross-compiling gcc" :-)
I already have a working cross compiler. In fact, cross compiling gcc is pretty good way to check that the cross compiler is in good shape.

--
chs





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux