From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 64F82385B511 for ; Mon, 13 Feb 2023 08:36:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64F82385B511 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pRUJf-0003Zd-4q for gcc-help@gcc.gnu.org; Mon, 13 Feb 2023 09:36:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gcc-help@gcc.gnu.org From: Christer Solskogen Subject: Re: Problem cross-compiling gcc Date: Mon, 13 Feb 2023 09:35:56 +0100 Message-ID: References: <20230213081617.GC25951@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Content-Language: en-US In-Reply-To: <20230213081617.GC25951@gate.crashing.org> X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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