From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by sourceware.org (Postfix) with ESMTPS id 11F223858417 for ; Mon, 29 Nov 2021 11:05:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 11F223858417 Date: Mon, 29 Nov 2021 11:05:42 +0000 To: "gcc-help@gcc.gnu.org" From: Mr Dini Reply-To: Mr Dini Subject: Re: Gcc build fails with test_real_width is negative Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_HK_NAME_FM_MR_MRS autolearn=ham autolearn_force=no version=3.4.4 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: Mon, 29 Nov 2021 11:05:51 -0000 Thank you for the quick reply. I have read meanwhile and found an explanati= on that in this case the wrong size is being cached and that's why the comp= ilation fails. So I had the idea to grab an extremely old 32 bit ubuntu 16.= 04 chroot and seemingly if I build from there I get past the previous issue= . However I encounter another one: https://pastebin.com/raw/WnAHLk32 I noticed that the Makefile failing is under host-armv7a-linux-gnueabi/libg= cc. If I manually edit this file to include the stdio.h file from my target= sysroot I get past it, as the file exists here: root@hal-9000:~/gcc-6.2.0# ls /opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-n= eon-webos-linux-gnueabi/usr/include/stdio.h /opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-gnueabi/usr/in= clude/stdio.h However this libgcc build seemingly ignores what I have set in the environm= ent, for example it wants to use armv7a-linux-gnueabi-cc instead of arm-web= os-linux-gnueabi-gcc like I specified when I ran configure on the root of t= he project. Seemingly this libgcc dependency building ignores all config va= rs that has been set before. I am unsure why. For example armv7a-linux-gnueabi-cc didn't even exist and so it errored fir= st, I had to symlink the right file to that path. I think the first step would be to debug why libgcc is not picking up the s= ysroot and CC configurations, but I tried to touch the Makefile manually to= include the /opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-g= nueabi/usr/include path so it gets past the stdio.h not found error. Then i= t fails a tiny bit later: https://pastebin.com/raw/D5DsQPid Also, you mentioned I am not supposed to build within the source tree. How = am I supposed to build then? outside of the gcc folder and by specifying "m= ake -C folder"? And last, but not least, I am quite a beginner here as you could probably t= ell. I have been trying to look for some pre-existing canadian cross build = scripts for arm gcc but surprisingly I haven't found any. Do you happen to = know one? I would love to take a look. Thanks