Hi Phil,

The ifdef at the line 375 in Dpiperf/src/driver/x86_64/pi_patch.c
should be
(it was correct in the 32-bit version).

The fix is in the CVS.



From: "Philip Brown" <philip@redoakconsulting.co.uk>
To: <perfinsp-list@lists.sourceforge.net>
Date: 08/27/2010 04:49 AM
Subject: Re: [Perfinsp-list] Building performance inspector on Ubuntu 10.04        64 bit

Right, I have managed to get the user-space tools to build.

However, there is an error when trying to build the kernel module:
/home/phil/Dpiperf/src/driver/x86_64/pi_patch.c: In function
/home/phil/Dpiperf/src/driver/x86_64/pi_patch.c:379: error: 'pi_schedule2'
undeclared (first use in this function)

The only reference to pi_schedule (other than the call) is in the Makefile,
so I might guess it should be auto-generated.
No idea why it is not being done.

Any ideas?

Many thanks,


-----Original Message-----
From: Christian Schuhegger [
Sent: 24 August 2010 04:24
To: philip@redoakconsulting.co.uk; perfinsp-list@lists.sourceforge.net
Subject: Re: [Perfinsp-list] Building performance inspector on Ubuntu 10.04
64 bit

Hi Phil,

I just helped myself by replacing every reference to PAGE_SIZE with
4096. You will also have to comment out the second compile round that
tries to compile the 32bit version and finally you have to rename by
hand the lib directory to lib64.

There are several stones in the way, but all of them of a "smaller" size :)

Philip Brown wrote:
> Hi,
> I am trying to install performance inspector on a 64-bit Ubuntu 10.04
> system and am having a few problems.
> uname -a:
> 2.6.32-24-server #41-Ubuntu SMP x86_64
> gcc version 4.4.3
> openjdk 1.6.0_18
> There is an error compiling main.c (src/post/main.c).
> main.c:992: error: initialize element is not constant
> It seems that the PAGE_SIZE can change on modern systems.
> I hacked around this (replacing PAGE_SIZE with the current PAGE_SIZE on
> my system).
> A bit further in the build there is an error when linking liba2n.so:
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libiberty.a when searching
> for libiberty.a
> /usr/bin/ld: skipping incompatible /usr/lib/libiberty.a when searching
> for libiberty.a
> /usr/bin/ld: cannot find -liberty
> I had to recompile libiberty.a from the binutils source with
> -enable-shared (-fPIC) to get past an earlier problem.
> There is also a libiberty_pic.a in /usr/lib, sym-linking this to
> /usr/lib/libiberty.a does not solve the problem.
> Do you have any ideas what might be going wrong? I am guessing if I
> switch to a 32-bit build some of these problems might disappear?

Christian Schuhegger

Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
Perfinsp-list mailing list