Bug#194631: asm/unistd.h: `__sc_4' conflicts with asm clobber list on powerpc
On Sun, May 25, 2003 at 01:05:50PM +0200, Gaudenz Steinlin wrote:
> Package: libc6-dev
> Version: 2.3.1-17
> busybox-cvs fails to build from source on powerpc. Here is the relevant
> part of the build log:
> gcc -I./include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wshadow -Os
> -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -c -o libbb/syscalls.o
> libbb/syscalls.c: In function `sysfs':
> libbb/syscalls.c:43: error: asm-specifier for variable `__sc_4' conflicts with asm clobber list
> libbb/syscalls.c:43: error: asm-specifier for variable `__sc_5' conflicts with asm clobber list
> libbb/syscalls.c: In function `pivot_root':
> libbb/syscalls.c:68: error: asm-specifier for variable `__sc_4' conflicts with asm clobber list
> make: *** [libbb/syscalls.o] Error 1
> make: Leaving directory `/build/buildd/busybox-cvs-0.60.99.cvs20030426'
> make: *** [build-arch-deb-stamp] Error 2
> I searched on google to find the cause of this problem. Two messages  I
> found suggest, that this is a kernel-headers problem in the file asm/unistd.h.
> This file is provided by libc6-dev. According to Benjamin Herrenschmidt, this
> big will be fiexed, if you update unistd.h with one from 2.4.21-rc* kernel.
> Locally I managed to compile busybox-cvs with this fix.
> The latest busybox-cvs is needed for debian-installer.
Fix libbb to use syscall () instead, please.
MontaVista Software Debian GNU/Linux Developer