From owner-pcp@oss.sgi.com Mon Mar 4 16:48:34 2002 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g250mYg05251 for pcp-outgoing; Mon, 4 Mar 2002 16:48:34 -0800 Received: from zok.sgi.com (zok.SGI.COM [204.94.215.101]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g250mU905247 for ; Mon, 4 Mar 2002 16:48:30 -0800 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by zok.sgi.com (8.12.2/8.12.2/linux-outbound_gateway-1.2) with SMTP id g250mLBA010315 for ; Mon, 4 Mar 2002 16:48:22 -0800 Received: from sherman.melbourne.sgi.com (sherman.melbourne.sgi.com [134.14.55.232]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id KAA25408; Tue, 5 Mar 2002 10:47:01 +1100 Date: Tue, 5 Mar 2002 10:47:01 +1100 (EST) From: Mark Goodwin X-X-Sender: To: Corey Cole cc: SGI-PCP Subject: RE: Solaris port assistance In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk On Wed, 27 Feb 2002, Corey Cole wrote: > Probably bad form to reply to my own message, but it looks like I found > the problem. Where many OSen define byte order in endian.h or sys/endian.h, > Solaris puts it in sys/byteorder.h (which then uses sys/isa_defs.h to check > for > sparc v[7|8|9] or i386 or ia64). Not only that, but they put a leading > underscore > on BIG_ENDIAN. > > Anyways, adding a check for sys/byteorder.h and adding some more magic to > platform_defs.h.in fixed the problem. Note there are actually two machine specific settings that are endian related. The first is HAVE_NETWORK_BYTEORDER, which you've already found and understood, and the second is HAVE_BITFIELDS_LTOR, which is defined if the compiler allocates bit fields left-to-right within a word. Getting HAVE_BITFIELDS_LTOR correct is crucial for interoperability over the wire for PCP PDUs that use bitmaps, e.g. pmDesc.pmUnits > > Now all that's left is to work out the install issues and add the ability > to create Solaris "pkg" files. Then I'll confirm I don't break anything on > Linux > and submit the patch (I'm still working on getting my Indy working...) > > Creating Solaris pmdas will be a task for another time ;) Ok, waiting for the patch! The PMDA is a big job; if you export most of solaris kstat, you're almost home. thanks -- Mark From owner-pcp@oss.sgi.com Wed Mar 6 16:12:46 2002 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g270CkQ05772 for pcp-outgoing; Wed, 6 Mar 2002 16:12:46 -0800 Received: from mailgw1a.lmco.com (mailgw1a.lmco.com [192.31.106.7]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g270Cb905760 for ; Wed, 6 Mar 2002 16:12:38 -0800 Received: from emss02g01.ems.lmco.com (relay2.ems.lmco.com [166.29.2.54]) by mailgw1a.lmco.com (8.11.6/8.11.6) with ESMTP id g26NCbJ15497 for ; Wed, 6 Mar 2002 16:12:37 -0700 (MST) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-33 #40644) id <0GSK00B01R1Q7B@lmco.com> for pcp@oss.sgi.com; Wed, 6 Mar 2002 16:12:34 -0700 (MST) Received: from emss02i00.ems.lmco.com ([166.29.2.48]) by lmco.com (PMDF V5.2-33 #40644) with ESMTP id <0GSK004WYR1812@lmco.com> for pcp@oss.sgi.com; Wed, 06 Mar 2002 16:10:20 -0700 (MST) Received: by emss02i00.ems.lmco.com with Internet Mail Service (5.5.2653.19) id ; Wed, 06 Mar 2002 16:10:21 -0700 Content-return: allowed Date: Wed, 06 Mar 2002 16:10:13 -0700 From: "Rapacki, George R" Subject: Build & Installation Problem To: Linux Perf CoPilot Majordomo Message-id: <74A47D1AB3E9D511B24800508BF903AE01D4D3F6@emss02m11.ems.lmco.com> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-type: text/plain Content-transfer-encoding: 7BIT Sender: owner-pcp@oss.sgi.com Precedence: bulk Hi, I am trying to build and install PCP on a Dell Computer with two Intel686 chips and keep tripping over the same problem, ie no rpm package to install I would appreciate any advice you can offer. I've tried the installation as root and verified that I have autoconf and gmake installed in /usr/bin but no joy. Executing ./Makepkgs -verbose results in an error message which is at the end of the Logs/pcp file that follows. The Logs/configure file follows the extract from Logs/pcp and shows an i686-pc-linux as the system description. The configure file also shows (I think) no /usr/bin/gmake but I do have it. Would the rpm package available from the SGI download site work? How can I make the build work? Thanks George R. Logs/pcp last 30 lines: === build === make[2]: Entering directory `/home/grapacki/pcp/pcp-2.2.2/build' make[2]: Nothing to be done for `install_pcp'. make[2]: Leaving directory `/home/grapacki/pcp/pcp-2.2.2/build' ./install-sh -o root -g bin -m 755 -d /usr/share/pcp/doc ./install-sh -o root -g bin -m 644 LSM README INSTALL CHANGELOG VERSION.pcp COPYING /usr/share/pcpmake[1]: Leaving directory `/home/grapacki/pcp/pcp-2.2.2' === rpm === sed -e '/^macrofiles:/s|~/.rpmmacros|'`pwd`'/rpmmacros|' < /usr/lib/rpm/rpmrc > rpm-4.rc . ../../VERSION.pcp; \ sed -e"s|@package_name@|$PACKAGE_NAME|g" \ -e"s|@package_version@|$PACKAGE_VERSION|g" \ -e"s|@package_release@|$PACKAGE_BUILD|g" \ -e"s|@package_distribution@|$PACKAGE_DISTRIBUTION|g" \ -e"s|@pcp_min_required@|$PCP_MIN_REQUIRED|g" \ -e's|@package_builder@|root@Apollo|g' \ -e's|@build_root@|/tmp/10075|g' \ -e'/^BuildRoot: *$/d' \ -e's|@pcp_var_dir@|/var/pcp|g' \ -e's|@pcp_share_dir@|/usr/share/pcp|g' \ -e's|@pcp_log_dir@|/var/log/pcp|g' \ -e's|@pcp_tmp_dir@|/var/tmp|g' \ -e's|@make@|/usr/bin/make|g' < pcp.spec.in > pcp.spec /bin/rpm -ba --rcfile rpm-4.rc \ --target=i386-pc-linux \ pcp.spec --target=i386-pc-linux: unknown option make[1]: *** [pack_pcp] Error 1 gmake: *** [pack_pcp] Error 2 gmake: Leaving directory `/home/grapacki/pcp/pcp-2.2.2/build' Logs/configure first 20 lines: creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu Building on i686-pc-linux for i686-pc-linux checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for /usr/bin/gmake... no checking for GNU make elsewhere... /usr/bin/make checking how to run the C preprocessor... gcc -E checking for simple cpp args... /lib/cpp -traditional -undef checking for ld... /usr/bin/ld checking for a BSD compatible install... /usr/bin/install -c checking for tar... /bin/tar checking for gzip... /bin/gzip checking for bzip2... /usr/bin/bzip2 checking for rpm... /bin/rpm From owner-pcp@oss.sgi.com Tue Mar 12 10:51:43 2002 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g2CIphW17217 for pcp-outgoing; Tue, 12 Mar 2002 10:51:43 -0800 Received: from osprey.arl.army.mil (osprey.arl.army.mil [128.63.58.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g2CIpf917214 for ; Tue, 12 Mar 2002 10:51:41 -0800 Received: from osprey.arl.army.mil by OSPREY.ARL.ARMY.MIL id aa18098135; 12 Mar 2002 12:46 EST Date: Tue, 12 Mar 2002 12:46:44 -0500 (EST) From: "Tom Kendall (CISD) " To: pcp@oss.sgi.com Subject: pcp 2.2.2 on alpha w/rh 7.x Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk Is there a binary RPM available of PCP for RH 7 running on alpha? Thanks, Tom ------------------------------------------------------------------------------- Thomas M. Kendall Chief Engineer, ARL MSRC tkendall@arl.army.mil U. S. Army Research Laboratory 410-278-9195 Computational & Information Sciences Directorate 410-278-7142 (FAX) Attn: AMSRL-CI-HS 410-652-0813 (mobile) Aberdeen Proving Ground, MD 21005-5067 ------------------------------------------------------------------------------- From owner-pcp@oss.sgi.com Tue Mar 12 12:11:57 2002 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g2CKBvi23664 for pcp-outgoing; Tue, 12 Mar 2002 12:11:57 -0800 Received: from tolkor.sgi.com (tolkor.sgi.com [192.48.180.13]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g2CKBq923658 for ; Tue, 12 Mar 2002 12:11:52 -0800 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by tolkor.sgi.com (8.12.2/8.12.2/linux-outbound_gateway-1.2) with SMTP id g2CKJSkw002942 for ; Tue, 12 Mar 2002 14:19:29 -0600 Received: from sherman.melbourne.sgi.com (sherman.melbourne.sgi.com [134.14.55.232]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id GAA12329 for ; Wed, 13 Mar 2002 06:10:26 +1100 Date: Wed, 13 Mar 2002 06:10:26 +1100 (EST) From: Mark Goodwin X-X-Sender: To: Subject: Re: Build & Installation Problem (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk This bounced first time due to mailing list problems .. ---------- Forwarded message ---------- Date: Thu, 7 Mar 2002 10:18:40 +1100 (EST) From: Mark Goodwin To: "Rapacki, George R" Cc: Linux Perf CoPilot Majordomo Subject: Re: Build & Installation Problem On Wed, 6 Mar 2002, Rapacki, George R wrote: > /bin/rpm -ba --rcfile rpm-4.rc \ > --target=i386-pc-linux \ > pcp.spec > --target=i386-pc-linux: unknown option > make[1]: *** [pack_pcp] Error 1 > gmake: *** [pack_pcp] Error 2 > gmake: Leaving directory `/home/grapacki/pcp/pcp-2.2.2/build' This is an rpm v4 problem. In build/rpm/GNUmakefile, remove '=' from --target since rpm v4 doesn't seem to like it. Here's the patch: --- build/rpm/GNUmakefile_1.27 Wed Mar 13 06:09:36 2002 +++ build/rpm/GNUmakefile_1.28 Wed Mar 13 06:09:36 2002 @@ -50,7 +50,7 @@ # going to make sure it'll be rebuild next time we come here pack_pcp : rpm-$(RPM_VERSION).rc $(SPEC) $(RPM) -ba --rcfile rpm-$(RPM_VERSION).rc \ - --target=$(TARGET_CPU)-$(TARGET_VENDOR)-$(TARGET_OS) \ + --target $(TARGET_CPU)-$(TARGET_VENDOR)-$(TARGET_OS) \ $(SPEC) rm -f $(SPEC) From owner-pcp@oss.sgi.com Tue Mar 12 12:16:26 2002 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g2CKGQe23761 for pcp-outgoing; Tue, 12 Mar 2002 12:16:26 -0800 Received: from rj.sgi.com (rj.SGI.COM [204.94.215.100]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g2CKGN923758 for ; Tue, 12 Mar 2002 12:16:23 -0800 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by rj.sgi.com (8.12.2/8.12.2/linux-outbound_gateway-1.2) with SMTP id g2CJGHbX015902 for ; Tue, 12 Mar 2002 11:16:17 -0800 Received: from sherman.melbourne.sgi.com (sherman.melbourne.sgi.com [134.14.55.232]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id GAA12345; Wed, 13 Mar 2002 06:14:58 +1100 Date: Wed, 13 Mar 2002 06:14:58 +1100 (EST) From: Mark Goodwin X-X-Sender: To: "Tom Kendall (CISD) " cc: Subject: Re: pcp 2.2.2 on alpha w/rh 7.x In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-pcp@oss.sgi.com Precedence: bulk On Tue, 12 Mar 2002, Tom Kendall (CISD) wrote: > Is there a binary RPM available of PCP for RH 7 running on alpha? > I don't think there is one for RH7 on alpha, however you should be able to build it from the src RPM: # rpm --rebuild pcp-2.2.2-11.src.rpm or from the src tarball: # tar xzf pcp-2.2.2.src.tar.gz # cd pcp; ./Makepkgs pcp For rpm v4 (on RH7.2 or later) you'll need to apply the patch I just posted to fix build/rpm/GNUmakefile. thanks -- Mark