bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glibc-2.2.3: linux/i386/sigcontextinfo.h


From: Scott McPeak
Subject: glibc-2.2.3: linux/i386/sigcontextinfo.h
Date: Mon, 6 Aug 2001 05:44:21 -0700 (PDT)

When compilling glibc-2.2.3 under gcc-2.95.2 with binutils-2.9.1 on
x86/Linux, I encountered this compile error in linuxthreads:

  gcc signals.c -c ...(rest of cmd line)...
  /tmp/cci4X91l.s: Assembler messages:
  /tmp/cci4X91l.s:1141: Error: operands given don't match any known 386 
instruction
  /tmp/cci4X91l.s:1148: Error: operands given don't match any known 386 
instruction
  make[2]: Leaving directory `/home/scott/bld/glibc-2.2.3/linuxthreads'

I tracked this down to some inline assembler syntax in
sysdeps/unix/sysv/linux/i386/sigcontextinfo.h which the assembler
didn't like.  Specifically, it used "rep movsl", but the assembler
wanted to see "rep" on its own line.  I've attached a patch.

I now recognize that the problem is the old binutils.  Thus, another
possible solution is to change the configure script so it demands a
binutils version capable of handling 'rep' on the same line; I don't
know where the version break is, though.

A third possibility is to add this to the FAQ, though I think the FAQ
needs to be reorganized anyway.  Separate out the problems that occur
during compiling, from those that occur duing installing, from those
that occur after installing (with other programs).

-Scott

Attachment: sigcontextinfo.h.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]