Flag day for incremental builds of OSnet


Date: Fri, 03 Apr 2009 13:52:15 -0600
From: Ali Bahrami <Ali.Bahrami at sun dot com>
To: onnv-gate at onnv dot eng dot sun dot com, on-all at eng dot sun dot com
Subject: Flag day for incremental builds of OSnet

This is a flag day for any ON gateling who does incremental builds.

If you pull my fix for

     6821619 Solaris linkers need systematic approach to ELF OSABI
     PSARC/2009/196 ELF objects to set OSABI / elfdump -O option

into an existing workspace, and then do an incremental build,
you will encounter build errors that look like:

     ==== Build errors (DEBUG) ====

     ./msg.h:6: error: redefinition of typedef 'Msg'
     ../../include/sgsmsg.h:39: error: previous declaration of 'Msg' was here
     dmake: Warning: Command failed for target `pics/doreloc_sparc_32.o'
     ...

To avoid this, do a clobber in usr/src/cmd/sgs after pulling this change,
and before your next build:

	% cd usr/src/cmd/sgs
	% make clobber

Alternatively, you can just do a full clobber build (omit the -i
from your nightly flags).

~----

I did full nightly builds and BFU before integration, but the builds
were in fresh workspaces. The lesson learned is that when you modify
tools that generate files, you need to test both types of nightly.

A secondary lesson is that the make rules for these generated files
should include a dependency on the tool itself. I will be following up
on that.

I apologize for the inconvenience.

- Ali

last modified by danmcd on 2009/11/24 14:23
Collectives
Project


© Sun Microsystems Inc. 2009
XWiki Enterprise 1.8.2.19075 - Documentation
Terms Of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines | Site map | Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.