Skip to content

Compile error on ZFS and SPL modules #2

@youf3

Description

@youf3

Hi,

I'm trying to compile the kernel on Centos 7 and having problem with ZFS and SPL.

What I tried was to follow instruction here:
https://www.linode.com/docs/tools-reference/custom-kernels-distros/custom-compiled-kernel-centos-7

Everything worked (with some modification : https://github.com/iHeartGraph/falcon/pull/1 ), until i do

$ make
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
CHK include/generated/uapi/linux/version.h
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
KSYM .tmp_kallsyms1.o
KSYM .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
TEST posttest
Succeed: decoded and checked 1837462 instructions
TEST posttest
arch/x86/tools/insn_sanity: Success: decoded and checked 1000000 random instructions with 0 errors (seed:0x353ad1bb)
VOFFSET arch/x86/boot/voffset.h
OBJCOPY arch/x86/boot/compressed/vmlinux.bin
GZIP arch/x86/boot/compressed/vmlinux.bin.gz
MKPIGGY arch/x86/boot/compressed/piggy.S
AS arch/x86/boot/compressed/piggy.o
LD arch/x86/boot/compressed/vmlinux
ZOFFSET arch/x86/boot/zoffset.h
AS arch/x86/boot/header.o
CC arch/x86/boot/version.o
LD arch/x86/boot/setup.elf
OBJCOPY arch/x86/boot/setup.bin
OBJCOPY arch/x86/boot/vmlinux.bin
BUILD arch/x86/boot/bzImage
Setup is 16924 bytes (padded to 17408 bytes).
System is 5477 kB
CRC 564b17ce
Kernel: arch/x86/boot/bzImage is ready (#5)
Building modules, stage 2.
MODPOST 2324 modules

$ sudo make install
sh ./arch/x86/boot/install.sh 4.4.8+ arch/x86/boot/bzImage
System.map "/boot"
Error! Bad return status for module build on kernel: 4.4.8+ (x86_64)
Consult /var/lib/dkms/spl/0.6.5.9/build/make.log for more information.
configure: error:
*** Please make sure the kmod spl devel package for your
*** distribution is installed then try again. If that fails you
*** can specify the location of the spl objects with the
*** '--with-spl-obj=PATH' option.
Error! Bad return status for module build on kernel: 4.4.8+ (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.9/build/make.log for more information.

$ cat /var/lib/dkms/spl/0.6.5.9/build/make.log
DKMS make.log for spl-0.6.5.9 for kernel 4.4.8+ (x86_64)
Wed Aug 2 13:13:55 CDT 2017
make all-recursive
Making all in include
Making all in fs
make[5]: Nothing to be done for all'. Making all in linux make[5]: Nothing to be done for all'.
Making all in rpc
make[5]: Nothing to be done for all'. Making all in sharefs make[5]: Nothing to be done for all'.
Making all in sys
Making all in fm
make[6]: Nothing to be done for all'. Making all in fs make[6]: Nothing to be done for all'.
Making all in sysevent
make[6]: Nothing to be done for all'. make[6]: Nothing to be done for all-am'.
Making all in util
make[5]: Nothing to be done for all'. Making all in vm make[5]: Nothing to be done for all'.
make[5]: Nothing to be done for all-am'. Making all in rpm Making all in generic make[5]: Nothing to be done for all'.
Making all in redhat
make[5]: Nothing to be done for all'. make[5]: Nothing to be done for all-am'.
Making all in module
make -C /lib/modules/4.4.8+/build SUBDIRS=pwd CONFIG_SPL=m modules
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 2326 modules
make[4]: *** No rule to make target module/Module.symvers', needed by all-am'. Stop.
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2

$ cat /var/lib/dkms/zfs/0.6.5.9/build/make.log
DKMS make.log for zfs-0.6.5.9 for kernel 4.4.8+ (x86_64)
Wed Aug 2 13:19:27 CDT 2017
make[2]: *** No targets specified and no makefile found. Stop.

It looks like there is a "make module" missing in one of the Makefile used by the main Makefile.
Any clue on how to fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions