[uClibc 0001386]: 0.9.28.2 fails to build on alpha

bugs at busybox.net bugs at busybox.net
Sun Jun 10 09:25:27 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1386 
====================================================================== 
Reported By:                wigyori
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1386
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             06-08-2007 05:33 PDT
Last Modified:              06-10-2007 02:25 PDT
====================================================================== 
Summary:                    0.9.28.2 fails to build on alpha
Description: 
I've tried to build an uclibc for alpha with binutils-2.17 and gcc-4.1.2,
but it fails with the following errors at sem.c:

make[7]: Entering directory
`/store/alpha/trunk/toolchain_build_alpha/uClibc-0.9.28.2/libc/misc/sysvipc'
alpha-linux-uclibc-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -Os -pipe -funit-at-a-time -fno-stack-protector
-fno-builtin -nostdinc -D_LIBC -I../../../include -I.  -Os
-funit-at-a-time   -isystem
/store/alpha/trunk/staging_dir_alpha/lib/gcc/alpha-linux-uclibc/4.1.2/include
-DNDEBUG -fPIC -DL_semget sem.c -c -o semget.o
In file included from ../../../include/bits/syscalls.h:11,
                 from ../../../include/sys/syscall.h:34,
                 from ../../../include/syscall.h:1,
                 from ipc.h:3,
                 from sem.c:22:
../../../include/asm/unistd.h:350:1: warning: "__NR_sys_epoll_create"
redefined
In file included from ../../../include/sys/syscall.h:32,
                 from ../../../include/syscall.h:1,
                 from ipc.h:3,
                 from sem.c:22:
../../../include/bits/sysnum.h:983:1: warning: this is the location of the
previous definition
In file included from ../../../include/bits/syscalls.h:11,
                 from ../../../include/sys/syscall.h:34,
                 from ../../../include/syscall.h:1,
                 from ipc.h:3,
                 from sem.c:22:
../../../include/asm/unistd.h:351:1: warning: "__NR_sys_epoll_ctl"
redefined
In file included from ../../../include/sys/syscall.h:32,
                 from ../../../include/syscall.h:1,
                 from ipc.h:3,
                 from sem.c:22:
../../../include/bits/sysnum.h:986:1: warning: this is the location of the
previous definition
In file included from ../../../include/bits/syscalls.h:11,
                 from ../../../include/sys/syscall.h:34,
                 from ../../../include/syscall.h:1,
                 from ipc.h:3,
                 from sem.c:22:
../../../include/asm/unistd.h:352:1: warning: "__NR_sys_epoll_wait"
redefined
In file included from ../../../include/sys/syscall.h:32,
                 from ../../../include/syscall.h:1,
                 from ipc.h:3,
                 from sem.c:22:
../../../include/bits/sysnum.h:989:1: warning: this is the location of the
previous definition
sem.c:66: error: expected declaration specifiers or '...' before 'semget'
sem.c:66: error: expected declaration specifiers or '...' before 'key'
sem.c:66: error: expected declaration specifiers or '...' before 'nsems'
sem.c:66: error: expected declaration specifiers or '...' before 'semflg'
sem.c:66: warning: data definition has no type or storage class
sem.c:66: warning: type defaults to 'int' in declaration of '_syscall3'
make[7]: *** [semget.o] Error 1


Similar error applies to compiling semctl.o (sem.c:41, _syscall4() ).


====================================================================== 

---------------------------------------------------------------------- 
 wigyori - 06-10-07 02:25  
---------------------------------------------------------------------- 
Excerpt from libc/sysdeps/linux/alpha/bits/syscall.h:

/* Do something very evil for now.  Until we create our own syscall *
macros, short circuit bits/sysnum.h  and use asm/unistd.h instead */
#include <asm/unistd.h>

So this probably won't work until these are written. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-08-07 05:33  wigyori        New Issue                                    
06-08-07 05:33  wigyori        Status                   new => assigned     
06-08-07 05:33  wigyori        Assigned To               => uClibc          
06-08-07 05:42  wigyori        Issue Monitored: wigyori                     
06-10-07 02:25  wigyori        Note Added: 0002472                          
======================================================================




More information about the uClibc-cvs mailing list