PDA

View Full Version : Errors when compiling the kernel



@nonymous
2015-01-07, 18:21
Hi! when I compile kernel bugs, I tried to put the packages, to change the system, but without success.



Previous rootfs build not found. Starting build.
Found cross compiler - will continue
E: No such script: /usr/share/debootstrap/scripts/kali
cp: невозможно создать обычный файл «kali-armhf/usr/bin/»: Нет такого файла или каталога
chroot: failed to run command '/debootstrap/debootstrap': No such file or directory
./androidmenu.sh: строка 580: kali-armhf/etc/apt/sources.list: Нет такого файла или каталога
./androidmenu.sh: строка 587: kali-armhf/etc/hostname: Нет такого файла или каталога
./androidmenu.sh: строка 592: kali-armhf/root/.bash_profile: Нет такого файла или каталога
./androidmenu.sh: строка 610: kali-armhf/etc/hosts: Нет такого файла или каталога
cp: указанная цель «kali-armhf/usr/bin/» не является каталогом
cp: указанная цель «kali-armhf/usr/bin/» не является каталогом
cp: указанная цель «kali-armhf/usr/bin/» не является каталогом
./androidmenu.sh: строка 626: kali-armhf/etc/network/interfaces: Нет такого файла или каталога
./androidmenu.sh: строка 631: kali-armhf/etc/resolv.conf: Нет такого файла или каталога
mount: mount point kali-armhf/proc does not exist
mount: mount point kali-armhf/dev/ does not exist
mount: mount point kali-armhf/dev/pts does not exist
cp: cannot create regular file 'kali-armhf/usr/bin/safe-apt-get': No such file or directory
chroot: failed to run command '/third-stage': No such file or directory
sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory
sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory
sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory
cp: target '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/' is not a directory
cp: cannot create regular file '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/': No such file or directory
cp: target '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/' is not a directory
dos2unix: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/*: No such file or directory
dos2unix: Skipping /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/*, not a regular file.
dos2unix: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/mana-toolkit/*: No such file or directory
dos2unix: Skipping /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/mana-toolkit/*, not a regular file.
chmod: cannot access '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/*': No such file or directory
chmod: cannot access '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/*.sh': No such file or directory
cp: cannot create regular file 'kali-armhf/var/www/payload': No such file or directory
chmod: cannot access 'kali-armhf/var/www/payload': No such file or directory
Cloning into '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/opt/rawr'...
remote: Counting objects: 748, done.
remote: Compressing objects: 100% (708/708), done.
remote: Total 748 (delta 393), reused 168 (delta 36)
Receiving objects: 100% (748/748), 963.56 KiB | 380.00 KiB/s, done.
Resolving deltas: 100% (393/393), done.
Checking connectivity... done.
89.txt
/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/pingen: No such file or directory
chmod: cannot access '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/pingen': No such file or directory
chroot: failed to run command 'pip': No such file or directory
--2015-01-07 21:06:16-- https://github.com/smicallef/spiderfoot/archive/v2.2.0-final.tar.gz
Resolving github.com (github.com)... 192.30.252.129, 192.30.252.128, 192.30.252.130, ...
Connecting to github.com (github.com)|192.30.252.129|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/smicallef/spiderfoot/tar.gz/v2.2.0-final [following]
--2015-01-07 21:06:27-- https://codeload.github.com/smicallef/spiderfoot/tar.gz/v2.2.0-final
Resolving codeload.github.com (codeload.github.com)... 192.30.252.144
Connecting to codeload.github.com (codeload.github.com)|192.30.252.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'spiderfoot.tar.gz'


Can I fix them? Thanks in advance.

binkybear
2015-01-09, 03:41
Did you run build-deps.sh first? Also, are you building on Kali?

@nonymous
2015-01-09, 06:59
Of course, I run build-deps.sh first. I tried to Kali, then Ubuntu, now I tried again on kali.
What version of the package used to install additional packages? I mean "squeeze, wheezy, jessie, sid" in sources.list

muts
2015-01-09, 10:43
You shouldn't be using debian repositories on Kali. Try using a Kali OS, with http://docs.kali.org/general-use/kali-linux-sources-list-repositories

@nonymous
2015-01-09, 12:03
Thanks, I was able to correct all errors last error was that the debootstrap command could not be loaded all the packages was resolved by repeating the command. now compiled rootfs weighs 947 MB.

@nonymous
2015-01-10, 08:16
There is one error:

en-latin1-nodeadkeys
Unsupported ioctl: cmd=0x4bfa
KDGKBDIACRUC: Function not implemented
-e Failed to dump keymap!
-e This might be because your console cannot be opened. Perhaps you don't have
a video card, are connected via the serial console or ssh.
Not loading keymap!
Setting up kbd (1.15.3-9) ...
Setting up console-common (0.7.87) ...
Looking for keymap to install:
en-latin1-nodeadkeys
Unsupported ioctl: cmd=0x4bfa
KDGKBDIACRUC: Function not implemented
-e Failed to dump keymap!
-e This might be because your console cannot be opened. Perhaps you don't have
a video card, are connected via the serial console or ssh.
Not loading keymap!

deepaks
2015-04-03, 19:59
make
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/root/arm-stuff/kali-nethunter/toolchain/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /root/arm-stuff/kali-nethunter/toolchain/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/root/arm-stuff/kali-nethunter/yureka/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/arm-stuff/kali-nethunter/yureka/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/arm-stuff/kali-nethunter/yureka/include/uapi -Iinclude/generated/uapi -include /root/arm-stuff/kali-nethunter/yureka/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=apcs-gnu -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error
make[1]: *** [kernel/bounds.s] Error 8
make: *** [prepare0] Error 2

help

soluck9x
2015-04-12, 06:52
I used the solution
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561569 check this !

tuongnv3
2015-04-20, 05:32
errors like this are no quick fixes?