What's the proper steps to repeat a build?

Added by Andre Lue over 3 years ago

What's the proper steps to make a repeat attempt at the illumos build? I guess something along the lines of to a make clean.

What I currently do is maintain a copy of the hg clone ssh:///illumos-gate

or I re-download it and repeat the steps from there. Is this the right or only way?


Replies (6)

RE: What's the proper steps to repeat a build? - Added by Mike La Spina over 3 years ago

The nightly script will do a cleanup. You would need to pull the changes from hg and then run the build the same way.

e.g.

uname@host:/code/illumos-gate$ hg pull ssh:///illumos-gate
pulling from ssh:///illumos-gate
searching for changes
adding changesets
adding manifests
adding file changes
added 3 changesets with 51 changes to 51 files
(run 'hg update' to get a working copy)
uname@host:/code/illumos-gate$ hg update
merging usr/src/uts/common/Makefile.files
merging usr/src/uts/common/Makefile.rules
49 files updated, 2 files merged, 19 files removed, 0 files unresolved

uname@host:/code/illumos-gate$ time ./nightly.sh illumos.sh

RE: What's the proper steps to repeat a build? - Added by Chavdar Ivanov over 3 years ago

Hi, all,

I finally found some time to build Illumos.

Do I have to boot into snv-145 to do the pull and then run nightly to repeat, or I could do it under the latest illumos-gate BE?

(for the record, if anyone is collecting that sort of data, on

cpu0: x86 (AuthenticAMD 10FF0 family 15 model 31 step 0 clock 2010 MHz)
cpu0: AMD Athlon(tm) 64 Processor 3200+

- just a Shuttle box with 2 GB, I got:

++++++ ==== Nightly distributed build completed: Tue Sep 14 08:40:59 BST 2010 ====

==== Total build time ====

real 10:47:04
----------

Seems to be working just fine, the rest is obviously snv_134)

RE: What's the proper steps to repeat a build? - Added by Andre Lue over 3 years ago

As per the instructions, yes, you are supposed to boot into snv_145

RE: What's the proper steps to repeat a build? - Added by Jim Klimov over 3 years ago

And is it possible (and/or useful) to make a build WITHOUT the cleanup?

My attempts in VirtualBox took over 11 hours to fail (unsatisfied GNOME headers in textInstall VM, out of swap space in GUI VM). According to the WIKI page, others take around 24 hours to build in a VirtualBox VM.

Obviously, a "nightly" build would be outdated in 24 hours ;)

Even so, if a daily update like the one pasted above would change 49 files, why rebuild all of the code?
I think it should be possible to link a new nightly build with old (but not obsolete) object files lying around?
Or are there no good Makefiles with correct dependency trees for the source code?

RE: What's the proper steps to repeat a build? - Added by Jeppe Toustrup over 3 years ago

Jim Klimov wrote:

And is it possible (and/or useful) to make a build WITHOUT the cleanup?

You can do a build without clobbering (clean up) by using the "-i" flag. It will do an incremental build then.

RE: What's the proper steps to repeat a build? - Added by Jim Klimov over 3 years ago

Uh-huh, thanks, I'll try that.
I skimmed over the "nightly" script code last weekend, but didn't find this key quickly, and went on to other tasks.

On a side note, it would be nice if the "nightly" script reported in its stdout (not in log/mail files) whether it had a problem building the code. Even if just a one-liner status message with a pointer to the log files. I only found that my builds apparently failed then there was no "repo.dist" file to process and install...

Thanks, Jim.

(1-6/6)