[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

928.0. "Re: Is there a newer/better make utility for building" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Wed Aug 31 1994 13:14

Date Of Receipt: 	31-AUG-1994 12:03:11.87
From: 	ALPHA::aaron "Aaron Sawyer USG  31-Aug-1994 1201"
To: 	Jim McGinness <[email protected]>
CC: 	aaron@DEC:.zko.alpha, buildhelp@DEC:.zko.alpha
Subj: 	Re: Is there a newer/better make utility for building

Hi, Jim,

% echo $WORKON
1
% echo $PATH
/usr/sde/tools/alpha_OSF1/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin
% sbinfo PATH
/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin
% fgrep '/usr/sde' ~/.{cshrc,login}              
/tmp_mnt/alpha/home/aaron/.cshrc:      set path=(/usr/sde/tools/${ARCH}_$OS/bin $path)
% echo $ARCH $OS
alpha OSF1

I think I got it right.  Anyway, I built a make with HASHSIZE = 65535, dumped
it into the sandbox exports area, and edited the shared rc_file to put the
${EXPORTBASE}/usr/bin at the front of PATH.  Seems to work OK now:

% sbinfo PATH
/pram/u9/sandboxes/gos/export/alpha/usr/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/goldos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin

Thanks,
=Aaron


> The hostbin make is what you should be using, but it almost sounds
> like your path is hitting on your host system's make command, which
> has a smaller value of HASHSIZE (8191) than Grant says is in the
> hostbin make.  While you are in your sandbox, does an "echo $PATH"
> show /bin or /usr/bin before the /usr/sde/... entries?  Improper
> setting of path or PATH in your .cshrc script might cause this.
> 
> 	-- jmcg

T.RTitleUserPersonal
Name
DateLines
928.1Re: Is there a newer/better make utility for buildingSMURF::FILTERAutomatic Posting Software - mail to flume::puckWed Aug 31 1994 14:1767
Date Of Receipt: 	31-AUG-1994 12:44:26.04
From: 	ALPHA::aaron "Aaron Sawyer USG  31-Aug-1994 1242"
To: 	Jim McGinness <[email protected]>
CC: 	aaron@DEC:.zko.alpha, buildhelp@DEC:.zko.alpha
Subj: 	Re: Is there a newer/better make utility for building

Currently, mksb only creates the first-level children under the
sandbox tools directory:

% pwd
~/sandboxes/gos/src
% ls -AFs ../tools
1 alpha/           1 pmax_ace/        1 vax_ultrix/
1 alpha_osf/       1 pmax_ultrix/
% ls -AFsl ../tools/*

../../../tools/alpha:
total 0

../../../tools/alpha_osf:
total 0

../../../tools/pmax_ace:
total 0

../../../tools/pmax_ultrix:
total 0

../../../tools/vax_ultrix:
total 0
% 

The shared rc_file has the following lines:

...
include ../link/rc_files/shared.sharedsandbox
replace sandbox_base
replace source_base ${sandbox_base}/src
...
replace tools_base ${sandbox_base}/tools/${target_machine}
#replace on mips  tools_path ${tools_base}/hostbin:${tools_base}/mcc/usr/bin
#replace on alpha tools_path ${tools_base}/cc/usr/bin:${ode_path}
replace setenv SOURCEBASE ${source_base}
...
replace setenv BACKED_PATH ${PATH}
replace setenv PATH ${tools_path}:${BACKED_PATH}
...

The shared.tmpl file is the same.
Looks confusing.  I'll cobble up a tools_path define for rc_files/shared
and see if that works.


Thanks,
=Aaron

> Looks like you have your solution.
> 
> In general, the path should be set in .login rather than .cshrc.
> 
> The proper place for a tool like this is in your sandbox's
> 	tools/alpha_OSF1/alpha/hostbin
> directory.  As you have it set up, you're violating the (currently
> inconsequential) separation between host and target.
> 
> 	-- jmcg