Results 1 to 6 of 6

Thread: nethunter kernel build - clang-10: error

  1. #1

    nethunter kernel build - clang-10: error


    i'm using Nethunter Kernel builder script to build the kernel for a samsung device .. it is an arm architecture.
    I selected the first option in the menu, "N. NetHunter build = Create zip for NH-installer" , half way through building the kernel i get this error:

    CC kernel/bounds.s
    clang-10: error: unknown argument: '-mapcs'
    clang-10: error: unknown argument: '-mno-sched-prolog'
    clang-10: error: unknown argument: '-mno-thumb-interwork'
    make[2]: *** [/home/xtech/Desktop/kernel/sm-700/./Kbuild:36: kernel/bounds.s] Error 1
    make[1]: *** [/home/xtech/Desktop/kernel/sm-700/Makefile:1004: prepare0] Error 2
    make: *** [Makefile:130: sub-make] Error 2
    make: Leaving directory '/home/xtech/Desktop/kernel/sm-700'

    real 0m2.555s
    user 0m1.508s
    sys 0m0.894s
    make: Entering directory '/home/xtech/Desktop/kernel/sm-700'
    cp: cannot stat '/home/xtech/Desktop/kernel/sm-700/kali-nethunter-kernel/out/modules.builtin': No such file or directory
    make[1]: *** [/home/xtech/Desktop/kernel/sm-700/Makefile:1143: _modinst_] Error 1
    make: *** [Makefile:130: sub-make] Error 2
    make: Leaving directory '/home/xtech/Desktop/kernel/sm-700'

    real 0m0.701s
    user 0m0.392s
    sys 0m0.286s
    [ SUCCESS ] Kernel build completed
    [ QUESTION ] Save .config as nethunter_defconfig? [y/n]

  2. #2
    Join Date
    Instead of selecting the first option can you select the second one see if you get a successful compilation i.e The test build option

  3. #3
    even with the test build same error .. and this warning
    /home/xtech/Desktop/kernel/sm-700/scripts/kconfig/confdata.c:705:19: warning: ?%s? directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]

  4. #4
    same error even with test build.

  5. #5
    Join Date
    I can have a look at it if you want. Just post the link to the kernel source and to the local.config you are using.

    What device are you building for?

  6. #6
    hi the source code is here : = ,

    in the local.config file i just did this:

    export ARCH=arm
    export SUBARCH=arm
    #export CROSS_COMPILE=${CCD64}/bin/aarch64-linux-android-

Similar Threads

  1. do I need to build a custom kernel?
    By CurioCT in forum Building NetHunter
    Replies: 3
    Last Post: 2020-08-16, 06:21
  2. Im tring to build a kernel with kernel builder but im getting error
    By dylanmurz in forum NetHunter Development
    Replies: 0
    Last Post: 2020-05-28, 16:14
  3. Nethunter Error installing [HTC One M7 unofficial ROM build]
    By Kozova1 in forum Installing NetHunter
    Replies: 2
    Last Post: 2017-05-25, 17:49
  4. How to build Kali with a different Kernel?
    By lb_user in forum Building Archive
    Replies: 0
    Last Post: 2016-11-08, 09:10

Posting Permissions

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