LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-04-2012, 10:17 AM   #1
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 56
Blog Entries: 1

Rep: Reputation: Disabled
Red face no idea about the error in Makefile


rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$ sudo make
[sudo] password for rajesh:
make -C /lib/modules/2.6.35-22-generic/build M= modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
make: *** [all] Error 2
rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$


USING UBUNTU 11.4
PLEASE HELP ME OUT I AM JUST RUNNING A SIMPLE HELLO PROGRAM
 
Old 02-04-2012, 11:21 AM   #2
chiraag
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
Hi Rajesh,

It seems that this makefile is attempting to compile something in /usr/src/linux-headers-2.6.35-22-generic which will not work if you don't have the relevant headers. A default installation does not have these files. Just to double check, see if you have the file /usr/src/linux-headers-2.6.35-22-generic/kernel/bounds.c.

Also, if this is a simple Hello program, I don't see why it should visit linux-header-... at all, unless as the directory name suggests, you are trying to compile some sort of driver, etc.
 
  


Reply


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
Error while doing make and no idea about the error rpittala Linux - Software 1 01-28-2012 10:37 PM
Make-3.82 error:Makefile:282:error: mixed implicit and normal rules Ramanc51 Linux - Newbie 5 06-08-2011 08:55 AM
error in Makefile lrios Programming 2 04-04-2008 08:44 PM
makefile error durden2.0 Programming 2 01-25-2004 05:45 PM


All times are GMT -5. The time now is 12:25 PM.

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