View previous topic :: View next topic |
Author |
Message |
adrian18w n00b

Joined: 08 Apr 2005 Posts: 6
|
Posted: Fri May 30, 2008 3:43 am Post subject: Busybox fails compile while using genkernel |
|
|
Hi guys. I have tried for the second time to compile my kernel. I received the same error again.
From the log:
Code: |
* busybox: >> Compiling...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as"
.....
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/coreutils/ls.c: In function 'ls_main':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/coreutils/ls.c:1178: warning: implicit declaration of function 'dfree'
.....
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/mdadm/super0.c: In function 'match_home0':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/mdadm/super0.c:108: warning: implicit declaration of function 'sha1_buffer'
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/mdadm/super0.c:110: warning: initialization makes pointer from integer without a cast
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/mdadm/super0.c: In function 'update_super0':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/mdadm/super0.c:307: warning: initialization makes pointer from integer without a cast
......
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/mdStart.c: In function 'mdstart_main':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/mdStart.c:36: warning: implicit declaration of function 'bb_show_usage'
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/mdStart.c:41: warning: implicit declaration of function 'sscanf'
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/mdStart.c:41: warning: incompatible implicit declaration of built-in function 'sscanf'
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/mdStart.c:48: warning: implicit declaration of function 'close'
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/mdStart.c:51: warning: implicit declaration of function 'printf'
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/mdStart.c:51: warning: incompatible implicit declaration of built-in function 'printf'
.....
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/shell/ash.c: In function 'letcmd':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/shell/ash.c:12526: warning: 'i' may be used uninitialized in this function
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/nfsmount.c: In function 'xdr_mountres3_ok':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/util-linux/nfsmount.c:1003: warning: dereferencing type-punned pointer will break strict-aliasing rules
......
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/e2fsprogs/blkid/read.c: In function 'blkid_read_cache':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/e2fsprogs/blkid/read.c:298: warning: 'name' may be used uninitialized in this function
......
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/libbb/run_parts.c: In function 'valid_name':
/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/libbb/run_parts.c:35: warning: initialization discards qualifiers from pointer target type
....
Warning: stat(/var/tmp/genkernel/15901.18641.13380.13891/busybox-1.1.3+gentoo/e2fsprogs/st5QlbuP): No such file or directory
DOC BusyBox.1
LINK busybox_unstripped
DOC BusyBox.html
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [busybox_unstripped] Error 1
make: *** [all] Error 2
* Gentoo Linux Genkernel; Version 3.4.9^[[0m
* Running with options: --menuconfig --install --mountboot --kerneldir=/usr/src/linux-2.6.24-gentoo-r8 all
* ERROR: Failed to compile the "all" target...
|
What can be wrong? Any help would be great  |
|
Back to top |
|
 |
frostschutz Advocate


Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Fri May 30, 2008 8:39 am Post subject: |
|
|
I don't understand why genkernel wants to compile busybox at all. You can just use the busybox binary that Gentoo provides (you do have to compile it with USE="static -dynamic" though). Same with binaries for cryptsetup and lvm. Building an initrd by yourself that supports all sorts of stuff (encrypted hard disk, lvm volumes) takes only 5 minutes and you don't have to compile anything for it.
Sorry that this doesn't help at all with your current problem though. Just ditch genkernel if it does not work. |
|
Back to top |
|
 |
|