Romit wrote:
Hi,
   I am trying desperately to build a kernel from the opensolaris code base. I 
could see that the opensolaris.sh file has incorrect options for the 
NIGHTLY_OPTIONS shell variable
NIGHTLY_OPTIONS="-FNnaCDlmrt";         export NIGHTLY_OPTIONS

Look at the option 't'
In th bldenv.sh program it sets up other build related variables if this option 
is set. I can see that
ONBLD_TOOLS is set to ${SRC}/tools/proto/opt/onbld tools if this is set. But we are advised to put the onbld tools under /opt in the README.
So I removed the 't' option from the NIGHTLY_OPTIONS variable. Now when I try 
to do a dmake install, I stumble upon this:

/opt/onbld/bin/i386/ctfconvert -i -L VERSION debug64/cbe.o
*** Error code 1
The following command caused the error:
BUILD_TYPE=DBG64 VERSION='onnv-gate' dmake  install.targ
dmake: Fatal error: Command failed for target `install.debug64'
Current working directory /export/home/romit/onnv-gate/usr/src/uts/i86pc/unix
*** Error code 1
The following command caused the error:
cd unix; pwd; dmake  install
dmake: Fatal error: Command failed for target `unix'
Current working directory /export/home/romit/onnv-gate/usr/src/uts/i86pc
*** Error code 1
The following command caused the error:
cd i86pc; pwd; dmake  install
dmake: Fatal error: Command failed for target `i86pc'
Current working directory /export/home/romit/onnv-gate/usr/src/uts
bash-3.00$

CAN any kind soul (may be some Solaris kernel /build engineer), point out where I can get a buildable/working version of the source tree? Also, I would suggest that before publishing the source if some sanity test is done, then it saves a lot of time.
Thanks,
-Romit
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]
Romit,

I just pulled the source down yesterday and built from a stock Nevada 55b workspace. I worked strictly from the Developer Notes (http://www.opensolaris.org/os/community/onnv/devref_toc/) and Dennis Clark's tutorial (http://www.blastwave.org/articles/BLS-0056/index.html).
Note some things have changed since his tutorial was last published and
he advocates changing some options that I would wait on changing.

You don't want to remove the -t option. It is saying build the tools which get put into /opt/onbld. I.e., after you are done, you will build both the kernel and those tools.

You should actually be able to leave these options alone and get a working kernel. Hmm, I removed some, but just because those are ones I typically remove when building kernels when doing Solaris buf-fixing. I.e., I've done it plenty of times and know what I am
trading off.

My suggestion is that you build a pretty stock kernel before you start changing anything.
You need to typically change GATE, CODEMGR_WS, and STAFFER for each
build/user. After that, for OpenSolaris, you can fudge VERSION and RELEASE_DATE.

Get a working kernel from that and then experiment with the other options.

Thanks,
Tom

Oh, and here is the changes I put in to get a working build:

[EMAIL PROTECTED] onnv-gate]> diff opensolaris.sh usr/src/tools/env/opensolaris.sh
43c43
< NIGHTLY_OPTIONS="-DFNnamt";           export NIGHTLY_OPTIONS
---
> NIGHTLY_OPTIONS="-FNnaCDlmrt";                export NIGHTLY_OPTIONS
47c47
< GATE=onnv-gate;                       export GATE
---
> GATE=testws;                  export GATE
50c50
< CODEMGR_WS="/zoo/ws/$GATE";                   export CODEMGR_WS
---
> CODEMGR_WS="/export/$GATE";                   export CODEMGR_WS
93c93
< STAFFER=th199096;                             export STAFFER
---
> STAFFER=nobody;                               export STAFFER
124c124
< VERSION="kanigix";                    export VERSION
---
> VERSION="$GATE";                      export VERSION
132c132
< RELEASE_DATE="January 2007";          export RELEASE_DATE
---
> # RELEASE_DATE="October 2007";                export RELEASE_DATE

_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to