[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

2478.0. "Help building kernel objects" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Thu Aug 08 1996 14:07

Date Of Receipt: 	 8-AUG-1996 12:17:32.90
From: 	FLUME::"[email protected]" "08-Aug-1996 1715"
To: 	[email protected]
CC: 	[email protected]
Subj: 	Help building kernel objects

Hello, 

I am new to the ode system and I need to build some kernal objects for
version 3.2F of Digital UNIX. I have got some help from John Dustin who has
directed me to this list.

Following John's instructions I took the following step's in my home 
directory (I am using Fred Templin's account until I can get my own
account organised)

csh> mksb -back v32fsupportos v32supportos
csh> workon -sb v32fsupportos
% mklinks -dironly .
% setenv DO_MODULES AUTO
% cd kernel
% build setup

At this stage build goes off and does lots of work, and then breaks. It seems
that the c compiler breaks in the include file /usr/include/string.h while
trying to compile the file mkdata.c. The first few messages reported are:

env - COMP_HOST_ROOT=/ COMP_TARGET_ROOT=/ /usr/bin/cc   -EL -c  -DBSD44 -DMSG  -D__WCHAR_T_LEN=4
-Wf,-wchar32  -DMACH -DCMU -DOSF  -Dalpha -D__alpha__ -D__alpha  -Dunix -D__unix__      -O2 -Olimit 5000
 -DCMU -D_NO_PROTO -Dconst=      `genpath -I.` `genpath  -I../../include -I/usr/include ` -I/usr/include
/usr/sde/osf1/build/v32fsupportos/src/kernel/src/mkdata/mkdata.c
cc: Error: /usr/include/string.h, line 164: In the declaration of "__R", a function may not return a
function type.
extern char    * __R(basename) __((char  *));
-----------------^
cc: Warning: /usr/include/string.h, line 164: In the declaration of "__R", a function declarator has an
identifier list but is not part of a function definition.  Extraneous parameter names are ignored.
extern char    * __R(basename) __((char  *));
-----------------^
cc: Error: /usr/include/string.h, line 165: In the declaration of "__R", a function may not return a
function type.
extern char    * __R(dirname) __((char  *));
-----------------^

Some of the environment variables that are set in my 'workon' shell that may be
relevent are:

C_COMPILER=cc
INCDIRS=-I/home/templin/sb/v32fsupportos/export/alpha/usr/include -I/usr/sde/osf1/build/v32fsupportos/export/alpha/usr/include
ULT_INCDIRS=-I/usr/include


I guess that my build environment is not setup correctly, can anyone tell me
what I'm doing wrong or what steps I am missing. If you need any furtyher
information please let me know.

Thanks and regards,
Ollie

T.RTitleUserPersonal
Name
DateLines
2478.1Re: Help building kernel objectsAOSG::FILTERAutomatic Posting Software - mail to flume::puckThu Aug 08 1996 14:0885
Date Of Receipt: 	 8-AUG-1996 12:31:01.90
From: 	FLUME::"[email protected]" "08-Aug-1996 1230"
To: 	[email protected]
CC: 	[email protected]
Subj: 	Re: Help building kernel objects

You need to have your sandbox backed by a fully populated tree like 
v32fsupportos.nightly. The submit tree has no exports or built objects.

In your workon, do "resb v32fsupportos.nightly" (After you ensure that the 
nightly tree is mounted).

If you are trying to build a 3.2 pool on a 4.0 system, you may also have a 
problem building mkdata as the build uses the system libs and compiler for 
this piece and they are not compatible.

| 
| Hello, 
| 
| I am new to the ode system and I need to build some kernal objects for
| version 3.2F of Digital UNIX. I have got some help from John Dustin who has
| directed me to this list.
| 
| Following John's instructions I took the following step's in my home 
| directory (I am using Fred Templin's account until I can get my own
| account organised)
| 
| csh> mksb -back v32fsupportos v32supportos
| csh> workon -sb v32fsupportos
| % mklinks -dironly .
| % setenv DO_MODULES AUTO
| % cd kernel
| % build setup
| 
| At this stage build goes off and does lots of work, and then breaks. It seems
| that the c compiler breaks in the include file /usr/include/string.h while
| trying to compile the file mkdata.c. The first few messages reported are:
| 
| env - COMP_HOST_ROOT=/ COMP_TARGET_ROOT=/ /usr/bin/cc   -EL -c  -DBSD44 -DMSG
  -D__WCHAR_T_LEN=4
| -Wf,-wchar32  -DMACH -DCMU -DOSF  -Dalpha -D__alpha__ -D__alpha  -Dunix -D__u
nix__      -O2 -Olimit 5000
|  -DCMU -D_NO_PROTO -Dconst=      `genpath -I.` `genpath  -I../../include -I/u
sr/include ` -I/usr/include
| /usr/sde/osf1/build/v32fsupportos/src/kernel/src/mkdata/mkdata.c
| cc: Error: /usr/include/string.h, line 164: In the declaration of "__R", a fu
nction may not return a
| function type.
| extern char    * __R(basename) __((char  *));
| -----------------^
| cc: Warning: /usr/include/string.h, line 164: In the declaration of "__R", a 
function declarator has an
| identifier list but is not part of a function definition.  Extraneous paramet
er names are ignored.
| extern char    * __R(basename) __((char  *));
| -----------------^
| cc: Error: /usr/include/string.h, line 165: In the declaration of "__R", a fu
nction may not return a
| function type.
| extern char    * __R(dirname) __((char  *));
| -----------------^
| 
| Some of the environment variables that are set in my 'workon' shell that may 
be
| relevent are:
| 
| C_COMPILER=cc
| INCDIRS=-I/home/templin/sb/v32fsupportos/export/alpha/usr/include -I/usr/sde/
osf1/build/v32fsupportos/export/alpha/usr/include
| ULT_INCDIRS=-I/usr/include
| 
| 
| I guess that my build environment is not setup correctly, can anyone tell me
| what I'm doing wrong or what steps I am missing. If you need any furtyher
| information please let me know.
| 
| Thanks and regards,
| Ollie

-- 

				-Grant