On Fri, Apr 21, 2006 at 11:03:28AM -0700, Mike Kuhnkey wrote:

> This directory is empty?
> "/rmdisk/unnamed_rmdisk/export/testws/usr/src/tools/proto/opt/onbld/bin/i386/"

This directory is populated during the tools build, for nightly builds
with the 't' flag turned on.

> No 32-bit compiler found
> *** Error code 1
> The following command caused the error:
> if 
> /rmdisk/unnamed_rmdisk/export/testws/usr/src/tools/proto/opt/onbld/bin/i386/cw
>  -_cc -_versions >/dev/null 2>/dev/null; then \

I'm the last person who changed this, but I've looked at it about 10
times and don't believe this problem was caused by my recent changes.
Basically, we've _always_ invoked $($(MACH)_CC) in the cc-version
target.  If you have ONBLD_TOOLS set to something invalid (such as a
not-yet-built tools proto area) it won't work - that's not new.

> This is when I discovered:
> "/rmdisk/unnamed_rmdisk/export/testws/usr/src/tools/proto/opt/onbld/bin/i386" 
> is empty?

nightly does the version check before it builds the tools.  Arguably,
this is a bug - it would be useful to know the tools that will
actually be used to build, which can't be known until *after* a tools
build completes.  Anyway, nightly only sets ONBLD_TOOLS to the proto
area *after* it does the version check.  The default value should
still be used for the version check, which is $(BUILD_TOOLS)/onbld.
The opensolaris.sh in ON sets BUILD_TOOLS to /opt.  So the only way
you can have this problem is if your environment is polluted.  Does
your nightly.log contain an environment entry for BUILD_TOOLS or
ONBLD_TOOLS other than /opt?  If so, that's the problem - check your
opensolaris.sh and be sure that BUILD_TOOLS is being set to /opt.  If
you need to change the compiler location, see the comments above that
variable.  If this variable is simply set in your shell's environment,
you should unset it or clean your build environment by running nightly
under env -i.

-- 
Keith M Wesolowski              "Sir, we're surrounded!" 
Solaris Kernel Team             "Excellent; we can attack in any direction!" 
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to