From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: gcc-4.7.4: libgcc2.h:157: error: unable to emulate 'TF' Date: Tue, 10 Jul 2018 09:31:53 +0200 Message-ID: References: <87sh4sny8j.fsf@gnu.org> <5B43A955.7090904@mutluit.com> <87muv0nqoi.fsf@gnu.org> <5B442D84.8030805@mutluit.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000070c7f30570a020d4" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcn86-0006r0-A1 for guix-devel@gnu.org; Tue, 10 Jul 2018 03:32:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcn84-00085w-Sc for guix-devel@gnu.org; Tue, 10 Jul 2018 03:32:10 -0400 In-Reply-To: <5B442D84.8030805@mutluit.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: um@mutluit.com Cc: gcc-help@gcc.gnu.org, Guix-devel --00000000000070c7f30570a020d4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable U.Mutlu ezt =C3=ADrta (id=C5=91pont: 2018. j=C3=BAl. 10., = K, 5:53): > Jan Nieuwenhuizen wrote on 07/09/2018 09:40 PM: > > U.Mutlu writes: > > > >> What do you get if you grep for "error: " in the xxx/libgcc/config.log > >> under the builddir? > > > > janneke@guix-x86 /tmp/guix-build-gcc-mesboot-4.7.4.drv-0/gcc-4.7.4$ > grep 'error: ' i386-unknown-linux/libgcc/config.log > > conftest.c:9:28: error: ac_nonexistent.h: No such file or directory > > conftest.c:13: error: size of array 'test_array' is negative > > conftest.c:13: error: size of array 'test_array' is negative > > conftest.c:13: error: size of array 'test_array' is negative > > conftest.c:13: error: size of array 'test_array' is negative > > conftest.c:14: error: size of array 'test_array' is negative > > conftest.c:14: error: size of array 'test_array' is negative > > conftest.c:14: error: size of array 'test_array' is negative > > conftest.c:14: error: size of array 'test_array' is negative > > conftest.c:14: error: size of array 'test_array' is negative > > conftest.c:11: error: expected '=3D', ',', ';', 'asm' or '__attribute__= ' > before 'x' > > conftest.c:11: error: expected '=3D', ',', ';', 'asm' or '__attribute__= ' > before '_Fract' > > > >> It would also be helpful if you could post also your libiberty/config.= h > > > > Sure, attached. > > > > janneke > > > You have attached config.h of 2 targets. > Is just one of them failing, or both? > And of course: are they both using the same target arch, just differing i= n > 64bit/32bit? > > The difference in them is: > diff /tmp/build-i686-pc-linux-gnu--libiberty--config.h > /tmp/host-i386-unknown-linux--libiberty--config.h | less -Sn > 171c171 > < #define HAVE_MMAP 1 > --- > > /* #undef HAVE_MMAP */ > 444c444 > < #define STACK_DIRECTION -1 > --- > > #define STACK_DIRECTION 0 > > If they both are the same arch then I would suggest to get the one fixed > first > where the STACK_DIRECTION is seemingly detected wrongly. > > > And don't use -Werror when compiling, ie. don't treat warnings as error. > > > And try to find out the reason for the above configure-error: > > > conftest.c:11: error: expected '=3D', ',', ';', 'asm' or '__attribute_= _' > before 'x' > > conftest.c:11: error: expected '=3D', ',', ';', 'asm' or '__attribute_= _' > before '_Fract' > > > I forgot to ask: please post also the "error: "'s in libiberty/config.log= , > ie. > the grep-output like above. > > > > It seems that the errors you were getting are related to 128 bit floating point support. It also seems that 128 bit floating point support is enabled on 64 bits. I'm not sure about the 32 bit case though, do you get the same error there? --00000000000070c7f30570a020d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
U.Mutlu <um@mutluit.com> ezt =C3=ADrta (id=C5= =91pont: 2018. j=C3=BAl. 10., K, 5:53):
Jan Nieuwenhuizen wrote on 07/09/2018 09:40 PM:
> U.Mutlu writes:
>
>> What do you get if you grep for "error: " in the xxx/lib= gcc/config.log
>> under the builddir?
>
> janneke@guix-x86 /tmp/guix-build-gcc-mesboot-4.7.4.drv-0/gcc-4.7.4$ gr= ep 'error: ' i386-unknown-linux/libgcc/config.log
> conftest.c:9:28: error: ac_nonexistent.h: No such file or directory > conftest.c:13: error: size of array 'test_array' is negative > conftest.c:13: error: size of array 'test_array' is negative > conftest.c:13: error: size of array 'test_array' is negative > conftest.c:13: error: size of array 'test_array' is negative > conftest.c:14: error: size of array 'test_array' is negative > conftest.c:14: error: size of array 'test_array' is negative > conftest.c:14: error: size of array 'test_array' is negative > conftest.c:14: error: size of array 'test_array' is negative > conftest.c:14: error: size of array 'test_array' is negative > conftest.c:11: error: expected '=3D', ',', ';'= , 'asm' or '__attribute__' before 'x'
> conftest.c:11: error: expected '=3D', ',', ';'= , 'asm' or '__attribute__' before '_Fract'
>
>> It would also be helpful if you could post also your libiberty/con= fig.h
>
> Sure, attached.
>
> janneke


You have attached config.h of 2 targets.
Is just one of them failing, or both?
And of course: are they both using the same target arch, just differing in =
64bit/32bit?

The difference in them is:
diff /tmp/build-i686-pc-linux-gnu--libiberty--config.h
/tmp/host-i386-unknown-linux--libiberty--config.h |=C2=A0 less -Sn
171c171
< #define HAVE_MMAP 1
---
=C2=A0> /* #undef HAVE_MMAP */
444c444
< #define STACK_DIRECTION -1
---
=C2=A0> #define STACK_DIRECTION 0

If they both are the same arch then I would suggest to get the one fixed fi= rst
where the STACK_DIRECTION is seemingly detected wrongly.


And don't use -Werror when compiling, ie. don't treat warnings as e= rror.


And try to find out the reason for the above configure-error:

=C2=A0> conftest.c:11: error: expected '=3D', ',', '= ;', 'asm' or '__attribute__'
before 'x'
=C2=A0> conftest.c:11: error: expected '=3D', ',', '= ;', 'asm' or '__attribute__'
before '_Fract'


I forgot to ask: please post also the "error: "'s in libibert= y/config.log, ie.
the grep-output like above.




It seems that the errors you were gett= ing are related to 128 bit floating point support. It also seems that 128 b= it floating point support is enabled on 64 bits. I'm not sure about the= 32 bit case though, do you get the same error there?
=C2=A0
--00000000000070c7f30570a020d4--