[oi-dev] Compiling SFW 153+

Matt Wilby matthewwilby at btinternet.com
Tue Feb 1 17:53:21 UTC 2011


I'm in need of some guidance and advice regarding compiling SFW. I
apologise in advance for the length of this posting.

On the SFW page on the opensolaris website it states "Starting with
build 153, Use Studio 12.1." On by build zone I have both Sun Studio 12
and Sun Studio 12.1 installed ->

> user at zone:/opt$ ls
> SUNWspro  dtbld  onbld  sunstudio12.1

Following advice from Meths (thanks) my build user's path is set as
follows ->

> user at zone:/opt$ echo $PATH
> /opt/sunstudio12.1/bin:/opt/onbld/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin

And within /opt/onbld/bin/nightly I have the following set ->

> PATH="$OPTHOME/onbld/bin:$OPTHOME/onbld/bin/${MACH}:/usr/ccs/bin"
> PATH="$PATH:$OPTHOME/sunstudio12.1/bin:$TEAMWARE/bin:/usr/bin:/usr/sbin:/usr/ucb"
> PATH="$PATH:/usr/openwin/bin:/usr/sfw/bin:/opt/sfw/bin:."
> export PATH

Reviewing the nightly log for my build I can see that $PATH has been set
correctly ->

> PATH=/opt/onbld/bin:/opt/onbld/bin/sparc:/usr/ccs/bin:/opt/sunstudio12.1/bin:/opt/teamware/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/openwin/bin:/usr/sfw/bin:/opt/sfw/bin:.

However the problem that I have is that it will always compile using the
compiler within /opt/SUNWspro, that is Sun Studio 12 and not Sun Studio
12.1. Again this is confirmed by reviewing the mail_msg file after the
build ->

> /opt/sunstudio12.1/bin/dmake
> dmake: Sun Distributed Make 7.9 SunOS_sparc 2009/06/03
> number of concurrent jobs = 6

> 32-bit compiler
> /opt/SUNWspro/bin/cc
> cc: Sun C 5.9 SunOS_sparc Patch 124867-11 2009/04/30

> 64-bit compiler
> /opt/SUNWspro/bin/cc
> cc: Sun C 5.9 SunOS_sparc Patch 124867-11 2009/04/30

The only way I can get SFW to compile against 12.1 is by setting the
following in "sfw-gate/usr/src/tools/env/sfw-opensolaris.sh", which I
have been led to believe is not required.

> SPRO_VROOT=/opt/sunstudio12.1; export SPRO_VROOT
> AMD64_ROOT=/opt/sunstudio12.1; export AMD64_ROOT


Obviously I'm missing a step somewhere..... help!

Thanks,

Matt






More information about the oi-dev mailing list