This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Assembler code problem in recent glibc releases


Help most appreciated. I'm running Mandriva Linux 2007.0 on an i686 machine, with
glibc-2.4-7mdv
gcc-4.2.4 compiled default for i686
binutils-2.19.1 (GNU Assembler version)
make-3.81
m4-1.4.13
I'm getting the following assembler-code error on glibc 2.5.1 and 2.7. I found problems with later glibc versions, by the way, and will describe them separately. I previously built and tested these on Mandriva 2006 with some updated tools.


Console log excerpts:
../sysdeps/unix/sysv/linux/bits/socket.h:271: warning: C99 inline functions
are not supported; using GNU89
In file included from ../include/link.h:46,
                 from ../include/dlfcn.h:3,
                 from ../sysdeps/generic/ldsodefs.h:32,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from ../sysdeps/i386/dl-procinfo.h:23,
                 from ../sysdeps/unix/sysv/linux/i386/dl-procinfo.h:21,
                 from ../sysdeps/i386/fpu/ftestexcept.c:23:
../nptl/sysdeps/pthread/bits/libc-lock.h:413: warning: C99 inline functions
are not supported; using GNU89
/home/dilbert/tmp/cc8ssEvC.s: Assembler messages:
/home/dilbert/tmp/cc8ssEvC.s:41: Error: suffix or operands invalid for
/`fnstsw'
make[2]: *** [/home2/on07/bldlib251/math/ftestexcept.o] Error 1
make[2]: Leaving directory `/home2/on07/glibc-2.5.1/math'
make[1]: *** [math/others] Error 2
make[1]: Leaving directory `/home2/on07/glibc-2.5.1'
make: *** [all] Error 2

make[2]: Entering directory `/home2/on07/glibc-2.7/math'
gcc ../sysdeps/i386/fpu/ftestexcept.c -c -std=gnu99 -fgnu89-inline -O2 -Wall
-Winline -Wwrite-strings -fmerge-all-constants -march=i686
-Wstrict-prototypes -mpreferred-stack-boundary=4    -Wno-uninitialized
-D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include
-I/home2/on07/bldlib27/math -I/home2/on07/bldlib27 -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../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/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.. -I../libio -I.
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1
-DIS_IN_libm=1    -o /home2/on07/bldlib27/math/ftestexcept.o -MD -MP -MF
/home2/on07/bldlib27/math/ftestexcept.o.dt -MT
/home2/on07/bldlib27/math/ftestexcept.o
/home/dilbert/tmp/ccCsRL6U.s: Assembler messages:
/home/dilbert/tmp/ccCsRL6U.s:41: Error: suffix or operands invalid for
/`fnstsw'
make[2]: *** [/home2/on07/bldlib27/math/ftestexcept.o] Error 1
make[2]: Leaving directory `/home2/on07/glibc-2.7/math'
make[1]: *** [math/others] Error 2
make[1]: Leaving directory `/home2/on07/glibc-2.7'
make: *** [all] Error 2

Is there any known incompatibility between the assembly code in glibc and current binutils? It doesn't make sense that assembler syntax would change.

John Tellefson

--
http://www.mozilla.org  Firefox browser, Thunderbird email, Seamonkey all-in-one, Sunbird calendar and more. Free open-source software for Windows, Linux, Mac OS and other systems


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]