Re: [info-performer] How to compile example programs

New Message Reply Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++sgi.com)
Date: 09/23/2002 18:55:38


Hello John,

John D. Jamulla wrote:
> A few questions.
> ---------------------------
> a) What version of "make" should be used to compile the examples using =
> the makefiles there? I tried going through all the included makefiles =
> wiht the Makefiles in the sample areas, but there are alot and would =
> take me a few days to get a handle on what's going on.

Most of the sample programs will automatically invoke 'smake' (a parallel make
 program) when you type just 'make'. On my IRIX 6.5.17 system these translate to:

l 0 0 dev.sw.make usr/sbin/smake
l 0 0 eoe.sw.base usr/bin/make

The versions of dev.sw.make I have installed is:

% versions -n dev.sw.make
I = Installed, R = Removed

   Name Version Description

I dev 1278316532 Development System, 7.3.1.2
I dev.sw 1278316532 Development Software, 7.3.1.2
I dev.sw.make 1278316532 Parallel Make Utilities

> b) When I try to use "make" (SGI make), almost any target I try tells me =
> ".MAKE" not found or something like that (I'm not at work to check exact =
> error message). The clean" works though.

That's very unusual, never seen that happen. I'm wondering if you don't have
'smake' so something else is being used in its place

> c) Where is the documentation that says how to compile the examples? I =
> looked at the Getting Started and Programmers Guides, and for anything =
> in /usr/share/Performer, but I don't find anything compelling.
>
> I'm not familiar with SGI make (very familiar with GNU make) and so =
> looking through ALL those included makefiles is not practical for me.

The documentation on the Makefiles is admittedly pretty light. Most of them
have a little section at the top describing the targets (dso, opt, etc). The
rest, for when you feel ambitious, is almost all contained in
/usr/share/Performer/src/pfmakedefs and pfmakerules, which are included by the
other Makefiles.

> d) Last but not least, does anyone know if there's a way to examine the =
> "link line" in the executable after the fact on IRIX? If I could just =
> see how 'perfly' was linked, that would do me a world of good.
> I know you can use "dwarfdump -i EXECUTABLE | grep DW_AT_producer" to =
> see each of the command lines for objects compiled in, but I don't see a =
> final link in there.

Finally something I know the answer to. :-)

As of a very recent IRIX 6.5.x (perhaps x=15) we've started to bundle the
'ldd' command, so: 'ldd /usr/sbin/perfly'

On systems prior to the release containing ldd, you can get similar
information from: elfdump -Dl /usr/sbin/perfly

Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Engr. Manager, Core Rendering                            1-650-933-2160
Silicon Graphics                                     http://www.sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 18:58:10 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.