LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-30-2008, 12:35 AM   #1
shinukl1
LQ Newbie
 
Registered: Jul 2008
Location: India
Distribution: Debian, Fedora
Posts: 8

Rep: Reputation: 0
Exclamation perfmon2 Installation error in pentium 4 HT


Hi ,

I am trying to install permon2 (pfmon-3.4)in my system .
I'm using the kernel 2.6.26 , processor pentium 4 HT.
But while tryimg to install i m getting the following error .. Pls help me



make[1]: Entering directory `/root/Desktop/pfmon-3.4/pfmon'
gcc -ggdb -g -Wall -Werror -D_REENTRANT -I/usr/local/include -DPFMON_DEBUG -DDAT ADIR=\"/usr/local/share/pfmon\" -I. -I/usr/include/libelf -D_GNU_SOURCE -DCONFIG _PFMON_I386 -DPFMON_DEBUG -g -c pfmon_i386_p6.c
pfmon_i386_p6.c:322: error: ‘PFMLIB_INTEL_PII_PMU’ undeclared here (not in a fun ction)
pfmon_i386_p6.c:341: error: ‘PFMLIB_INTEL_PPRO_PMU’ undeclared here (not in a fu nction)
make[1]: *** [pfmon_i386_p6.o] Error 1
make[1]: Leaving directory `/root/Desktop/pfmon-3.4/pfmon'
make: *** [all] Error 2
 
Old 07-30-2008, 08:14 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by shinukl1 View Post
I'm using the kernel 2.6.26 , processor pentium 4 HT.
Are you using a 2.6.26 kernel patched with perfmon2 ???.
And libpfm ???.

Have a look at the README you got from the unrolled tar for pfmon.
 
Old 07-30-2008, 11:56 PM   #3
shinukl1
LQ Newbie
 
Registered: Jul 2008
Location: India
Distribution: Debian, Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
perfmon2

Quote:
Originally Posted by syg00 View Post
Are you using a 2.6.26 kernel patched with perfmon2 ???.
And libpfm ???.

Have a look at the README you got from the unrolled tar for pfmon.

Thanks buddy ....

yaa ... i installed the kernel 2.6.26 newly and installed libpfm also ..
Is there any prob related with my processor (P4 HT) ???
 
Old 07-31-2008, 12:43 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Vanilla 2.6.26 doesn't include perfmon2 - it needs to be patched. Some distros (RHEL maybe ???) may have the support in there for you, I don't know.
I had downloaded the patches (for 2.6.25 as it happens) but hadn't done anything with them. Applying the patch adds perfmon2.txt to the source tree under ../Documentation - easy way to check if the patch is on. For the config, there are several options for the different architectures - P4 amongst them; try grep'ing the config for "perfm".

I'm just re-building the kernel now; hopefully I'll be in a position to test all this tomorrow.

Later: everything built o.k. for me. To check for perfmon2, see if /sys/kernel/perfmon exists or not.

Last edited by syg00; 07-31-2008 at 01:56 AM.
 
Old 07-31-2008, 09:05 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Seems to work as advertised (quick test only). You need to get the right levels of all the software - but that shouldn't affect the build, rather execution later.

Runs on my old (quad) P III Xeon machine, so your P4 should be o.k.

There is a GUI front-end for pfmon from one of the guys at CERN - look for gpfmon.
 
Old 08-06-2008, 01:54 AM   #6
shinukl1
LQ Newbie
 
Registered: Jul 2008
Location: India
Distribution: Debian, Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
thanku for ur immediate reply ...

But the problem is still not fixed .
I ll list what i've done so far. I patched the 2.6.26 kernel with perfmon2 patch(and as u
mentioned the Documentaion contains perfmon2.txt ) , installed libpfm ,
and afetr dat i m trying to install pfmon-3.5 . But getting the same error
May be i m embarrassed .. but i m absolutely new to linux ...
 
Old 08-09-2008, 04:00 AM   #7
shinukl1
LQ Newbie
 
Registered: Jul 2008
Location: India
Distribution: Debian, Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
Lightbulb

yeaa .......

Last edited by shinukl1; 08-10-2008 at 03:52 AM.
 
Old 03-12-2009, 01:28 AM   #8
shinukl1
LQ Newbie
 
Registered: Jul 2008
Location: India
Distribution: Debian, Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
Smile Solved

Quote:
Originally Posted by shinukl1 View Post
yeaa .......
UPDATE: Sorry to post it so late. I just missed it.
Solved the problem by commenting the lines which gave me error in the source. I m using pentium 4.Some error was coming agian with something related with AMD. I commented some lines which contained the AMD processor specifications also. Just tried it blindly. May be a wrong way to do, but it worked for me

Thanks
 
  


Reply

Tags
installation



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
Linux installation problem in Pentium D devn Linux - Hardware 10 03-13-2007 10:52 AM
LXer: Linux: Overview of the Perfmon2 Interface LXer Syndicated Linux News 0 12-23-2005 03:31 AM
Suse Installation on Pentium II cletusbaird SUSE / openSUSE 4 01-01-2005 09:09 PM
Installation problem with a Pentium-MMX Paulo Góes Conectiva 1 08-30-2004 02:29 PM
installation on used pentium 200MHz computer utulu1 Debian 6 03-11-2004 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:38 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