This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu 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]

compiling libc5 on linux



Well, this seems to be a useful place to ask this question...

I want a system running libc5 on my redhat 6.0 system for
development work (primarily with older mootif libraries).

Can I compile libc5 with gcc 2.95.2
(or do I need to use 2.7.2.3?)?

I get:
In file included from bcmp.c:30:
../sysdeps/i386/memcmp.c: In function `bcmp':
../sysdeps/i386/memcmp.c:27: Invalid `asm' statement:
../sysdeps/i386/memcmp.c:27: fixed or forbidden register 2 (cx) was spilled for 
class CREG.


The initial code is:
     19   __asm__ __volatile__ ("cld\n\t"
     20         "repe\n\t"
     21         "cmpsb\n\t"
     22         "je " LF(1) "\n\t"
     23         "sbbl %%eax,%%eax\n\t"
     24         "orb $1,%%al\n"
     25         LL(1)
     26         :"=a" (__res):"0" (0),"S" (cs),"D" (ct),"c" (count)
     27         :"si","di","cx");
     28   return __res;

What is wrong and how do I fix it?


Marty Leisner
leisner@rochester.rr.com

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