Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-04-2012, 08:53 AM   #1
LQ Newbie
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
Problems with make

Hello there!

First post, so bare with me

Im trying to build the classic "hello world" for my kernel.

My makefile looks like this:

   KERNELDIR = ~/sources/linux-3.2.6
   PWD:= $(shell pwd)

[TAB] $(MAKE) ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -C $(KERNELDIR) M=$(PWD) modules


   obj-m := hello_world.o

When trying to make this i get the error:
make[1]: Entering directory `/home/stud/sources/linux-3.2.6'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/home/stud/sources/linux-3.2.6'
make: *** [default] Error 2

Anyone care to help out ? Exercise is due tomorrow :/
Old 10-05-2012, 07:25 PM   #2
LQ Newbie
Registered: Sep 2012
Posts: 20

Rep: Reputation: Disabled
Have the appropriate linux headers installed?

linux-headers-$(uname -r)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make problems BlindFate Slackware 16 03-28-2008 02:17 PM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 05:37 PM
make and make install problems jabird Red Hat 1 10-11-2004 10:05 PM
make-problems stalemate Mandriva 10 09-20-2003 11:49 AM
make problems jayakrishnan Linux - General 1 09-13-2003 06:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration