[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

1126.0. "wrong cp operation in build export ?" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Tue Dec 13 1994 19:29

Date Of Receipt: 	29-NOV-1994 16:58:27.94
From: 	FLAMBE::"srb@unx.dec.com" "29-Nov-1994 1652"
To: 	buildhelp@zk3.dec.com
CC: 	srb@unx.dec.com, cooper@unx.dec.com, rll@unx.dec.com, aab@unx.dec.com
Subj: 	wrong "cp" operation in build export ?

Dear buildhelp,

why "build export_stropts.h" is invoking a wrong "cp" operation as seen below?

thanks,
Sunil.

=======================
::
::
cd ../../../obj/alpha/usr/include
rm -f /spec1170/sandbox/sb/export/alpha/usr/include//curses.h
makepath /spec1170/sandbox/sb/export/alpha/usr/include//curses.h
tar cf - curses.h  | (cd /spec1170/sandbox/sb/export/alpha/usr/include/; tar xf -)
relative path: ./usr/include.
cd ../../../obj/alpha/usr/include
rm -f stropts.h
cp  stropts.h                                           <---------------------this is what its doing
usage: cp [-fhip] [--] source_file destination_file
   or: cp [-fhip] [--] source_file ...  destination_directory
   or: cp [-fhip] [-R | -r] [--]
                  [source_file | source_directory] ... destination_directory
*** Exit 1
Stop.
relative path: ./kernel/include/sys.
cd ../../../../obj/alpha/kernel/include/sys
rm -f /spec1170/sandbox/sb/export/alpha/usr/sys/include/sys//ioctl.h
::
::
=======================


=====================build_export_sunil.sh script========

 1355 /spec1170/sandbox/sb>cat build_export_sunil.sh

#! /bin/ksh
# go different places where headers reside and
# build export_* them......Sunil   11/29/94.
# (Used on brandy.unx.dec.com, User-id- stdsbld)

cd /spec1170/sandbox/sb/src/usr/include
build export_time.h
build export_libgen.h
build export_poll.h
build export_curses.h
build export_stropts.h  <-------------------------------this is giving the cp problem

cd /spec1170/sandbox/sb/src/kernel/include/sys
build export_ioctl.h
build export_procset.h
build export_siginfo.h
build export_signal.h
build export_types.h

cd /spec1170/sandbox/sb/src/usr/include/alpha
build export_endian.h
build export_signal.h

cd /spec1170/sandbox/sb/src/usr/include/sys
build export_ucontext.h
====================================================


================my modified headers are indeed there, at their proper places, as seen below========

 1359 /spec1170/sandbox/sb/sunil>list_hdrs.sh

-rw-r--r--   1 stdsbld  system      6711 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/time.h
-rw-r--r--   1 stdsbld  system       827 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/libgen.h
-rw-r--r--   1 stdsbld  system      1636 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/poll.h
-rw-r--r--   1 stdsbld  system     31409 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/sys/ioctl.h
-rw-r--r--   1 stdsbld  system     11689 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/stropts.h
-rw-r--r--   1 stdsbld  system      3234 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/sys/procset.h
-rw-r--r--   1 stdsbld  system     34804 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/curses.h
-rw-r--r--   1 stdsbld  system      2518 Nov 28 18:00 /spec1170/sandbox/sb/src/kernel/arch/alpha/endian.h
-rw-r--r--   1 stdsbld  system     13945 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/sys/siginfo.h
-rw-r--r--   1 stdsbld  system      8477 Nov 28 18:00 /spec1170/sandbox/sb/src/kernel/arch/alpha/signal.h
-rw-r--r--   1 stdsbld  system     33166 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/sys/signal.h
-rw-r--r--   1 stdsbld  system     16607 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/sys/types.h
-rw-r--r--   1 stdsbld  system      3368 Nov 28 18:00 /spec1170/sandbox/sb/src/usr/include/sys/ucontext.h

======================================


==========================================================================
Sunil Bangad,  USG Standards                  srb@unx.dec.com
Digital Equipment Corporation                 sysv::srb, unxa::BANGAD
200 Route 9 North                             Tel: (908) 577-6019 dtn 462
Manalapan, NJ 07726-9455                      FAX: (908) 577-6003


T.RTitleUserPersonal
Name
DateLines
1126.1Re: wrong cp operation in build export ?AOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Dec 13 1994 19:3924
Date Of Receipt: 	29-NOV-1994 18:07:35.59
From: 	FLUME::jmcg "Jim McGinness"
To: 	srb@unx.dec.com
CC: 	buildhelp@DEC:.zko.flume
Subj: 	Re:  wrong "cp" operation in build export ?

I'm not quite sure why you're seeing the error you see.  There is a
dependency expressed for stropts.h in its STRFILES incarnation, dependent
on ${MAKETOP}/kernel/sys/stropts.h.  The command which is failing is
expecting $? to be expanded to match the dependency.  For some reason,
unknown to me, that expansion is not occurring, so you get the command
failure.

You can see the expansion occur properly in the nightly build logs, so I
can only guess that there's something peculiar about your sandbox/backing
tree setup that's causing the failure.  This may be a bug in the Makefile:
stropts.h occurs in DATAFILES twice, once in EXPFILES and once in STRFILES;
but it clearly doesn't hurt the nightly build.

Have you tried this in a clean sandbox?  Have you considered my
suggestion to just do "cd usr/include;build export_all"?

	-- jmcg

1126.2Re: wrong cp operation in build export ?AOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Dec 13 1994 19:4051
Date Of Receipt: 	29-NOV-1994 18:43:23.30
From: 	FLAMBE::"srb@unx.dec.com" "29-Nov-1994 1837"
To: 	Jim McGinness <jmcg@zk3.dec.com>
CC: 	srb@unx.dec.com, buildhelp@zk3.dec.com, cooper@unx.dec.com
Subj: 	Re: wrong "cp" operation in build export ?

 _.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._
|
> I'm not quite sure why you're seeing the error you see.  There is a
> dependency expressed for stropts.h in its STRFILES incarnation, dependent
> on ${MAKETOP}/kernel/sys/stropts.h.  The command which is failing is
> expecting $? to be expanded to match the dependency.  For some reason,
> unknown to me, that expansion is not occurring, so you get the command
> failure.
> 
> You can see the expansion occur properly in the nightly build logs, so I
> can only guess that there's something peculiar about your sandbox/backing
> tree setup that's causing the failure.  This may be a bug in the Makefile:
> stropts.h occurs in DATAFILES twice, once in EXPFILES and once in STRFILES;
> but it clearly doesn't hurt the nightly build.
> 
> Have you tried this in a clean sandbox?  Have you considered my
> suggestion to just do "cd usr/include;build export_all"?
> 
> 	-- jmcg
|
 -._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-


Hi Jim,

> Have you tried this in a clean sandbox?  Have you considered my
> suggestion to just do "cd usr/include;build export_all"?

This has been tried in the fresh, new sandbox.  As mentioned
in my last mail, I did do the build export_all and sent you the
mispelling error it was giving me.

This sandbox (on machine brandy.unx.dec.com, User-id: stdsbld ) I'm only 
using for build purposes (since my own workstation, unxsb.unx, does not
have enough space, so can't build in my own sandbox). Note that these modified
header files I'm ftp'ing to brandy.unx from some other machine and then trying 
to build there.  (for srequest, and bsubmit, I'll use bco/bci from my own
workstation sandbox later, if these build problems get resolved in the first place).



regards,
Sunil.


1126.3Re: wrong cp operation in build export ?AOSG::FILTERAutomatic Posting Software - mail to flume::puckTue Dec 13 1994 19:4560
Date Of Receipt: 	30-NOV-1994 14:23:14.68
From: 	ALPHA::"srb@unx.dec.com" "30-Nov-1994 1403"
To: 	Jim McGinness <jmcg@zk3.dec.com>
CC: 	srb@unx.dec.com, buildhelp@zk3.dec.com, cooper@unx.dec.com,
	aab@unx.dec.com
Subj: 	Re: wrong "cp" operation in build export ?

 _.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._
|
> I'm not quite sure why you're seeing the error you see.  There is a
> dependency expressed for stropts.h in its STRFILES incarnation, dependent
> on ${MAKETOP}/kernel/sys/stropts.h.  The command which is failing is
> expecting $? to be expanded to match the dependency.  For some reason,
> unknown to me, that expansion is not occurring, so you get the command
> failure.
> 


Dear Jim,

I just did another build, now a comprehensive one, from usr/include
for building all the header files.....it again aborted at stropts.h.
Did you happen to get some resolution on this issue from somewhere?  

Also, regarding the mis-spelling, pl. see below in the next reply paragraph.

> You can see the expansion occur properly in the nightly build logs, so I
> can only guess that there's something peculiar about your sandbox/backing
> tree setup that's causing the failure.  This may be a bug in the Makefile:
> stropts.h occurs in DATAFILES twice, once in EXPFILES and once in STRFILES;
> but it clearly doesn't hurt the nightly build.
> 
> Have you tried this in a clean sandbox?  Have you considered my
> suggestion to just do "cd usr/include;build export_all"?
> 
> 	-- jmcg
|
 -._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-

 _.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._
|
> is it possible you're having these problems because the backing tree
> you're backed by is being updated?  Or isn't fully populated?
> 
> How did lsm_version.h get to be misspelled lsm_vesrion.h?  Is this
> a paste from the file or did you transcribe it?

  Now, for that mis-spelling, I manually edited the Makefile, for this
  latest build now, so that at least it will continue after that step.
  Was the owner of lsm_version.h informed about his Makefile mis-spelling?
  Or how he would get informed about this?

thanks,
Sunil.

> 
> 	-- jmcg
|
 -._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-