I have been trying to build the opensolaris source on opensolaris  
following the direction in this blog.
http://blogs.sun.com/lianep/entry/simplifying_building_on_on_an

But I have run into a snag. Any ideas would be helpful.

Machine DELL c521 amd64.
Opensolaris build snv 111a
Doing a nightly (so full clobber) and pulling source from hg.
SunOS 5.11 snv_111a i386

isainfo -v
64-bit amd64 applications
tscp ahf cx16 sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov
amd_sysc cx8 tsc fpu
32-bit i386 applications
tscp ahf cx16 sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov
amd_sysc cx8 tsc fpu

isalist
amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

/export/home/ajay/SunStudioProjects/OpenSolarisSource1/onnv-gate/usr/ 
src/lib/libc/i386
/usr/sbin/dtrace -G -32 -C -xlazyload -s ../port/threads/plockstat.d - 
o pics/plockstat.o pics/alloc.o pics/assfail.o pics/cancel.o pics/ 
door_calls.o pics/pthr_attr.o pics/pthr_barrier.o pics/pthr_cond.o  
pics/pthr_mutex.o pics/pthr_rwlock.o pics/pthread.o pics/rwlock.o pics/ 
scalls.o pics/sema.o pics/sigaction.o pics/spawn.o pics/synch.o pics/ 
tdb_agent.o pics/thr.o pics/thread_interface.o pics/tls.o pics/tsd.o
dtrace: failed to compile script ../port/threads/plockstat.d: "/usr/ 
lib/dtrace/mpi.d", line 70: failed to resolve type genunix`kthread_t *  
for identifier curthread: Module and program data models do not match
*** Error code 1
dmake: Warning: Target `libc.so.1' not remade because of errors
Current working directory /export/home/ajay/SunStudioProjects/ 
OpenSolarisSource1/onnv-gate/usr/src/lib/libc/i386
*** Error code 1
The following command caused the error:
cd i386; pwd; VERSION='snv_112' dmake libc.so.1

Heres my opensolaris.sh


NIGHTLY_OPTIONS="-FNnaCDlmprt";         export NIGHTLY_OPTIONS



# This is a variable for the rest of the script - GATE doesn't matter to

# nightly itself

GATE=onnv-gate;                 export GATE



# CODEMGR_WS - where is your workspace at (or what should nightly name  
it)

CODEMGR_WS="/export/home/ajay/SunStudioProjects/ 
OpenSolarisSource1/$GATE";                      export CODEMGR_WS



# Location of encumbered binaries.

ON_CLOSED_BINS="$CODEMGR_WS/closed";            export ON_CLOSED_BINS



# This flag controls whether to build the closed source.  If

# undefined, nightly(1) and bldenv(1) will set it according to whether

# the closed source tree is present.  CLOSED_IS_PRESENT="no" means not

# building the closed sources.

# CLOSED_IS_PRESENT="no";               export CLOSED_IS_PRESENT



# Maximum number of dmake jobs.  The recommended number is 2 + (2 *

# NCPUS), where NCPUS is the number of CPUs on your build system.

maxjobs() {

         ncpu=`/usr/sbin/psrinfo -p`

         expr $ncpu \* 2 + 2

}

DMAKE_MAX_JOBS=`maxjobs`;                       export DMAKE_MAX_JOBS

# path to onbld tool binaries

ONBLD_BIN="/opt/onbld/bin"


# used by bfu.

FASTFS=$ONBLD_BIN/`uname -p`/fastfs;            export FASTFS

BFULD=$ONBLD_BIN/`uname -p`/bfuld;              export BFULD

GZIPBIN=/usr/bin/gzip;                          export GZIPBIN

ACR=$ONBLD_BIN/acr;                             export ACR



# PARENT_WS is used to determine the parent of this workspace. This is

# for the options that deal with the parent workspace (such as where the

# proto area will go).

PARENT_WS="";                   export PARENT_WS

# CLONE_WS is the workspace nightly should do a bringover from.

CLONE_WS="ssh://anon at hg.opensolaris.org//hg/onnv/onnv-gate"

export CLONE_WS

# The bringover, if any, is done as STAFFER.

# Set STAFFER to your own login as gatekeeper or developer

# The point is to use group "staff" and avoid referencing the parent

# workspace as root.

# Some scripts optionally send mail messages to MAILTO.

#

STAFFER=ajay;                           export STAFFER

MAILTO=$STAFFER;                        export MAILTO

# The project (see project(4)) under which to run this build.  If not

# specified, the build is simply run in a new task in the current  
project.

BUILD_PROJECT=;                         export BUILD_PROJECT

# You should not need to change the next four lines

LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME

ATLOG="$CODEMGR_WS/log";                        export ATLOG

LOGFILE="$ATLOG/nightly.log";                   export LOGFILE

MACH=`uname -p`;                                export MACH

# REF_PROTO_LIST - for comparing the list of stuff in your proto area

# with. Generally this should be left alone, since you want to see  
differences

# from your parent (the gate).

#

REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export  
REF_PROTO_LIST

# where cpio archives of the OS are placed. Usually this should be left
# alone too.
CPIODIR="${CODEMGR_WS}/archives/${MACH}/nightly";       export CPIODIR

#
#       build environment variables, including version info for mcs,  
motd,
# motd, uname and boot messages. Mostly you shouldn't change this except
# when the release slips (nah) or you move an environment file to a new
# release
#
ROOT="$CODEMGR_WS/proto/root_${MACH}";  export ROOT
SRC="$CODEMGR_WS/usr/src";              export SRC
VERSION="snv_112";                      export VERSION

#
# the RELEASE and RELEASE_DATE variables are set in Makefile.master;
# there might be special reasons to override them here, but that
# should not be the case in general
#
# RELEASE="5.11";                       export RELEASE
# RELEASE_DATE="October 2007";          export RELEASE_DATE

# proto area in parent for optionally depositing a copy of headers and
# libraries corresponding to the protolibs target
# not applicable given the NIGHTLY_OPTIONS
#
PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT

#
#       package creation variable. you probably shouldn't change this  
either.
#
PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly";    export  
PKGARCHIVE

# we want make to do as much as it can, just in case there's more than
# one problem.
MAKEFLAGS=k;    export MAKEFLAGS

# Magic variable to prevent the devpro compilers/teamware from sending
# mail back to devpro on every use.
UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING

# Build tools - don't change these unless you know what you're doing.   
These
# variables allows you to get the compilers and onbld files locally or
# through cachefs.  Set BUILD_TOOLS to pull everything from one  
location.
# Alternately, you can set ONBLD_TOOLS to where you keep the contents of
# SUNWonbld and SPRO_ROOT to where you keep the compilers.  SPRO_VROOT
# exists to make it easier to test new versions of the compiler.
BUILD_TOOLS=/opt;                               export BUILD_TOOLS
ONBLD_TOOLS=/opt/onbld;                 export ONBLD_TOOLS
SPRO_ROOT=/opt/SUNWspro;                export SPRO_ROOT
SPRO_VROOT=$SPRO_ROOT;                          export SPRO_VROOT

# This goes along with lint - it is a series of the form "A [y|n]" which
# means "go to directory A and run 'make lint'" Then mail me (y) the
# difference in the lint output. 'y' should only be used if the area  
you're
# linting is actually lint clean or you'll get lots of mail.
# You shouldn't need to change this though.
#LINTDIRS="$SRC y";     export LINTDIRS

# Set this flag to 'n' to disable the automatic validation of the dmake
# version in use.  The default is to check it.
#CHECK_DMAKE=y

# Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
# if the 'N' option is not specified, is to run this test.
#CHECK_PATHS=y

# BRINGOVER_FILES is the list of files nightly passes to bringover.
# If not set the default is "usr", but it can be used for bringing
# over deleted_files or other nifty directories.
#BRINGOVER_FILES="usr deleted_files"

# POST_NIGHTLY can be any command to be run at the end of nightly.  See
# nightly(1) for interactions between environment variables and this  
command.
#POST_NIGHTLY=


Also This is the script I run to build.

#!/bin/sh
cd /export/home/ajay/SunStudioProjects/OpenSolarisSource1/onnv-gate
rm -f on-closed-bins.i386.tar.bz2 on-closed-bins-nd.i386.tar.bz2
wget -q 
http://dlc.sun.com/osol/on/downloads/current/on-closed-bins-nd.i386.tar.bz2
wget -q http://dlc.sun.com/osol/on/downloads/current/on-closed-bins.i386.tar.bz2
gtar jxvf on-closed-bins.i386.tar.bz2
gtar jxvf on-closed-bins-nd.i386.tar.bz2
hg pull
hg update
env - HOME=$HOME SHELL=$SHELL DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY  
TERM=$TERM LOGNAME=$LOGNAME LANG=C LC_ALL=C PAGER=less MANPATH= 
$MANPATH nice -n +19 /opt/onbld/bin/nightly /export/home/ajay/ 
SunStudioProjects/OpenSolarisSource1/onnv-gate/opensolaris.sh



Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/on-discuss/attachments/20090503/48bbf87f/attachment.html>

Reply via email to