Results 1 to 9 of 9

Thread: Errors when compiling the kernel

  1. #1
    Join Date
    2014-Dec
    Posts
    21

    Question Errors when compiling the kernel

    Hi! when I compile kernel bugs, I tried to put the packages, to change the system, but without success.

    Code:
    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.

  2. #2
    Join Date
    2014-Sep
    Posts
    176
    Did you run build-deps.sh first? Also, are you building on Kali?

  3. #3
    Join Date
    2014-Dec
    Posts
    21
    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
    Last edited by @nonymous; 2015-01-09 at 07:39.

  4. #4
    Join Date
    2013-Feb
    Posts
    225
    You shouldn't be using debian repositories on Kali. Try using a Kali OS, with http://docs.kali.org/general-use/kal...t-repositories

  5. #5
    Join Date
    2014-Dec
    Posts
    21
    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.
    Last edited by @nonymous; 2015-01-10 at 07:04. Reason: Edit.

  6. #6
    Join Date
    2014-Dec
    Posts
    21
    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!

  7. #7
    Join Date
    2015-Jan
    Posts
    5
    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

  8. #8

  9. #9
    errors like this are no quick fixes?

Similar Threads

  1. Errors booting Kali: "you need to load the kernel first"
    By Redemption116 in forum Installing Archive
    Replies: 3
    Last Post: 2017-06-27, 11:31
  2. compiling kwavecontrol (or alternative?)
    By ball in forum General Archive
    Replies: 2
    Last Post: 2015-09-24, 08:47
  3. RT2870 (mt7610u) Wifi Driver Compiling Errors
    By CoolApps in forum General Archive
    Replies: 0
    Last Post: 2014-02-19, 18:48
  4. Kali installer errors, kernel 486/686 mismatch?
    By Shatter in forum Installing Archive
    Replies: 0
    Last Post: 2013-04-12, 13:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •