On Tue, 29 Aug 2006, Brad Cavanagh wrote:
> checkout of the GAIA tree, in the 'make' phase I eventually get:
>
> make[3]: Entering directory
> `/export/scratch/starlink-cvs/applications/gaia/skycat/tclutil/util'
> for i in src include test man; do (cd $i; echo "$i:"; make all) || exit 1;
> done
> src:
> make[4]: Entering directory
> `/export/scratch/starlink-cvs/applications/gaia/skycat/tclutil/util/src'
> test -d ../lib || mkdir ../lib
> CC /opt/SUNWspro/WS6/include/CC/Cstd/./ios.cc -o
> /opt/SUNWspro/WS6/include/CC/Cstd/./ios
> ld: fatal: file /opt/SUNWspro/WS6/include/CC/Cstd/./ios: open failed:
> Permission denied
> Two questions:
>
> 1) Why is it trying to build in a system directory?
Hi Brad,
hmm, this is bringing back some nightmares from around 2000. Just been
looking through my mail from back then and I think this message to Martin
Bly is probably related:
> > Martin,
> >
> > just completed a GAIA build at Durham and it seems that there's
> > another feature to work around. The problem is that make decides that
> > the file:
> >
> > /opt/SUNWspro/SC5.0/include/CC/rw/ctype
> >
> > needs to be created from:
> >
> > /opt/SUNWspro/SC5.0/include/CC/rw/ctype.cc
> >
> > Which naturally fails (the .cc file is also an include file, so will
> > not compile and I couldn't modify either of these files anyway!). Alan
> > couldn't find any reference to this problem in the compiler patch
> > sets, so we fixed it by touching the ctype include file so that make
> > gave up trying to build it.
> 2) How can I stop it from doing so?
The previous analysis would suggest:
% touch /opt/SUNWspro/WS6/include/CC/Cstd/ios
but thinking a bit more I wonder if the simpler solution (hack alert) is
to stop the "makedepend" phase from working, as these dependencies on
include files are added by that (that shouldn't be true as system include
files should be excluded, another bug it seems). With that solution in
mind I've modified the following files, on keoe, so that they do not
output any dependencies (that should be OK when not actually developing):
skycat/astrotcl/depend.mk
skycat/cat/depend.mk
skycat/rtd/depend.mk
skycat/skycat/depend.mk
skycat/tclutil/depend.mk
So, you knew it, try building GAIA again.
I guess you must be very attached to this broken compiler to take this
much pain, but if this all fails is there any reason why the Solaris build
needs to be done at JAC?
Cheers,
Peter.
|