[klibc] build failures with 2.6.33-rc

Kevin Hilman khilman at deeprootsystems.com
Mon Feb 1 16:17:14 PST 2010


Hello,

I'm trying to build klibc with 2.6.33 (currently .33-rc5) and can't
seem to build for either x86 or ARM.  I'm using the master branch from
git://git.kernel.org/pub/scm/libs/klibc/klibc.git.

The include path fix[1] got me past the first hurdle, but I still run into
various compiler errors, so it makes me think I have something more basic
that is wrong in my setup.

Below is the build log for ARM[3] and for x86[4].  For x86, my host
system is Ubuntu 9.10 (gcc 4.4.1), and for ARM my target toolchain is
CodeSourcery 2009q1 (gcc 4.3.3) and I've also added the 'Fix arm
signals' patch[2] to my tree, but that seems to be a fix for a
different problem than I'm currently seeing.

Any pointers would be grealy appreciated,

Kevin

[1] http://www.zytor.com/pipermail/klibc/2009-September/002457.html
[2] http://www.zytor.com/pipermail/klibc/2010-January/002472.html

[3] build log on ARM:
  [...]
  KLIBCCC usr/klibc/nrand48.o
  KLIBCCC usr/klibc/srand48.o
  KLIBCCC usr/klibc/seed48.o
  KLIBCCC usr/klibc/inet/inet_ntoa.o
In file included from usr/klibc/../include/netinet/in.h:11,
                 from usr/klibc/../include/arpa/inet.h:11,
                 from usr/klibc/inet/inet_ntoa.c:6:
usr/klibc/../include/sys/socket.h:49: warning: 'struct msghdr' declared inside parameter list
usr/klibc/../include/sys/socket.h:49: warning: its scope is only this definition or declaration, which is probably not what you want
usr/klibc/../include/sys/socket.h:50: warning: 'struct msghdr' declared inside parameter list
In file included from usr/klibc/../include/netinet/in.h:12,
                 from usr/klibc/../include/arpa/inet.h:11,
                 from usr/klibc/inet/inet_ntoa.c:6:
linux/include/linux/in.h:182: error: expected specifier-qualifier-list before 'sa_family_t'
make[2]: *** [usr/klibc/inet/inet_ntoa.o] Error 1
make[1]: *** [all] Error 2
make: *** [klibc] Error 2

[4] build log on x86:

  KLIBCCC usr/klibc/vsnprintf.o
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:7:1: warning: "_NSIG_BPW" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:17:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:67:1: warning: "SA_NOCLDSTOP" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:76:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:68:1: warning: "SA_NOCLDWAIT" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:77:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:69:1: warning: "SA_SIGINFO" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:78:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:70:1: warning: "SA_ONSTACK" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:79:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:71:1: warning: "SA_RESTART" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:80:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:72:1: warning: "SA_NODEFER" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:81:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:73:1: warning: "SA_RESETHAND" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:82:1: warning: this is the location of the previous definition
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:95: error: conflicting types for ‘sigset_t’
usr/include/arch/i386/klibc/archsignal.h:22: note: previous declaration of ‘sigset_t’ was here
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:104: error: redefinition of ‘struct sigaction’
make[2]: *** [usr/klibc/vsnprintf.o] Error 1
make[1]: *** [all] Error 2
make: *** [klibc] Error 2



More information about the klibc mailing list