bug-glibc
[Top][All Lists]
Advanced

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

Error compiling glibc-2.3.1 with gcc-20030310 snapshot.


From: Tamás Gergely
Subject: Error compiling glibc-2.3.1 with gcc-20030310 snapshot.
Date: Fri, 21 Mar 2003 11:30:05 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (BDP)

Hi!

I tried to compile glibc-2.3.1 for arm target with gcc-20030310, but it
reported an error:

/home/alec/gcc/gcc-install/linux/bin/arm-linux-gcc
../sysdeps/unix/sysv/linux/arm/sigaction.c -c -Os -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -fbranch-probabilities -fdata-sections
-ffunction-sections -fno-force-addr -fno-force-mem -fno-inline-functions
-fno-schedule-insns -g0  -fomit-frame-pointer    -I../include -I.
-I/home/alec/gcc/gcc/linux/build/lib/signal -I.. -I../libio
-I/home/alec/gcc/gcc/linux/build/lib -I../sysdeps/arm/elf
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm
-I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic  -nostdinc -isystem
/home/alec/gcc/gcc-install/linux/lib/gcc-lib/arm-linux/3.3/include -isystem
/home/alec/gcc/gcc/linux/sources/linux-2.4.18/include -D_LIBC_REENTRANT
-include ../include/libc-symbols.h      -o
/home/alec/gcc/gcc/linux/build/lib/signal/sigaction.o
../sysdeps/unix/sysv/linux/arm/sigaction.c:0: warning: file
/home/alec/gcc/gcc/linux/build/lib/signal/sigaction.da not found, execution
counts assumed to be zero
../sysdeps/unix/sysv/linux/arm/sigaction.c: In function `__libc_sigaction':
../sysdeps/unix/sysv/linux/arm/sigaction.c:100: error: asm-specifier for
variable `_a1' conflicts with asm clobber list
../sysdeps/unix/sysv/linux/arm/sigaction.c:139: error: asm-specifier for
variable `_a1' conflicts with asm clobber list

This error check was introduced in the gcc 3.3 branch.

The part of the source code is:
---
    result = INLINE_SYSCALL (rt_sigaction, 4, sig,
                       act ? __ptrvalue (&kact) : NULL,
                       oact ? __ptrvalue (&koact) : NULL, _NSIG / 8);
---

The (formatted) part of the preprocessed file:
---
result = (
   { unsigned int _sys_result;
     { register int _a1 asm ("a1");
       register int _a4 asm ("a4") = (int) (64 / 8);
       register int _a3 asm ("a3") = (int) (oact ? (&koact) : ((void *)0));
       register int _a2 asm ("a2") = (int) (act ? (&kact) : ((void *)0));
       _a1 = (int) (sig);
       asm volatile (
           "swi    %1      @ syscall "
           "rt_sigaction" : "=r"
           (_a1) :  "i"
           (((0x900000 +174))) ,
           "r" (_a1),
           "r" (_a2),
           "r" (_a3),
           "r" (_a4) : "a1",
           "memory"
       );
       _sys_result = _a1;
     }
     if (_sys_result >= (unsigned int) -4095) {
       (*__errno_location ()) = (-_sys_result);
       _sys_result = (unsigned int) -1;
     }
     (int) _sys_result;
   }
);
---

Is this a glibc bug or may I did something wrong?
If it is a bug, will it be corrected in the near future?

Thanks,
gertom

p.s: Please cc the answers to me, because I'm not a member of this list.
--
**************************************************************************
* Gergely Tamás                                    e-mail:address@hidden *
**************************************************************************





reply via email to

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