pcp
[Top] [All Lists]

Solaris build notes

To: pcp <pcp@xxxxxxxxxxx>
Subject: Solaris build notes
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 24 Jun 2015 22:43:11 -0400 (EDT)
Cc: "Josef 'Jeff' Sipek" <jeffpc@xxxxxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <474160992.25596336.1435198655884.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: S3xEZG7RMp6C/+gCnY4sLnpTLfUPrQ==
Thread-topic: Solaris build notes
Hi all,

Just setting up some build machines here, decided to have a crack
at Solaris again since my old OpenIndiana VM image went to the big
bit-bucket in the sky recently.

I went for a fully native build - Solaris and toolchain (compilers)
from Oracle so that the PCP scripting language modules will function
correctly with the default perl and python binaries.

Local setup uses x86_64 KVM virtualisation.  Download the Solaris OS
SolarisStudio toolchain from Oracle (requires an Oracle account), and
follow the installation instructions - no issues here for me.

Once a guest is fully installed and running you'll need to get a few
extras like git, bison, and flex from the opencsw.org packaging site;
again all straight forward.

Next, clone a pcp git repo.  Setup your environment to point to these
tools:
CC=/opt/solarisstudio12.3/bin/cc
CXX=/opt/solarisstudio12.3/bin/CC
YACC=/opt/csw/bin/bison
LEX=/opt/csw/bin/flex

Run "./Makepkgs --without-infiniband --without-manager" (these make
use of compiler/language features not supported by the native tools -
the infiniband one looks fairly easy to fix, pmmgr needs configure.ac
checks to auto-disable it I guess).

With latest git fixes (will all be in pcp-3.10.6), successful package
generation results.  Light sanity testing performed - pmcd & pmlogger
start up, and make data available (locally and remotely).

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>