[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

2704.0. "Re: mksb(1) ODE errors" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Tue Dec 03 1996 10:39

Date Of Receipt: 	 2-DEC-1996 14:31:07.73
From: 	HUNCH::jmw "Jonathan Wistar MSSG  02-Dec-1996 1427"
To: 	odehelp@DEC:.zko.hunch
CC: 	[email protected]
Subj: 	Re: mksb(1) ODE errors

Greetings Again,

   I forward my original e-mail to you, which I haven't (yet) heard
back from you about.

   ...but I think I'm onto the nature of the problem, although I do
not know what the solution is (I'm hoping you have one).

   The problem seems to be related to symbolic links.  When the backing
tree has symbolic links to a directory and one is invoking mksb(1) with
the "copy" option (e.g. "-src c ..." or "-obj c ...", etc.), then
somewhere deep down the links are getting mangled.

    % ls -ld /usr/sde/alpha/kernel/tcr3os.bl1/obj/alpha/kernel/include/machine

    lrwxrwxrwx   1 devbld   staff         10 Nov  8 16:37 machine -> arch/alpha

compared with:

    % ls -ld ${SANDBOX}/obj/alpha/kernel/include/machine

    -rw-rw-r--   1 jmw      system         0 Dec  2 12:04 machine

I think this is the nature of the errors seen in the forwarded message below.
So, I think there's a problem in ODE when it copies symbolic links.
What do you think ?  (And is there a solution ?)

-- Jonathan Wistar ([email protected])

------- Forwarded Message

Return-Path: jmw 
Delivery-Date: Wed, 27 Nov 96 14:27:34 -0500
Return-Path: jmw
Received: from joisey.zk3.dec.com by hunch.zk3.dec.com; (5.65v3.2/1.1.8.2/11Mar96-0342PM)
	id AA23079; Wed, 27 Nov 1996 14:27:33 -0500
Received: from localhost by joisey.zk3.dec.com (5.65v3.2/1.1.10.5/31May96-0558PM)
	id AA13107; Wed, 27 Nov 1996 14:27:43 -0500
Message-Id: <[email protected]>
To: odehelp
Cc: [email protected]
Subject: mksb(1) ODE errors
Date: Wed, 27 Nov 96 14:27:41 -0500
From: jmw
X-Mts: smtp

Greetings,

I'm trying to create an ODE sandbox:

    % setenv PRINCIPAL Jonathan_Wistar
    % mksb -back tcr3os.bl1 -dir /usr/i18n/sb -def -src c /kernel \
          -obj c /alpha -set sb1 sb1

and I see:

    Copying directory subtree:
      From: /usr/i18n/sb/sb1/link/obj//alpha
      To:   /usr/i18n/sb/sb1/obj//alpha

but then I get:

    >> FATAL ERROR in mklinks:
    >> filecopy from /usr/i18n/sb/sb1/link/obj//alpha/kernel/include/mach/machine to /usr/i18n/sb/sb1/obj//alpha/kernel/include/mach/machine: Is a directory
    >> FATAL ERROR in mklinks:
    >> filecopy from /usr/i18n/sb/sb1/link/obj//alpha/kernel/include/machine to /usr/i18n/sb/sb1/obj//alpha/kernel/include/machine: Is a directory
    >> FATAL ERROR in mklinks:
    >> filecopy from /usr/i18n/sb/sb1/link/obj//alpha/kernel/include/hal to /usr/i18n/sb/sb1/obj//alpha/kernel/include/hal: Is a directory


Is this my error, or is there some kind of problem ?  (And, if it's me,
what am I doing wrong ?)

- -- Jonathan Wistar

------- End of Forwarded Message


T.RTitleUserPersonal
Name
DateLines
2704.1Re: mksb(1) ODE errorsAOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Dec 03 1996 10:42117
Date Of Receipt: 	 2-DEC-1996 15:43:22.00
From: 	FLUME::"[email protected]" "02-Dec-1996 1539"
To: 	[email protected]
CC: 	[email protected], [email protected]
Subj: 	Re: mksb(1) ODE errors

Generally people don't use the options you specified. They simply make the 
sandbox and then run mklinks in just the areas they need to work. Not only 
does it take some tile to make all the links, but each one sucks up inodes so 
if you're not going to work in every directory in the tree, why populate it.

You can build everything with a completely unpopulated tree and you can look 
at files with the bsh command "bsh more file.c".  If you want to speed your 
build by populating obj, you'd do better with mklinks -copy or simply tarring 
in the files from the backing tree (if you have space) pulling a .o file 
through a link across a router, not only is slow, it generates lots of network 
traffic.

You only need to pull in the files you actually need to use.

According to the man page the command you used should have worked, but as you 
discovered, when the backingtree has twisty links, it can fail as you 
described.

		-Grant

| Greetings Again,
| 
|    I forward my original e-mail to you, which I haven't (yet) heard
| back from you about.
| 
|    ...but I think I'm onto the nature of the problem, although I do
| not know what the solution is (I'm hoping you have one).
| 
|    The problem seems to be related to symbolic links.  When the backing
| tree has symbolic links to a directory and one is invoking mksb(1) with
| the "copy" option (e.g. "-src c ..." or "-obj c ...", etc.), then
| somewhere deep down the links are getting mangled.
| 
|     % ls -ld /usr/sde/alpha/kernel/tcr3os.bl1/obj/alpha/kernel/include/machin
e
| 
|     lrwxrwxrwx   1 devbld   staff         10 Nov  8 16:37 machine -> arch/alp
ha
| 
| compared with:
| 
|     % ls -ld ${SANDBOX}/obj/alpha/kernel/include/machine
| 
|     -rw-rw-r--   1 jmw      system         0 Dec  2 12:04 machine
| 
| I think this is the nature of the errors seen in the forwarded message below.
| So, I think there's a problem in ODE when it copies symbolic links.
| What do you think ?  (And is there a solution ?)
| 
| -- Jonathan Wistar ([email protected])
| 
| ------- Forwarded Message
| 
| Return-Path: jmw 
| Delivery-Date: Wed, 27 Nov 96 14:27:34 -0500
| Return-Path: jmw
| Received: from joisey.zk3.dec.com by hunch.zk3.dec.com; (5.65v3.2/1.1.8.2/11M
ar96-0342PM)
| 	id AA23079; Wed, 27 Nov 1996 14:27:33 -0500
| Received: from localhost by joisey.zk3.dec.com (5.65v3.2/1.1.10.5/31May96-055
8PM)
| 	id AA13107; Wed, 27 Nov 1996 14:27:43 -0500
| Message-Id: <[email protected]>
| To: odehelp
| Cc: [email protected]
| Subject: mksb(1) ODE errors
| Date: Wed, 27 Nov 96 14:27:41 -0500
| From: jmw
| X-Mts: smtp
| 
| Greetings,
| 
| I'm trying to create an ODE sandbox:
| 
|     % setenv PRINCIPAL Jonathan_Wistar
|     % mksb -back tcr3os.bl1 -dir /usr/i18n/sb -def -src c /kernel \
|           -obj c /alpha -set sb1 sb1
| 
| and I see:
| 
|     Copying directory subtree:
|       From: /usr/i18n/sb/sb1/link/obj//alpha
|       To:   /usr/i18n/sb/sb1/obj//alpha
| 
| but then I get:
| 
|     >> FATAL ERROR in mklinks:
|     >> filecopy from /usr/i18n/sb/sb1/link/obj//alpha/kernel/include/mach/mac
hine to /usr/i18n/sb/sb1/obj//alpha/kernel/include/mach/machine: Is a directory
|     >> FATAL ERROR in mklinks:
|     >> filecopy from /usr/i18n/sb/sb1/link/obj//alpha/kernel/include/machine 
to /usr/i18n/sb/sb1/obj//alpha/kernel/include/machine: Is a directory
|     >> FATAL ERROR in mklinks:
|     >> filecopy from /usr/i18n/sb/sb1/link/obj//alpha/kernel/include/hal to /
usr/i18n/sb/sb1/obj//alpha/kernel/include/hal: Is a directory
| 
| 
| Is this my error, or is there some kind of problem ?  (And, if it's me,
| what am I doing wrong ?)
| 
| - -- Jonathan Wistar
| 
| ------- End of Forwarded Message
| 

-- 

				-Grant