Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Error in own Module compilation // Makefile error


    hay dude

    I'm trying to build my own kernel module.
    source file is ok but the problem is the Makefile.
    when I run the "make" command, It's not properly compiled and give the error message like following

    make -C /lib/modules/2.6.15-26-amd64-generic/build SUBDIR=/home/vecima11/Desktop/module modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    CHK include/linux/version.h
    /bin/sh: include/linux/version.h.tmp: Permission denied
    UPD include/linux/version.h
    mv: cannot stat `include/linux/version.h.tmp': No such file or directory
    make[1]: *** [include/linux/version.h] Error 1
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    make: *** [default] Error 2

    can anybody help me out for find the solution of this error.

    cheers,
    Linux is Rocking

  2. #2

    Thumbs up

    Quote Originally Posted by s13884 View Post
    hay dude

    I'm trying to build my own kernel module.
    source file is ok but the problem is the Makefile.
    when I run the "make" command, It's not properly compiled and give the error message like following

    make -C /lib/modules/2.6.15-26-amd64-generic/build SUBDIR=/home/vecima11/Desktop/module modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    CHK include/linux/version.h
    /bin/sh: include/linux/version.h.tmp: Permission denied
    UPD include/linux/version.h
    mv: cannot stat `include/linux/version.h.tmp': No such file or directory
    make[1]: *** [include/linux/version.h] Error 1
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    make: *** [default] Error 2

    can anybody help me out for find the solution of this error.

    cheers,
    Linux is Rocking

    Hay dude

    I solved the last problem but now I'm getting error like following

    make -C /lib/modules/2.6.15-26-amd64-generic/build SUBDIR=/home/vecima11/Desktop/module modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    CHK include/linux/version.h
    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/basic/split-include
    HOSTCC scripts/basic/docproc
    SPLIT include/linux/autoconf.h -> include/config/*
    HOSTCC scripts/genksyms/genksyms.o
    HOSTCC scripts/genksyms/lex.o
    HOSTCC scripts/genksyms/parse.o
    HOSTLD scripts/genksyms/genksyms
    HOSTCC scripts/mod/mk_elfconfig
    MKELF scripts/mod/elfconfig.h
    HOSTCC scripts/mod/file2alias.o
    HOSTCC scripts/mod/modpost.o
    HOSTCC scripts/mod/sumversion.o
    HOSTLD scripts/mod/modpost
    HOSTCC scripts/kallsyms
    HOSTCC scripts/conmakehash
    make[2]: *** No rule to make target `arch/x86_64/kernel/../../i386/kernel/cpuid.o', needed by `arch/x86_64/kernel/msr.o'. Stop.
    make[1]: *** [arch/x86_64/kernel] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    make: *** [default] Error 2

    can anybody tell me what's the problem with compilation?
    is dat problem with architecture or what?

    cheer,
    S

  3. #3

    Thumbs up

    Quote Originally Posted by s13884 View Post
    Hay dude

    I solved the last problem but now I'm getting error like following

    make -C /lib/modules/2.6.15-26-amd64-generic/build SUBDIR=/home/vecima11/Desktop/module modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    CHK include/linux/version.h
    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/basic/split-include
    HOSTCC scripts/basic/docproc
    SPLIT include/linux/autoconf.h -> include/config/*
    HOSTCC scripts/genksyms/genksyms.o
    HOSTCC scripts/genksyms/lex.o
    HOSTCC scripts/genksyms/parse.o
    HOSTLD scripts/genksyms/genksyms
    HOSTCC scripts/mod/mk_elfconfig
    MKELF scripts/mod/elfconfig.h
    HOSTCC scripts/mod/file2alias.o
    HOSTCC scripts/mod/modpost.o
    HOSTCC scripts/mod/sumversion.o
    HOSTLD scripts/mod/modpost
    HOSTCC scripts/kallsyms
    HOSTCC scripts/conmakehash
    make[2]: *** No rule to make target `arch/x86_64/kernel/../../i386/kernel/cpuid.o', needed by `arch/x86_64/kernel/msr.o'. Stop.
    make[1]: *** [arch/x86_64/kernel] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-26-amd64-generic'
    make: *** [default] Error 2

    can anybody tell me what's the problem with compilation?
    is dat problem with architecture or what?

    cheer,
    S
    Hello

    I solved this error, this is just a speling mistake in source code of module nothin more.

    cheers

  4. $spacer_open
    $spacer_close

Posting Permissions

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