Hi Phil,

The ifdef at the line 375 in Dpiperf/src/driver/x86_64/pi_patch.c
should be
if !defined (RAW_SPINLOCK_MAGIC) && LINUX_VERSION_CODE != KERNEL_VERSION(2,6,30)
(it was correct in the 32-bit version).

The fix is in the CVS.

Regards,

Milena


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
'pi_install_dispatch_patch':
/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,

Phil


-----Original Message-----
From: Christian Schuhegger [
mailto:Christian.Schuhegger@gmx.de]
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
http://www.el-chef.de/


------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Perfinsp-list mailing list
Perfinsp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfinsp-list