Results 1 to 3 of 3

Thread: No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'.

  1. #1
    Join Date
    May 2010
    Location
    Pune
    Beans
    1
    Distro
    Ubuntu 10.04 Lucid Lynx

    No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'.

    hi all

    im new to linux kernel programming, so help me
    im getting this error when im tring to compile the hello world kernel module

    makefile has only one statement :
    obj-m += hello.o

    im using this command to make
    make -C /usr/src/linux-headers-2.6.34-020634-generic SUBDIRS= $PWD modules

    and the output is:
    make: Entering directory `/usr/src/linux-headers-2.6.34-020634-generic'
    make: Nothing to be done for `/home/santosh/Work/Linux'.
    CHK include/linux/version.h
    CHK include/generated/utsrelease.h
    make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
    make: *** [prepare0] Error 2
    make: Leaving directory `/usr/src/linux-headers-2.6.34-020634-generic'

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'.

    **** linux-headers-2.6.34-020634-generic *****

    its already compiled

  3. #3
    Join Date
    Jun 2008
    Beans
    Hidden!

    Lightbulb Re: No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'.

    I think the problem is "make -C /usr/src/linux-headers-2.6.34-020634-generic SUBDIRS= $PWD modules"

    $PWD is not defined. Try using $(shell pwd) instead.

    Source: http://forums.labjack.com/index.php?showtopic=4369

Tags for this Thread

Bookmarks

Posting Permissions

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