[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

2665.0. "re: Steelos build question/problem" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Tue Nov 12 1996 18:06

Date Of Receipt: 	11-NOV-1996 17:11:27.91
From: 	FLUME::jmf "Joshua M. Friedman Digital UNIX  11-Nov-1996 1707"
To: 	chin@DEC:.zko.flume
CC: 	buildhelp@DEC:.zko.flume
Subj: 	re: Steelos build question/problem

Theresa, please mail build questions and ode source control questions to
buildhelp (cc'd) and odehelp respectively.  Thanks.

In this case, you're clearly getting the wrong version of make; you're
getting the one out of /usr/sde/tools/... rather than out of the backing
tree; they support different switches which is convenient to catch errors.

I'm not sure why that would be, though it could be a group permissions
thing.  Make sure you're in group 'staff'=10.

If you run 'sbinfo PATH', one of the first directories should be 'hostbin'
within the backing tree:

    <tree>/tools/alpha_OSF1/alpha/hostbin/make

Also, you should be backed to a built tree such as steelos.nightly or
steelos.bl# rather than the submit tree, steelos, for a fully supported
build environment.  The submit tree has no exports or objs.

-josh


------- Forwarded Message

To: jmf
Cc: chin
Subject: Steelos build question/problem
Date: Mon, 11 Nov 96 16:25:06 -0500
From: Theresa Chin   UBPG Hardware Support <chin>
X-Mts: smtp

Hi Josh,

I got a tape of steelos backing tree last week and I tried
to build against it today on my local sandbox.  The build
failed immediately with the following error msg:

kuri>build  
relative path: ./kernel.
make: illegal option -- c
usage: make [-eiknqrst] [-D variable] [-d flags] [-f makefile ]
        [-I directory] [-j max_jobs] [variable=value]

Did anything change in kernel build tools for Steel OS?

thanks,

theresa



------- End of Forwarded Message


T.RTitleUserPersonal
Name
DateLines
2665.1Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:0631
Date Of Receipt: 	11-NOV-1996 17:20:20.63
From: 	WASTED::chin "Theresa Chin USG  11-Nov-1996 1716"
To: 	"Joshua M. Friedman, Digital UNIX, 381-1548" <jmf@DEC:.zko.wasted>
CC: 	chin@DEC:.zko.wasted, buildhelp@DEC:.zko.wasted
Subj: 	Re: Steelos build question/problem

>Theresa, please mail build questions and ode source control questions to
>buildhelp (cc'd) and odehelp respectively.  Thanks.

Will do.  Thanks for the pointer.

>I'm not sure why that would be, though it could be a group permissions
>thing.  Make sure you're in group 'staff'=10.

I'm in group 'staff' and also the backing tree I copied is 
from 'steelos.nightly' on Nov. 5th.  

The following is the output when I issue 'sbinfo PATH':

kuri>pwd
/home/chin/sb/steelos/src/kernel
kuri>sbinfo PATH
/home/chin/sb/steelos/tools/alpha/hostbin:/home/chin/sb/steelos/tools/alpha/bin:/home/chin/sb/steelos/tools/alpha/acc:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin

It looks that the first path is the 'hostbin', so I'm still not
sure why I cannot build a kernel with this backing tree copy.

thanks,

theresa

2665.2Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:0849
Date Of Receipt: 	12-NOV-1996 10:02:07.53
From: 	FLUME::"[email protected]" "12-Nov-1996 0958"
To: 	Theresa Chin UBPG Hardware Support <[email protected]>
CC: 	"Joshua M. Friedman, Digital UNIX, 381-1548" <[email protected]>,
	[email protected]
Subj: 	Re: Steelos build question/problem

| I'm in group 'staff' and also the backing tree I copied is 
| from 'steelos.nightly' on Nov. 5th.  
| 

Did you copy the whole tree? Do you have the full tools dir?

If you look in /usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostb
in

do you find make there?


lynx osf1/build [23] cd /usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/al
pha/hostbin
lynx alpha/hostbin [24] ll make
-rwxr-xr-x   1 devbld   staff     458752 May 18  1995 make*
lynx alpha/hostbin [25] sum make
24644    448 make

	-Grant

| The following is the output when I issue 'sbinfo PATH':
| 
| kuri>pwd
| /home/chin/sb/steelos/src/kernel
| kuri>sbinfo PATH
| /home/chin/sb/steelos/tools/alpha/hostbin:/home/chin/sb/steelos/tools/alpha/b
in:/home/chin/sb/steelos/tools/alpha/acc:/usr/sde/osf1/build/steelos.nightly/to
ols/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OS
F1/alpha/bin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc:/us
r/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin
| 
| It looks that the first path is the 'hostbin', so I'm still not
| sure why I cannot build a kernel with this backing tree copy.
| 
| thanks,
| 
| theresa
| 



2665.3Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:0946
Date Of Receipt: 	12-NOV-1996 10:14:30.58
From: 	FLUME::"[email protected]" "Theresa Chin USG  12-Nov-1996 1010"
To: 	"Grant Van Dyck" <[email protected]>
CC: 	[email protected],
	"Joshua M. Friedman, Digital UNIX, 381-1548" <[email protected]>,
	[email protected]
Subj: 	Re: Steelos build question/problem

Hi Grant,

>Did you copy the whole tree? Do you have the full tools dir?

I copied pretty much everything.  However my local disk
couldn't hold all the OBJ etc. so /tools directory has
only the following contents which worked fine with older backing tree:

kuri>pwd
/backtree/steelos.nov5/tools
kuri>lsg
total 1
drwxr-xr-x   3 8887     staff        512 Nov 11 15:46 alpha_OSF1
lrwxrwxrwx   1 root     staff         33 Nov 11 15:44 help -> ../src/admin/sourcekit/tools/help

>If you look in /usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostbin
>
>do you find make there?

Yes, there is a 'make' in that directory which is the same
as what's in the steelos.nightly in ZKO:

-rwxr-xr-x   1 8887     staff     458752 May 18  1995 make

kuri>sum make
24644    448 make


I copied everything I normally copy for a backing tree, so
I don't understand why I can't build this time.
 
thanks,

theresa




2665.4Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:1219
Date Of Receipt: 	12-NOV-1996 11:47:19.50
From: 	FLUME::"[email protected]" "Shashi Mangalat USG  12-Nov-1996 1143"
To: 	Theresa Chin UBPG Hardware Support <[email protected]>
CC: 	[email protected]
Subj: 	Re: Steelos build question/problem

Theresa,

Do a "build -info" and see what make is being used.


% build -info
relative path: ./kernel.
string passed to /usr/sde/osf1/build/steelos.bl5/tools/alpha_OSF1/alpha/hostbin/make:
   make -cF build_all 
  Elapsed build time(hr:min:sec): 0:0:7 

--shashi

2665.5Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:1224
Date Of Receipt: 	12-NOV-1996 11:51:46.97
From: 	WASTED::chin "Theresa Chin USG  12-Nov-1996 1148"
To: 	[email protected]
CC: 	chin@DEC:.zko.wasted, buildhelp@DEC:.zko.wasted
Subj: 	Re: Steelos build question/problem

Shashi,

>Do a "build -info" and see what make is being used

Here is my output:

kuri>pwd
/home/chin/sb/steelos/src/kernel
kuri>build -info
relative path: ./kernel.
kuri>

It looks that I don't get that second line you had in the mail.

thanks,

theresa

2665.6Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:1325
Date Of Receipt: 	12-NOV-1996 12:17:23.13
From: 	HUNCH::shashi "Shashi Mangalat USG  12-Nov-1996 1213"
To: 	Theresa Chin UBPG Hardware Support <chin@DEC:.zko.hunch>
CC: 	buildhelp@DEC:.zko.hunch
Subj: 	Re: Steelos build question/problem

kuri>build -info
relative path: ./kernel.
kuri>

Interesting.  Could you please check the "build" you are using?

% which build
/usr/sde/tools/alpha_OSF1/bin/build
%
% sum /usr/sde/tools/alpha_OSF1/bin/build
18967    264 /usr/sde/tools/alpha_OSF1/bin/build
%

Also try using the verbose option to see if you get any more info.

% build -verbose -info

--shashi

2665.7Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:19100
Date Of Receipt: 	12-NOV-1996 13:37:29.88
From: 	WASTED::chin "Theresa Chin USG  12-Nov-1996 1333"
To: 	[email protected]
CC: 	Theresa Chin UBPG Hardware Support <chin@DEC:.zko.wasted>,
	buildhelp@DEC:.zko.wasted
Subj: 	Re: Steelos build question/problem

> Could you please check the "build" you are using?

kuri>pwd
/home/chin/sb/steelos/src/kernel
kuri>which build
/usr/sde/ode2.0/tools/alpha_ace/bin/build
kuri>sum /usr/sde/ode2.0/tools/alpha_ace/bin/build
03910    160 /usr/sde/ode2.0/tools/alpha_ace/bin/build

It looks that the sum is definitely different.  However
please note that I'm still on ode2.0 although this is not
supposed to be a problem (I've discussed this with Josh
before, since I don't need to bco/bci from my sandbox,
I was told that I don't need ode3.0).  I had no problem
building against a backing tree from PTAOS stream.

>Also try using the verbose option to see if you get any more info.

>% build -verbose -info

Here is the result of this command:

kuri>build -verbose -info
>  Reading rc file : /home/chin/.sandboxrc
>  environment variable USER: chin.
>  The following environment variables were set:
>    host_machine=alpha
>    host_os_type=OSF1
>    BCSDIRECTORY=/usr/sde/ode2.0
>    BCSPORT=548
>    PATH=/home/chin/sb/steelos/tools/alpha/hostbin:/home/chin/sb/steelos/tools/alpha/bin:/home/chin/sb/steelos/tools/alpha/acc:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin
>    BCSHEADERS=/usr/sde/osf1/headers
>    target_os_type=osf1
>    machine=alpha
>    TARGET_MACHINE=ALPHA
>    target_machine=alpha
>    NEW=STEELOS;PTBOS_BL3;PTAOS_BL4;<>
>    LATEST=ALPHA;<99/12/31,23:59:59
>    PROJECT_NAME=ALPHA
>    project_name=alpha
>    SITE=OSF
>    OWNER=bin
>    GROUP=bin
>    MAKEFILEPATH=${MAKETOP}/usr/lib/makefiles
>    BACKED_SOURCEDIR=/home/chin/sb/steelos/src:/usr/sde/osf1/build/steelos.nightly/src
>    SOURCEDIR=/usr/sde/osf1/build/steelos.nightly/src
>    BACKED_PATH=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin
>    EXPORTBASE=/home/chin/sb/steelos/export/alpha
>    INCDIRS=-I/home/chin/sb/steelos/export/alpha/usr/include -I/usr/sde/osf1/build/steelos.nightly/export/alpha/usr/include
>    SHLIBDIRS=-L/home/chin/sb/steelos/export/alpha/usr/shlib -L/usr/sde/osf1/build/steelos.nightly/export/alpha/usr/shlib
>    MIGCOM=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostbin/migcom
>    LEXER=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/lib/ncform
>    YACCPAR=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/lib/yaccpar
>    ULT_INCDIRS=-I/usr/include
>    ULT_LIBDIRS=-L/usr/lib -L/lib
>    C_COMPILER=cc
>    COMP_HOST_ROOT=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc
>    COMP_TARGET_ROOT=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc
>    LIBDIRS=-L/home/chin/sb/steelos/export/alpha/usr/ccs/lib -L/home/chin/sb/steelos/export/alpha/usr/ccs/lib/cmplrs/cc -L/usr/sde/osf1/build/steelos.nightly/export/alpha/usr/ccs/lib -L/usr/sde/osf1/build/steelos.nightly/export/alpha/usr/ccs/lib/cmplrs/cc
>    OBJECT_FORMAT=COFF
>    COFF_GCC_EXEC_PREFIX=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/gcc/
>    submit_defect_check=true
>    SUBMIT_REVIEW=/usr/sde/osf1/submit_review
>    SOURCEBASE=/home/chin/sb/steelos/src
>    [email protected],[email protected],[email protected]
>    TARGET_OS_TYPE=OSF1
>    CC_SUITE=ACC
>    cc_suite=acc
>    MACHO_GCC_EXEC_PREFIX=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/macho/
>    A_OUT_GCC_EXEC_PREFIX=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/gcc/
>    COFF_ACC_EXEC_PREFIX=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc/
>    COFF_MCC_EXEC_PREFIX=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/mcc/
>    TARGET_EXEC_PREFIX=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostbin/
>    COMP_HOST_ROOT_M64=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/mcc/
>    COMP_TARGET_ROOT_M64=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/mcc/
>    RELEASE_OPTIONS=-idfile `genloc /src/setup/osf1_idlist`
>    DECCXX_DIRECTORY=/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc
>    NLSPATH=/usr/sde/osf1/build/steelos.nightly/export/alpha/usr/lib/nls/msg/%L/%N:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N
>    CXX_CC=platinum
>    OBJECTDIR=../obj/alpha
>  reading PATH from environment as:
   /home/chin/sb/steelos/tools/alpha/hostbin:/home/chin/sb/steelos/tools/alpha/bin:/home/chin/sb/steelos/tools/alpha/acc:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/hostbin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/bin:/usr/sde/osf1/build/steelos.nightly/tools/alpha_OSF1/alpha/acc:/usr/sde/ode2.0/tools/alpha_ace/bin:/usr/ucb:/bin:/usr/bin:/sbin:/usr/sbin.
relative path: ./kernel.
>  target: build_all
>  building: build_all.
>  string passed to /usr/sde/ode2.0/tools/alpha_ace/bin/make:
   make -cF build_all 
kuri>

thanks,

theresa

2665.8Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:2121
Date Of Receipt: 	12-NOV-1996 13:45:59.11
From: 	FLUME::jmf "Joshua M. Friedman Digital UNIX"
To: 	chin@DEC:.zko.flume
CC: 	buildhelp shashi
Subj: 	Re: Steelos build question/problem

The 'build' command returns more information as of ode3.0.  I recommend
getting the latest ode 'build' command if nothing else.

You can also reset your path within your workon shell using

    sh,ksh:	export PATH=`sbinfo PATH`

    csh:	setenv PATH `sbinfo PATH`

This will allow 'which make' to return the same path used within the
build, and ease some debugging.  If it fixes the problem, however, 
I'd be surprised.

-josh

2665.9Re: Steelos build question/problemAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Nov 12 1996 18:2322
Date Of Receipt: 	12-NOV-1996 14:11:47.98
From: 	WASTED::chin "Theresa Chin USG  12-Nov-1996 1408"
To: 	Joshua M. Friedman Digital UNIX <jmf@DEC:.zko.wasted>,
	shashi@DEC:.zko.wasted, vandyck@DEC:.zko.wasted
CC: 	chin@DEC:.zko.wasted, buildhelp@DEC:.zko.wasted
Subj: 	Re: Steelos build question/problem

Thanks for all your help.  While I was on the phone with Shashi,
we found out the problem.  It turned out that the problem was
caused by the fact that I named the backing tree as 'steelos.nov5'
instead of 'steelos.nightly'.  Since the build expected things
in 'steelos.nightly' path, it didn't find those files properly.
I thought it will help me remember which version of nightly
I copied, by naming it with the copy date, but didn't realize
it will cause problem.  Sorry about the confusion :-(.

I'll copy down the newer version of 'build' command anyway.

thanks again,

theresa