• compile kernel error


    hello few days ago i can compile any kernel without error but today when i want apply new patches after few seconds of compiling i have this error

    /home/tomek/linux-bfq-mq-haswell-git/src/linux-stable-rc/tools/objtool/.fixdep.o.cmd:3: *** brakujący separator. Stop.
    make[4]: *** [Makefile:42: /home/tomek/linux-bfq-mq-haswell-git/src/linux-stable-rc/tools/objtool/fixdep-in.o] Błąd 2
    make[3]: *** [/home/tomek/linux-bfq-mq-haswell-git/src/linux-stable-rc/tools/build/Makefile.include:4: fixdep] Błąd 2
    make[2]: *** [Makefile:59: /home/tomek/linux-bfq-mq-haswell-git/src/linux-stable-rc/tools/objtool/libsubcmd.a] Błąd 2
    make[1]: *** [Makefile:61: objtool] Błąd 2
    make: *** [Makefile:1640: tools/objtool] Błąd 2
    ==> BŁĄD: Wystąpił błąd w prepare().
        Przerywam...
    

    when i go to src and run make modules_prepare i have the same error objtool i read on internet that maybe the problem is in libelf-dev but this package is under redhat and i cant find it under arch

  • @joksik libelf is the package you are looking for if that is the issue. In general, there is no separate *-dev versions in arch linux repo.

    If you point me to where you grabbed the kernel, I can give it a shot. I don’t understand much from the log you send.

  • Unfortunately I had already installed libelf. i reinstall with no luck ;/

    i try install this kernel

    https://github.com/sirlucjan/lucjan-kernels/tree/master/lucjan-kernels-trunk/linux-bfq-mq-haswell-git

    but i have this error or others kernels too :/
    full log from early

    SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
      SYSHDR  arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
      SYSHDR  arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
      SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
      HYPERCALLS arch/x86/entry/syscalls/../../include/generated/asm/xen-hypercalls.h
      SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
      SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
      SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
      HOSTCC  scripts/basic/bin2c
      HOSTCC  arch/x86/tools/relocs_32.o
      HOSTCC  arch/x86/tools/relocs_64.o
      HOSTCC  arch/x86/tools/relocs_common.o
      HOSTLD  arch/x86/tools/relocs
      CHK     include/config/kernel.release
      UPD     include/config/kernel.release
      WRAP    arch/x86/include/generated/asm/clkdev.h
      WRAP    arch/x86/include/generated/asm/dma-contiguous.h
      WRAP    arch/x86/include/generated/asm/early_ioremap.h
      WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
      WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
      CHK     include/generated/uapi/linux/version.h
      UPD     include/generated/uapi/linux/version.h
      CHK     include/generated/utsrelease.h
      UPD     include/generated/utsrelease.h
      CC      arch/x86/purgatory/purgatory.o
      AS      arch/x86/purgatory/stack.o
      AS      arch/x86/purgatory/setup-x86_64.o
      CC      arch/x86/purgatory/sha256.o
      AS      arch/x86/purgatory/entry64.o
      CC      arch/x86/purgatory/string.o
      LD      arch/x86/purgatory/purgatory.ro
      BIN2C   arch/x86/purgatory/kexec-purgatory.c
      CC      kernel/bounds.s
      CHK     include/generated/bounds.h
      UPD     include/generated/bounds.h
      CHK     include/generated/timeconst.h
      UPD     include/generated/timeconst.h
      CC      arch/x86/kernel/asm-offsets.s
      CHK     include/generated/asm-offsets.h
      UPD     include/generated/asm-offsets.h
      CALL    scripts/checksyscalls.sh
      DESCEND  objtool
      HOSTCC   /home/tomek/linux-bfq-mq-vrq-git/src/linux-stable-rc/tools/objtool/fixdep.o
      HOSTLD   /home/tomek//linux-bfq-mq-vrq-git/src/linux-stable-rc/tools/objtool/fixdep-in.o
      LINK     /home/tomek//linux-bfq-mq-vrq-git/src/linux-stable-rc/tools/objtool/fixdep
    /home/tomek//linux-bfq-mq-vrq-git/src/linux-stable-rc/tools/objtool/.fixdep.o.cmd:3: *** brakujący separator. Stop.
    make[4]: *** [Makefile:42: /home/tomek//linux-bfq-mq-vrq-git/src/linux-stable-rc/tools/objtool/fixdep-in.o] Błąd 2
    make[3]: *** [/home/tomek//linux-bfq-mq-vrq-git/src/linux-stable-rc/tools/build/Makefile.include:4: fixdep] Błąd 2
    make[2]: *** [Makefile:59: /home/tomek//linux-bfq-mq-vrq-git/src/linux-stable-rc/tools/objtool/libsubcmd.a] Błąd 2
    make[1]: *** [Makefile:61: objtool] Błąd 2
    make: *** [Makefile:1640: tools/objtool] Błąd 2
    ==> BŁĄD: Wystąpił błąd w prepare().
    
  • @joksik Unfortunately, I can’t reproduce the same errors on my system, compiling is going along nicely.

    So, there are some packages required for kernel compilation (according to PKGBUILD files). You can check if the following is satisfied for your system.

    $ pacman -Q kmod inetutils bc libelf docbook-xsl xmlto
    kmod 24-1
    inetutils 1.9.4-5
    bc 1.07.1-1
    libelf 0.169-2
    docbook-xsl 1.79.2-3
    xmlto 0.0.28-2
    

    Other than that, I am not sure what could be the issue. Is there a particular reason you want to compile this kernel?

  • @psscnp142 said in compile kernel error:

    Is there a particular reason you want to compile this kernel?

    no, but i have this error on every kernel that i want install ;) i try also kernel ck and kernel from natalenko and i have still the same error. when i will have free time i will try reinstall my system

Posts 5Views 333
Log in to reply