Bug 209629 - binutils-2.18.50.0.4 breaks glibc-2.7-r1 build
Bug#: 209629 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: toolchain@gentoo.org Reported By: dirtyepic@gentoo.org
Component: Core system
URL: 
Summary: binutils-2.18.50.0.4 breaks glibc-2.7-r1 build
Keywords:  
Status Whiteboard: 
Opened: 2008-02-11 02:29 0000
Description:   Opened: 2008-02-11 02:29 0000
From the release notes:

Starting from the 2.18.50.0.4 release, the x86 assembler no longer
accepts

        fnstsw %eax

fnstsw stores 16bit into %ax and the upper 16bit of %eax is unchanged.
Please use

        fnstsw %ax 


i686-pc-linux-gnu-gcc ../sysdeps/i386/fpu/ftestexcept.c -c -std=gnu99
-fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants
-fno-strict-aliasing -g -march=i686 -pipe -Wstrict-prototypes
-mpreferred-stack-boundary=4    -Wno-uninitialized -D__NO_MATH_INLINES
-D__LIBC_INTERNAL_MATH_INLINES -I../include
-I/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-i686-pc-linux-gnu-nptl/math
-I/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-i686-pc-linux-gnu-nptl
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv
-I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports  -I..
-I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.2.2/include
-isystem /usr/lib/gcc/i686-pc-linux-gnu/4.2.2/include-fixed -isystem
/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h  
-DNOT_IN_libc=1 -DIS_IN_libm=1     -o
/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-i686-pc-linux-gnu-nptl/math/ftestexcept.o
-MD -MP -MF
/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-i686-pc-linux-gnu-nptl/math/ftestexcept.o.dt
-MT
/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-i686-pc-linux-gnu-nptl/math/ftestexcept.o
{standard input}: Assembler messages:
{standard input}:58: Error: suffix or operands invalid for `fnstsw'
make[2]: ***
[/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-i686-pc-linux-gnu-nptl/math/ftestexcept.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/sys-libs/glibc-2.7-r1/work/glibc-2.7/math'
make[1]: *** [math/others] Error 2
make[1]: Leaving directory
`/var/tmp/portage/sys-libs/glibc-2.7-r1/work/glibc-2.7'
make: *** [all] Error 2
 *
 * ERROR: sys-libs/glibc-2.7-r1 failed.

------- Comment #1 From Ryan Hill 2008-02-12 01:06:53 0000 -------
i should pay more attention to my mail.

http://sourceware.org/ml/libc-alpha/2008-01/msg00017.html

------- Comment #2 From SpanKY 2008-03-23 15:12:48 0000 -------
fixed in glibc-2.7-r2

------- Comment #3 From Ryan Hill 2008-11-14 04:11:13 0000 -------
*** Bug 246655 has been marked as a duplicate of this bug. ***

------- Comment #4 From Robin Johnson 2009-03-06 21:13:15 0000 -------
spanky: could you backport for glibc-2.6 since that's still x86 stable?

------- Comment #5 From SpanKY 2009-03-06 21:49:19 0000 -------
no.  stabilize glibc-2.8 already.