LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-25-2010, 10:33 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
System.map: No such file or directory


During a make, I get this error:
Code:
mahmood@lcoalhost:sample$ sudo make install
test -d /lib/modules/2.6.32-25-generic/kernel/drivers/hwmon || mkdir /lib/modules/2.6.32-25-generic/kernel/drivers/hwmon
cp k10temp.ko /lib/modules/2.6.32-25-generic/kernel/drivers/hwmon
depmod -a -F /lib/modules/2.6.32-25-generic/build/System.map 2.6.32-25-generic
FATAL: Could not open '/lib/modules/2.6.32-25-generic/build/System.map': No such file or directory
make: *** [modules_install] Error 1
I have install linux headers
Code:
mahmood@localhost:k10temp$ sudo apt-get install linux-headers-2.6.32-25-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.32-25-generic is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-24-generic lib32nss-mdns linux-headers-2.6.32-24
  ttf-symbol-replacement wine1.2-gecko cabextract ttf-mscorefonts-installer
  winbind
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
So what is the problem?
 
Old 10-25-2010, 01:46 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The problem is you are missing a file in the path it expects to find it:
Quote:
FATAL: Could not open '/lib/modules/2.6.32-25-generic/build/System.map
What happens if you type?:
Code:
ls -l /lib/modules/2.6.32-25-generic/build/System.map
If it says "not found" it means you don't have that file in that directory. Either you need to find where System.map or you need to install a separate package that includes System.map. If the file DOES exist on your system but is in a another directory you can create a symbolic link in /lib/modules/2.6.32-25-generic/build to where it really exists OR you could modify the makefile to point to the correct path.
 
Old 10-26-2010, 01:11 AM   #3
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
There is no System.map in the required folder or anywhere else:
Code:
mahmood@localhost:k10temp$ ls -l /lib/modules/2.6.32-25-generic/build/System.map
ls: cannot access /lib/modules/2.6.32-25-generic/build/System.map: No such file or directory
mahmood@localhost:k10temp$ sudo find / -name "System.map"
mahmood@localhost:k10temp$
Personally I have no idea... I think it is a file that must come with linux headers. I installed linux headers but there is no such file
 
Old 10-26-2010, 08:53 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The Wikipedia article at http://en.wikipedia.org/wiki/System.map
says that System.map is generated at build time of the kernel.

This says in part:
Quote:
After building the Linux kernel, System.map is located in the root of the source directory. However, some further software installation steps expect to locate the file elsewhere:

* as /boot/System.map-$(uname -r)
* Building SVGALib expects to find /lib/modules/$(uname -r)/build/System.map
Do an "ls -l /boot/System.map*" and see if you have any files appended with the System.map. If so do a symbolic link of that to the location your make is looking for it in. e.g.
"ln -s /boot/System.map-2.6.32-25-generic /lib/modules/2.6.32-25-generic/build/System.map"

Also based on above it may be you need to install the kernel source package to be able to do your make. You don't mention what it is you're trying to make.
 
Old 10-26-2010, 09:01 AM   #5
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Yes thanks you. "System.map" was there. I am trying to make the k10temp module which is a driver from lm-sensors for AMD k10 CPUs
 
  


Reply



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
Do you have a System.map in your / directory? davidas Debian 1 04-05-2004 10:38 AM
What does the System.map file do? elluva Linux - General 7 01-05-2004 11:09 AM
Starting YP Map server: execvp: no such file or directory kofi Linux - Networking 3 10-07-2003 09:27 PM
What is System.map file? and why do we need it? concoran Linux - General 9 11-18-2001 09:42 PM
System.map file bash Linux - Software 1 10-01-2001 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:27 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
Open Source Consulting | Domain Registration