To compile OpenSolaris b94 with Sun Studio 12 on SX:CE snv_93 I have had to keep some notes that are composed of various 'Build help' files and various tips in other threads. These are my current notes that _almost_ have a successful compile working:
## I'm following direction from URL: http://opensolaris.org/os/community/on/devref_toc/devref_1/ ## Notes: go root, create a workspace drive (using c1t2d0 c1t3d0 c1t4d0 gives me 47GB) ## create a download and workspace directory, wget files, unpack files from download to workspace directory ## add "/opt/onbld/bin" to environment variable PATH, copy the opensolaris script to workspace, ## edit opensolaris.sh to set a few variables, run nightly, if doing a "cap-eye-install" run "Install" ## I'm username "vmware" and below any "##" are comments ## $ su # cd /export/home/vmware/Download ## Install 'on' Builder # wget http://dlc.sun.com/osol/on/downloads/current/SUNWonbld.i386.tar.bz2 # bzip2 -dc SUNWonbld.i386.tar.bz2 | tar xf - # pkgadd -d onbld SUNWonbld ## Make a large workspace # zpool create -f aux0 c1t2d0 c1t3d0 c1t4d0 # cd /aux0 # mkdir /aux0/Download # cd /aux0/Download ## wget (I only used the x86 DEBUG versions from http://dlc.sun.com/osol/on/downloads/b94/) # wget http://dlc.sun.com/osol/on/downloads/b94/on-src.tar.bz2 # wget http://dlc.sun.com/osol/on/downloads/b94/xvm-src.tar.bz2 # wget http://dlc.sun.com/osol/on/downloads/b94/on-closed-bins.i386.tar.bz2 # wget http://dlc.sun.com/osol/on/downloads/b94/on-bfu-nightly-osol.i386.tar.bz2 # wget http://dlc.sun.com/osol/on/downloads/b94/README.opensolaris # wget http://dlc.sun.com/osol/on/downloads/b94/on-changelog-b94.html # mkdir /aux0/testws # cd /aux0/testws # bzip2 -dc ../Download/on-src.tar.bz2 | tar xf - # bzip2 -dc ../Download/on-closed-bins.i386.tar.gz | tar xf - # bzip2 -dc ../Download/on-bfu-nightly-osol.i386.tar.bz2 | tar xf - ## The directory /aux0/testws/closed _seems_ like the correct location for ## the 'closed' directory but Makefile.master likes "CLOSED=$(SRC)/../closed" ## so copy it there also. # cp -r /aux0/testws/closed /aux0/testws/usr/ # export set PATH=/usr/sbin:/usr/bin:/opt/onbld/bin # export set MANPATH= ... + /opt/onbld/man # cp /aux0/testws/usr/src/tools/env/opensolaris.sh /aux0/testws ## Edit /aux0/testws/opensolaris.sh and set a few variables ## GATE=testws ## CODEMGR_WS="/aux0/$GATE" ## STAFFER=vmware (or your login) ## VERSION=snv_94 # nano opensolaris.sh (nano is from http://www.blastwave.org/) ## Setup environment variables ("-d" for DEBUG build) # bldenv -d opensolaris.sh ## Setup environment variable Sun Studio 12 # export set __SSNEXT="" ## Check environment to ensure that BUILD_TOOLS=/opt and ONBLD_TOOLS=/opt/onbld ## (and ONBLD_TOOLS != /aux0/testws/usr/src/tools/proto/opt/onbld), set SRC too. ## Fix missing include files (may need to add "-i" to nightly to preserve these) # cp -r -/ /usr/include/* /aux0/testws/proto/root_i386/usr/include/ ## Now we can build OpenSolaris # nightly ./opensolaris.sh & ## Now we can install OpenSolaris # /opt/onbld/bin/Install -G kernel.snv_94 -k i86pc ## If (when) that works I will try xVM too ## Now build the b94/xvm-src.tar.bz2 as described at URL: http://opensolaris.org/jive/thread.jspa?messageID=237884 # cd /aux0/testws # bzip2 -dc ../Download/xvm-src.tar.bz2 | tar xf - # This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code