Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99349 - genkernel fails to compile udev, since klibc cannot be compiled
Summary: genkernel fails to compile udev, since klibc cannot be compiled
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-17 11:24 UTC by Andreas Rueckert
Modified: 2005-11-05 05:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Rueckert 2005-07-17 11:24:50 UTC
It seems that genkernel lacks some includes for klibc, like posix_types, which
causes the klibc compile to fail.
Genkernel calls:
* udev: >> Compiling...
COMMAND: make j1  KERNEL_DIR=/usr/src/linux USE_KLIBC=true USE_LOG=false
DEBUG=false udevdir=/dev all etc/udev/udev.conf
and the messages are:
In file included from ../linux/include/linux/compiler.h:44,
                 from ../linux/include/linux/stddef.h:4,
                 from ../linux/include/linux/posix_types.h:4,
                 from ../include/sys/types.h:16,
                 from ../include/unistd.h:11,
                 from ../include/stdio.h:11,
                 from vsnprintf.c:13:
../linux/include/linux/compiler-gcc3.h:22:1: warning: "__attribute_pure__" redef
ined
In file included from ../include/unistd.h:9,
                 from ../include/stdio.h:11,
                 from vsnprintf.c:13:
../include/klibc/compiler.h:77:1: warning: this is the location of the previous
definition
In file included from ../linux/include/linux/compiler.h:44,
                 from ../linux/include/linux/stddef.h:4,
                 from ../linux/include/linux/posix_types.h:4,
                 from ../include/sys/types.h:16,
                 from ../include/unistd.h:11,
                 from ../include/stdio.h:11,
                 from vsnprintf.c:13:
../linux/include/linux/compiler-gcc3.h:23:1: warning: "__attribute_const__" rede
fined
In file included from ../include/unistd.h:9,
                 from ../include/stdio.h:11,
                 from vsnprintf.c:13:
../include/klibc/compiler.h:60:1: warning: this is the location of the previous
definition
In file included from ../include/sys/types.h:16,
                 from ../include/unistd.h:11,
                 from ../include/stdio.h:11,
                 from vsnprintf.c:13:
../linux/include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or d
irectory
In file included from ../include/unistd.h:11,
                 from ../include/stdio.h:11,
                 from vsnprintf.c:13:
../include/sys/types.h:18:23: asm/types.h: No such file or directory
In file included from ../include/unistd.h:11,
                 from ../include/stdio.h:11,
                 from vsnprintf.c:13:
../include/sys/types.h:25: error: syntax error before "ino_t"
../include/sys/types.h:25: warning: type defaults to `int' in declaration of `in
o_t'
../include/sys/types.h:25: warning: data definition has no type or storage class
../include/sys/types.h:26: error: syntax error before "mode_t"
../include/sys/types.h:26: warning: type defaults to `int' in declaration of `mo
de_t'
../include/sys/types.h:26: warning: data definition has no type or storage class
../include/sys/types.h:27: error: syntax error before "nlink_t"
../include/sys/types.h:27: warning: type defaults to `int' in declaration of `nl
ink_t'
--<more messages snipped>--

Reproducible: Always
Steps to Reproduce:
Just use my spec file and call catalyst -f livecd-stage2.spec

subarch: x86
version_stamp: seniorix-20050716
target: livecd-stage2
rel_type: default
profile: default-linux/x86/2005.0
snapshot: 20050716
source_subpath: default/livecd-stage1-x86-seniorix-20050716
portage_confdir: /usr/local/seniorix/livecd/etc/portage/

livecd/cdfstype: squashfs
livecd/gk_mainargs: --debuglevel=5
livecd/archscript: /usr/lib/catalyst/livecd/runscript/x86-archscript.sh
livecd/bootargs: dokeymap
livecd/runscript: /usr/lib/catalyst/livecd/runscript/default-runscript.sh
livecd/cdtar: /usr/lib/catalyst/livecd/cdtar/isolinux-3.09-memtest86+-cdtar.tar.bz2
livecd/iso: /usr/local/seniorix/livecd/seniorix-20050716.iso
livecd/fsscript: /usr/local/seniorix/livecd/fsscript.sh
livecd/splash_type: gensplash
livecd/splash_theme: livecd-2005.0
livecd/type: generic-livecd
livecd/motd: /usr/local/seniorix/livecd/20050716-motd.txt
livecd/overlay: /usr/local/seniorix/livecd/livecd-overlay
livecd/root_overlay: /usr/local/seniorix/livecd/livecd-root-overlay
#livecd/bootsplash: Gentoo-Hornet
livecd/rcadd: alsasound:boot coldplug:boot consolefont:default keymap:default
mkxf86config:default xdm:default
livecd/rcdel: local:default
livecd/devmanager: udev
livecd/volid: Seniorix 20050716
livecd/xinitrc:

boot/kernel: seniorix
boot/kernel/seniorix/sources: sys-kernel/gentoo-sources
boot/kernel/seniorix/config: /usr/local/seniorix/livecd/kernel-config
boot/kernel/seniorix/use: usb
boot/kernel/seniorix/extraversion: 20050716
#boot/kernel/seniorix/postconf: splashutils splash-themes-livecd

boot/kernel/seniorix/packages:
#       pcmcia-cs
        iptables
        alsa
        aumix

livecd/unmerge:
        autoconf automake bin86 binutils m4 bison ld.so make perl patch
linux-headers man-pages
        sash bison flex gettext texinfo ccache addpatches man groff miscfiles
livecd/empty:
        /var/tmp
        /var/cache
        /var/db
livecd/rm:
        /lib/*.a
        /usr/lib/*.a
        /usr/lib/gcc-lib/*/*/libgcj*
        /usr/X11R6/lib/*.a
        /var/log/emerge.log
        /var/log/genkernel.log
#       /usr/kde/3.3/share/autostart/panel.desktop


Actual Results:  
The kernel itself compiles, but udev compile fails.

Expected Results:  
compile and let catalyst create a nice bootable iso image.

Target platform is x86.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-07-17 14:36:43 UTC
You are missing linux-headers and/or a kernel source tree:

../include/sys/types.h:18:23: asm/types.h: No such file or directory
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-05 05:24:31 UTC
*** Bug 111546 has been marked as a duplicate of this bug. ***