This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
compiling libc5 on linux
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: compiling libc5 on linux
- From: "Marty Leisner" <leisner at rochester dot rr dot com>
- Date: Sat, 04 Dec 1999 17:41:53 -0500
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
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