From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by sourceware.org (Postfix) with ESMTPS id 180693858409 for ; Mon, 29 Nov 2021 19:40:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 180693858409 Date: Mon, 29 Nov 2021 19:40:01 +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: <9VZBa3MyrFzUObuozFYwjOZXPHDQw0ZJr-_NUah9O8ni49Zfx48rRhGh8i_mhlHQegO51-9DiojH4onhYtqsYEc-_gQz8O73M2TLb7rRuMI=@protonmail.com> In-Reply-To: <02bd01d7e51b$3abf6b20$b03e4160$@franke.ms> References: <02bd01d7e51b$3abf6b20$b03e4160$@franke.ms> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_MSPIKE_H2, 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 19:40:06 -0000 I am sure this is not a common practice, but since I couldn't get gcc to co= mpile and I am out of ideas as to why libgcc is not picking up the environm= ent variables, I decided to share the chroot I am trying to build from. The file can be found here: https://mega.nz/file/qqBB2QKZ#mQVV3Vqyre6MYtdGJ= lx2rNq7el8Aiimr6uv4aTZR97g When I chroot I firstly run the command to populate the environment variabl= es: . /opt/webos-sdk-x86_64/1.0.g/environment-setup-armv7a-neon-webos-linux-gnu= eabi Then execute the following commands to start the build process: cd /root/gcc-build CC=3D"arm-webos-linux-gnueabi-gcc -march=3Darmv7-a -mfpu=3Dneon -mfloat-abi= =3Dsoftfp --sysroot=3D/opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webo= s-linux-gnueabi" CXX=3D"arm-webos-linux-gnueabi-g++ -march=3Darmv7-a -mfpu= =3Dneon -mfloat-abi=3Dsoftfp --sysroot=3D/opt/webos-sdk-x86_64/1.0.g/sysroo= ts/armv7a-neon-webos-linux-gnueabi" ../gcc-6.2.0/configure --prefix=3D/opt/= webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-gnueabi --with-mpfr= =3D/opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-gnueabi --h= ost=3Darmv7a-linux-gnueabi --target=3Darmv7a-linux-gnueabi --build=3Dx86_64= -linux-gnu make -j8 Right now, the folder contains a state where it fails with stdio.h no such = file or directory. If you skip the configure part and run make -j8 directly= after setting the env vars, you can see what's going on. I appreciate any feedback! Thanks