This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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]

Re: [PATCH] glibc-ports-2.7 ARM DOCARGS assembler error patch


On Friday 22 February 2008, Deepak Barua wrote:
>                       This is my first patch in glibc-ports i get the
> following error when i compile my linux-2.6.23 kernel for ARM
> architecture
>
>        ) | arm-linux-gcc -c -I../include
> -I/usr/arm/packages/toolchain/glibc-build-1/misc
> -I/usr/arm/packages/toolchain/glibc-build-1 -I../ports/sysdeps/arm/elf
> -I../ports/sysdeps/unix/sysv/linux/arm/nptl
> -I../ports/sysdeps/unix/sysv/linux/arm
> -I../ports/sysdeps/unix/sysv/linux -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../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv
> -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm
> -I../ports/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix
> -I../sysdeps/posix -I../ports/sysdeps/arm/nptl -I../ports/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 -I../ports -I../nptl
> -I.. -I../libio -I. -nostdinc -isystem
> /usr/lib/gcc/arm-linux/4.2.2/include -isystem
> /usr/arm-linux/usr/include -D_LIBC_REENTRANT -include
> ../include/libc-symbols.h -DASSEMBLER -x assembler-with-cpp -o
> /usr/arm/packages/toolchain/glibc-build-1/misc/splice.o -
> <stdin>: Assembler messages:
> <stdin>:2: Error: bad instruction `docargs_6'
> <stdin>:2: Error: bad instruction `undocargs_6'
> make[2]: *** [/usr/arm/packages/toolchain/glibc-build-1/misc/splice.o]
> Error 1 make[2]: Leaving directory
> `/usr/arm/packages/toolchain/glibc-2.7/misc' make[1]: *** [misc/subdir_lib]
> Error 2
> make[1]: Leaving directory `/usr/arm/packages/toolchain/glibc-2.7'
> make: *** [all] Error 2
>
>
> I removed the references to docargs in
> /glibc-ports-2.7/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h so
> that solves the problem.
>
> How ever i have not tested for larger impact of this removal of this
> instruction ...

clearly ... your patch just broke the arm code completely

> Logically since the ARM assembler does not recognize this instruction
> i beleive there is no harm in removing any reference to this .

the logic is "if there is no assembly code, there cant be anything for the 
assembler to error on"

search the Gentoo or Debian glibc patchsets.  both have the real fix (which 
has been posted but not merged).
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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