tj,<div><br></div><div>Thanks for the feedback.  It looks like we had been running this on a system with a lot of extra packages.<br><br>I've updated the toolset to tell you when you don't have the basic reqs installed and present you with the single command to install them all... For now, that includes:</div>
<div> </div><div><div> developer/gcc46</div><div> developer/object-file</div><div> developer/linker</div><div> developer/library/lint</div><div> developer/build/gnu-make</div><div> system/header</div></div><div><br></div>
<div>I've also added support for an on-disk repo (see site.sh)</div><div><br></div><div>If you are going to be installing these packages on more than one machine, you'll definitely want to setup a repo yourself: <a href="http://omnios.omniti.com/wiki.php/CreatingRepos">http://omnios.omniti.com/wiki.php/CreatingRepos</a></div>
<div><br></div><div>FWIW, all the packages in the build checkout have are already built an published to the omnios release package repository that your system shipped referencing.  When you type "pkg install ...." you are getting packages that were build with the system you're currently using.</div>
<div><br></div><div><br></div><div><div class="gmail_quote">On Sat, Apr 14, 2012 at 5:14 PM, T.J. Yang <span dir="ltr"><<a href="mailto:tjyang2001@gmail.com">tjyang2001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Apr 14, 2012 at 10:10 AM, Theo Schlossnagle <<a href="mailto:jesus@omniti.com">jesus@omniti.com</a>> wrote:<br>
> I can repeat the problem and have pushed a fix.<br>
><br>
> git pull and try again.<br>
<br>
</div>Thanks, The build had gone further.<br>
<br>
My OS is a fresh iso installed vmware session.  There are still many<br>
build needed apps need to be installed before one can really build a<br>
package(Ex, zlib).<br>
<br>
Like I ran following commands to get ld and ar. and also installed<br>
gmake and gcc-4.6.3 before.<br>
<br>
pkg install /developer/object-file  /developer/linker<br>
<br>
Looks like the simplified version of R1 is too simple.<br>
<br>
Now I need to figure out how to make build machine a pkg depot server<br>
to get rid of following error.<br>
<br>
<br>
>The PKGSRVR (<a href="http://pkg-internal.omniti.com:10006/" target="_blank">http://pkg-internal.omniti.com:10006/</a>) >isn't available. All is doomed.<br>
<br>
tj<br>
<br>
<br>
-bash-4.2$ git pull<br>
remote: Counting objects: 14, done.<br>
remote: Compressing objects: 100% (8/8), done.<br>
Unpacking objects: 100% (9/9), done.<br>
remote: Total 9 (delta 6), reused 0 (delta 0)<br>
>From src.omniti.com:~omnios/core/omnios-build<br>
   d776a0b..ec096da  master     -> origin/master<br>
Updating d776a0b..ec096da<br>
Fast-forward<br>
 build/buildctl         |    2 +-<br>
 build/illumos/build.sh |    2 +-<br>
 2 files changed, 2 insertions(+), 2 deletions(-)<br>
-bash-4.2$ ls<br>
build     lib       new.sh    template<br>
-bash-4.2$ cd build/<br>
-bash-4.2$ ./buildctl build  library/zlib<br>
===== Build started at Sat Apr 14 23:37:35 HKT 2012 =====<br>
Package name: library/zlib<br>
Selected flavor: None (use -f to specify a flavor)<br>
Selected build arch: both<br>
Extra dependency: None (use -d to specify a version)<br>
The PKGSRVR (<a href="http://pkg-internal.omniti.com:10006/" target="_blank">http://pkg-internal.omniti.com:10006/</a>) isn't available.<br>
All is doomed.<br>
An Error occured in the build. Do you wish to continue anyway? (y/n) y<br>
===== Error occured, user chose to continue anyway. =====<br>
Verifying dependencies<br>
Specified target directory /tmp/build_build does not exist.  Creating it now.<br>
Checking for source directory<br>
--- Source directory not found<br>
Checking for zlib source archive<br>
--- Archive not found.<br>
Downloading archive<br>
Extracting archive: zlib-1.2.6.tar.gz<br>
Checking for patches in patches/ (in order to apply them)<br>
--- No patches directory found<br>
--- Not applying any patches<br>
Preparing for build<br>
--- Creating temporary install dir<br>
Building 32-bit<br>
--- make (dist)clean<br>
--- *** WARNING *** make (dist)clean Failed<br>
--- configure (32-bit)<br>
--- make<br>
--- Make failed<br>
An Error occured in the build. Do you wish to continue anyway? (y/n)<br>
<br>
In /export/home/build/omnios-build/build/zlib/build.log<br>
<br>
<snipped><br>
 -D_FILE_OFFSET_BITS=64 -c -o example64.o test/example.c<br>
/opt/gcc-4.6.3/bin/gcc -DNO_VIZ -m64  -D_LARGEFILE64_SOURCE=1 -DNO_vsnprintf -I.<br>
 -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o test/minigzip.c<br>
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.<br>
o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o<br>
gmake: ar: Command not found<br>
gmake: ***<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> On Sat, Apr 14, 2012 at 6:20 AM, T.J. Yang <<a href="mailto:tjyang2001@gmail.com">tjyang2001@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I am trying out the instruction(See R1) to build OmniOS on an OmniOS vm<br>
>> session.<br>
>> Thanks to stephen's pointer to use anonymous user to check out the src<br>
>> tree.<br>
>><br>
>> 1. Doing a simple build of zlib is causing "build.sh" not found issue.<br>
>><br>
>> -bash-4.2$ pwd<br>
>> /export/home/build/omnios-build/build<br>
>> -bash-4.2$ uname -a<br>
>> SunOS omni 5.11 omni-os-d669e00 i86pc i386 i86pc<br>
>><br>
>> -bash-4.2$ ./buildctl list |grep zlib<br>
>>  * library/zlib<br>
>> -bash-4.2$ ./buildctl build  library/zlib<br>
>> ./buildctl: line 89: build.sh: command not found<br>
>> -bash-4.2$ ls -l zlib/build.sh<br>
>> -rwxr-xr-x   1 build    other        784 Apr 14 13:04 zlib/build.sh<br>
>> -bash-4.2$<br>
>><br>
>> 2. following is debugging log by " bash -x ./buildctl build  library/zlib"<br>
>> <snipped><br>
>> + DEFAULT_PKGPUBLISHER=omnios<br>
>> + case "$1" in<br>
>> + shift<br>
>> + for tgt in '$*'<br>
>> + build library/zlib<br>
>> + [[ -z zlib/build.sh ]]<br>
>> ++ dirname zlib/build.sh<br>
>> + DIR=zlib<br>
>> + pushd zlib<br>
>> + PKGSRVR=<a href="http://pkg-internal.omniti.com:10006/" target="_blank">http://pkg-internal.omniti.com:10006/</a><br>
>> + PKGPUBLISHER=omnios<br>
>> ++ pwd<br>
>> + PKGROOT=/export/home/build/omnios-build/build/zlib/root<br>
>> + [[ -f environment ]]<br>
>> ++ basename zlib/build.sh<br>
>> + SCRIPT=build.sh<br>
>> ++ echo build.sh<br>
>> ++ grep '.p5m$'<br>
>> + [[ -n '' ]]<br>
>> + build.sh<br>
>> ./buildctl: line 89: build.sh: command not found<br>
>> + popd<br>
>> + exit<br>
>> -bash-4.2$<br>
>><br>
>><br>
>> Looks like I am missing configuration step to change depot server from<br>
>> <a href="http://pkg-internal.omniti.com:10006/" target="_blank">http://pkg-internal.omniti.com:10006/</a> to my own ?<br>
>><br>
>> R1: <a href="http://omnios.omniti.com/wiki.php/BuildInstructions" target="_blank">http://omnios.omniti.com/wiki.php/BuildInstructions</a><br>
>> --<br>
>> T.J. Yang<br>
>> _______________________________________________<br>
>> OmniOS-discuss mailing list<br>
>> <a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
>> <a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
><br>
><br>
><br>
><br>
> --<br>
><br>
> Theo Schlossnagle<br>
><br>
> <a href="http://omniti.com/is/theo-schlossnagle" target="_blank">http://omniti.com/is/theo-schlossnagle</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
T.J. Yang<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>
<p>Theo Schlossnagle</p>
<p><a href="http://omniti.com/is/theo-schlossnagle" target="_blank">http://omniti.com/is/theo-schlossnagle</a></p><br>
</div>