From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 303E03870873 for ; Tue, 10 May 2022 05:50:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 303E03870873 Received: from [IPv6:240e:358:1178:9a00:dc73:854d:832e:3] (unknown [IPv6:240e:358:1178:9a00:dc73:854d:832e:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id B66C16680C; Tue, 10 May 2022 01:50:09 -0400 (EDT) Message-ID: <1481bed41648c4d50d82028cf9738ecd31bc4f44.camel@xry111.site> Subject: Re: stage1 gcc bootstrap fails looking for bits/libc-header-start.h From: Xi Ruoyao To: Dennis Clarke , Jonathan Wakely Cc: gcc-help Date: Tue, 10 May 2022 13:50:00 +0800 In-Reply-To: <2db3724d-b2a0-6356-3d0b-d7716b5c8e38@blastwave.org> References: <78ed50e6-c0b5-1002-49a4-e11ec14ee727@blastwave.org> <2db3724d-b2a0-6356-3d0b-d7716b5c8e38@blastwave.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 MIME-Version: 1.0 X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, LIKELY_SPAM_FROM, PDS_OTHER_BAD_TLD, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2022 05:50:14 -0000 On Mon, 2022-05-09 at 20:53 -0400, Dennis Clarke via Gcc-help wrote: > So that sort of looks the same but also I am not sure what is needed=20 > here.=C2=A0 As usual the package libc6-dev provides : >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 /usr/include/arm-linux-gnueabihf/bits/libc-heade= r-start.h >=20 > However that is in a weird place. Do I need host/target/foobar etc? Generally multiarch directory names are encoded in gcc/config/{arch}/t- linux* files and they have not to be exactly same as --target. Try: /opt/bw/build/gcc-12.1.0_debian_10_armv7l_imed.004/./gcc/xgcc -print-mu= ltiarch This command will print the multiarch directory name. And you can compare it with "arm-linux-gnueabihf" to see what's happening. (The OP's mail server doesn't like me, hope he can see the thread via list or someone can forward me.) --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University