i'm trying to compile a kernel into a chroot for a i686 cpu , the host is a core2 (x64) localhost linux # genkernel --arch-override=x86 all * Gentoo Linux Genkernel; Version 3.4.18 * Running with options: --arch-override=x86 all * Linux Kernel 3.13.7-gentoo for x86... * kernel: Using config from /etc/kernels/kernel-config-x86-3.13.7-gentoo * Previous config backed up to .config--2014-03-25--22-15-21.bak * kernel: >> Running mrproper... * >> Running oldconfig... * kernel: >> Cleaning... * >> Compiling 3.13.7-gentoo bzImage... * >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)... * >> Compiling 3.13.7-gentoo modules... * Copying config for successful build to /etc/kernels/kernel-config-x86-3.13.7-gentoo * blkid: >> Using cache * busybox: >> Applying patches... * - 1.18.1-openvt.diff * - busybox-1.19.3-mdstart.patch * - busybox-1.7.4-signal-hack.patch * busybox: >> Configuring... * busybox: >> Compiling... * ERROR: Failed to compile the "all" target... * -- Grepping log... -- SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --oldconfig Kconfig warning: (VIDEO_PVRUSB2 && VIDEO_TLG2300 && VIDEO_USBVISION && VIDEO_CX231XX && VIDEO_TM6000 && VIDEO_EM28XX && VIDEO_IVTV && VIDEO_MXB && VIDEO_CX18 && VIDEO_CX23885 && VIDEO_CX88 && VIDEO_BT848 && VIDEO_SAA7134 && VIDEO_SAA7164 && VIDEO_GO7007) selects VIDEO_TUNER which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_TUNER) warning: (VIDEO_PVRUSB2 && VIDEO_TLG2300 && VIDEO_USBVISION && VIDEO_CX231XX && VIDEO_TM6000 && VIDEO_EM28XX && VIDEO_IVTV && VIDEO_MXB && VIDEO_CX18 && VIDEO_CX23885 && VIDEO_CX88 && VIDEO_BT848 && VIDEO_SAA7134 && VIDEO_SAA7164 && VIDEO_GO7007) selects VIDEO_TUNER which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_TUNER) -- HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --silentoldconfig Kconfig warning: (VIDEO_PVRUSB2 && VIDEO_TLG2300 && VIDEO_USBVISION && VIDEO_CX231XX && VIDEO_TM6000 && VIDEO_EM28XX && VIDEO_IVTV && VIDEO_MXB && VIDEO_CX18 && VIDEO_CX23885 && VIDEO_CX88 && VIDEO_BT848 && VIDEO_SAA7134 && VIDEO_SAA7164 && VIDEO_GO7007) selects VIDEO_TUNER which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_TUNER) warning: (VIDEO_PVRUSB2 && VIDEO_TLG2300 && VIDEO_USBVISION && VIDEO_CX231XX && VIDEO_TM6000 && VIDEO_EM28XX && VIDEO_IVTV && VIDEO_MXB && VIDEO_CX18 && VIDEO_CX23885 && VIDEO_CX88 && VIDEO_BT848 && VIDEO_SAA7134 && VIDEO_SAA7164 && VIDEO_GO7007) selects VIDEO_TUNER which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_TUNER) -- CC [M] drivers/scsi/scsi_transport_fc.o CC [M] drivers/scsi/scsi_transport_sas.o CC [M] drivers/scsi/scsi_transport_srp.o CC [M] drivers/scsi/iscsi_boot_sysfs.o CC [M] drivers/scsi/advansys.o drivers/scsi/advansys.c:71:2: attention : #warning this driver is still not properly converted to the DMA API [-Wcpp] -- scripts/kconfig/mconf.c: In function 'exec_conf': scripts/kconfig/mconf.c:473:6: attention : ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -o Config.in .config:15:warning: trying to assign nonexistent symbol NITPICK .config:25:warning: trying to assign nonexistent symbol GETOPT_LONG .config:43:warning: trying to assign nonexistent symbol FEATURE_FULL_LIBBUSYBOX .config:46:warning: trying to assign nonexistent symbol BUILD_AT_ONCE .config:76:warning: trying to assign nonexistent symbol FEATURE_EDITING_FANCY_KEYS .config:101:warning: trying to assign nonexistent symbol FEATURE_GUNZIP_UNCOMPRESS .config:105:warning: trying to assign nonexistent symbol FEATURE_RPM_BZ2 .config:108:warning: trying to assign nonexistent symbol FEATURE_TAR_BZIP2 .config:109:warning: trying to assign nonexistent symbol FEATURE_TAR_LZMA .config:111:warning: trying to assign nonexistent symbol FEATURE_TAR_GZIP .config:112:warning: trying to assign nonexistent symbol FEATURE_TAR_COMPRESS .config:125:warning: trying to assign nonexistent symbol FEATURE_UNARCHIVE_TAPE .config:126:warning: trying to assign nonexistent symbol FEATURE_DEB_TAR_GZ .config:127:warning: trying to assign nonexistent symbol FEATURE_DEB_TAR_BZ2 .config:128:warning: trying to assign nonexistent symbol FEATURE_DEB_TAR_LZMA .config:172:warning: trying to assign nonexistent symbol LENGTH .config:291:warning: trying to assign nonexistent symbol FEATURE_AWK_MATH .config:294:warning: trying to assign nonexistent symbol FEATURE_DIFF_BINARY .config:296:warning: trying to assign nonexistent symbol FEATURE_DIFF_MINIMAL .config:353:warning: trying to assign nonexistent symbol DEBUG_INIT .config:413:warning: trying to assign nonexistent symbol FEATURE_MODPROBE_MULTIPLE_OPTIONS .config:414:warning: trying to assign nonexistent symbol FEATURE_MODPROBE_FANCY_ALIAS .config:421:warning: trying to assign nonexistent symbol FEATURE_2_6_MODULES .config:422:warning: trying to assign nonexistent symbol FEATURE_QUERY_MODULE_INTERFACE .config:454:warning: trying to assign nonexistent symbol MDADM .config:461:warning: trying to assign nonexistent symbol FEATURE_MKSWAP_V0 .config:491:warning: trying to assign nonexistent symbol DEBUG_CROND_OPTION .config:506:warning: trying to assign nonexistent symbol FEATURE_LESS_FLAGCS .config:549:warning: trying to assign nonexistent symbol FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP .config:553:warning: trying to assign nonexistent symbol FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES .config:618:warning: trying to assign nonexistent symbol DEBUG_TFTP .config:623:warning: trying to assign nonexistent symbol APP_UDHCPD .config:624:warning: trying to assign nonexistent symbol APP_DHCPRELAY .config:625:warning: trying to assign nonexistent symbol APP_DUMPLEASES .config:627:warning: trying to assign nonexistent symbol APP_UDHCPC .config:628:warning: trying to assign nonexistent symbol FEATURE_UDHCP_DEBUG .config:629:warning: trying to assign nonexistent symbol FEATURE_RFC3397 .config:665:warning: trying to assign nonexistent symbol FEATURE_SH_IS_LASH .config:666:warning: trying to assign nonexistent symbol FEATURE_SH_IS_MSH .config:674:warning: trying to assign nonexistent symbol ASH_READ_NCHARS .config:675:warning: trying to assign nonexistent symbol ASH_READ_TIMEOUT .config:677:warning: trying to assign nonexistent symbol ASH_MATH_SUPPORT .config:678:warning: trying to assign nonexistent symbol ASH_MATH_SUPPORT_64 .config:694:warning: trying to assign nonexistent symbol LASH -- Force NOMMU build (NOMMU) [N/y/?] (NEW) Build with Large File Support (for accessing files > 2 GB) (LFS) [Y/n/?] y Cross Compiler prefix (CROSS_COMPILER_PREFIX) [] (NEW) Additional CFLAGS (EXTRA_CFLAGS) [] (NEW) * * Debugging Options * Build BusyBox with extra Debugging symbols (DEBUG) [N/y/?] n Abort compilation on any warning (WERROR) [N/y/?] n -- History size (FEATURE_EDITING_HISTORY) [15] 15 History saving (FEATURE_EDITING_SAVEHISTORY) [N/y/?] n Tab completion (FEATURE_TAB_COMPLETION) [Y/n/?] y Username completion (FEATURE_USERNAME_COMPLETION) [N/y/?] n Fancy shell prompts (FEATURE_EDITING_FANCY_PROMPT) [N/y/?] n Query cursor position from terminal (FEATURE_EDITING_ASK_TERMINAL) [N/y/?] (NEW) Non-POSIX, but safer, copying to special nodes (FEATURE_NON_POSIX_CP) [Y/n/?] (NEW) Give more precise messages when copy fails (cp, mv etc) (FEATURE_VERBOSE_CP_MESSAGE) [N/y/?] (NEW) Copy buffer size, in kilobytes (FEATURE_COPYBUF_KB) [4] (NEW) Skip rootfs in mount table (FEATURE_SKIP_ROOTFS) [Y/n/?] (NEW) Use clock_gettime(CLOCK_MONOTONIC) syscall (MONOTONIC_SYSCALL) [Y/n/?] y Use ioctl names rather than hex values in error messages (IOCTL_HEX2STR_ERROR) [Y/n/?] y -- * Miscellaneous Utilities * conspy (CONSPY) [N/y/?] (NEW) less (LESS) [N/y/?] n nandwrite (NANDWRITE) [N/y/?] (NEW) nanddump (NANDDUMP) [N/y/?] (NEW) setserial (SETSERIAL) [Y/n/?] (NEW) ubiattach (UBIATTACH) [Y/n/?] (NEW) ubidetach (UBIDETACH) [Y/n/?] (NEW) ubimkvol (UBIMKVOL) [Y/n/?] (NEW) ubirmvol (UBIRMVOL) [Y/n/?] (NEW) ubirsvol (UBIRSVOL) [Y/n/?] (NEW) ubiupdatevol (UBIUPDATEVOL) [Y/n/?] (NEW) adjtimex (ADJTIMEX) [N/y/?] n bbconfig (BBCONFIG) [N/y/?] n beep (BEEP) [Y/n/?] (NEW) default frequency (FEATURE_BEEP_FREQ) [4000] (NEW) default length (FEATURE_BEEP_LENGTH_MS) [30] (NEW) chat (CHAT) [Y/n/?] (NEW) Enable NOFAIL expect strings (FEATURE_CHAT_NOFAIL) [Y/n/?] (NEW) Force STDIN to be a TTY (FEATURE_CHAT_TTY_HIFI) [N/y/?] (NEW) Enable implicit Carriage Return (FEATURE_CHAT_IMPLICIT_CR) [Y/n/?] (NEW) Swallow options (FEATURE_CHAT_SWALLOW_OPTS) [Y/n/?] (NEW) Support weird SEND escapes (FEATURE_CHAT_SEND_ESCAPES) [Y/n/?] (NEW) Support variable-length ABORT conditions (FEATURE_CHAT_VAR_ABORT_LEN) [Y/n/?] (NEW) Support revoking of ABORT conditions (FEATURE_CHAT_CLR_ABORT) [Y/n/?] (NEW) chrt (CHRT) [N/y/?] n -- networking/ntpd.c: In function 'ntp_init': networking/ntpd.c:1906:3: attention : le format n'est pas une chaîne littérale et pas d'argument de format [-Wformat-security] networking/ntpd.c:1948:3: attention : implicit declaration of function 'setpriority' [-Wimplicit-function-declaration] networking/ntpd.c:1948:15: erreur: 'PRIO_PROCESS' undeclared (first use in this function) networking/ntpd.c:1948:15: note: each undeclared identifier is reported only once for each function it appears in scripts/Makefile.build:197: recipe for target 'networking/ntpd.o' failed make[1]: *** [networking/ntpd.o] Error 1 Makefile:740: recipe for target 'networking' failed make: *** [networking] Error 2 -- CC libbb/xregcomp.o AR libbb/lib.a * Gentoo Linux Genkernel; Version 3.4.18 * Running with options: --arch-override=x86 all * ERROR: Failed to compile the "all" target... * -- End log... -- * Please consult /var/log/genkernel.log for more information and any * errors that were reported above. * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * /var/log/genkernel.log so that your issue can be dealt with effectively. * * Please do *not* report compilation failures as genkernel bugs! * i know the solution is to put: #include <sys/time.h> #include <sys/resource.h> in the file ntpd.c but i cant found it: localhost linux # locate ntpd.c /usr/portage/net-misc/ntp/files/ntpd.confd /usr/portage/net-misc/openntpd/files/openntpd.conf.d-20080406-r6 /usr/portage/sys-apps/busybox/files/ntpd.confd
This is fixed in newer busybox.