JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARDEV Archives


STARDEV Archives

STARDEV Archives


STARDEV@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARDEV Home

STARDEV Home

STARDEV  March 2004

STARDEV March 2004

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: CVS build

From:

Norman Gray <[log in to unmask]>

Reply-To:

Starlink development <[log in to unmask]>

Date:

Wed, 10 Mar 2004 15:19:31 +0000

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (298 lines)

A compendium reply to Tim's messages.

I'm glad it worked in the end, but, yerssss..., you did have more trouble
than you ought to have had.

>   1. 'make' in the top level directory no longer seems to do anything for
> me after I do a global bootstrap. Last time I tried it went and built
> everything, including sst.

That seems odd.  Did it just do nothing at all and claim everything
was up-to-date?  The `timestamps' it uses are the manifest files in
$STARCONF_DEFAULT_PREFIX/manifests, so if they're up-to-date, nothing
happens.

>   2. If I go into the libraries directory and do bootstrap, configure,
> make, make install-manifest everything seems to work except that I get
> this error at the end of the install:
>
> mkdir -p -- . /home/timj/data/tmp/star/cvsbuild/docs
>  /usr/bin/install -c -m 644 sun67.tex
> /home/timj/data/tmp/star/cvsbuild/docs/sun67.tex
>  /usr/bin/install -c -m 644 sun67.ps
> /home/timj/data/tmp/star/cvsbuild/docs/sun67.ps
>  /usr/bin/install -c -m 644 sun67.htx_tar
> /home/timj/data/tmp/star/cvsbuild/docs/sun67.htx_tar
> make[3]: Leaving directory `/export/data/timj/tmp/star/cvs/libraries/sla'
> make[2]: Leaving directory `/export/data/timj/tmp/star/cvs/libraries/sla'
> make[2]: Entering directory `/export/data/timj/tmp/star/cvs/libraries'
> make[3]: Entering directory `/export/data/timj/tmp/star/cvs/libraries'
> make[3]: Nothing to be done for `install-exec-am'.
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/export/data/timj/tmp/star/cvs/libraries'
> make[2]: Leaving directory `/export/data/timj/tmp/star/cvs/libraries'
> make[1]: Leaving directory `/export/data/timj/tmp/star/cvs/libraries'
> echo "</files>"
> >>install-manifest.xml
> echo "</manifest>"
> >>install-manifest.xml
> mkdir -p -- .
> /usr/bin/install -c -m 644 install-manifest.xml \
>         /star-libraries
> /usr/bin/install: cannot create regular file `/star-libraries': Permission
> denied
> make: *** [install-manifest] Error 1
>
> Is there some file that he need to remove before doing the initial
> bootstrap? I assume there is meant to be some prefix there?

This is a bit odd -- I'm not sure what I've stuffed up here.

The configure.ac in libraries/ doesn't use any Starlink features,
and it's there only to express the set of subdirectories which the
./configure should recurse into.  There's actually nothing _to_ install
in this directory, and the package-name and version number in the
AC_INIT are meaningless, and there only because they're syntactically
required.  Perhaps I should make the package-name something like
`dummy-libraries'.

I'm actually slightly surprised that the make worked and that it and
the install successfully recursed.  I'm surprised only because I
didn't expect folk to do that, though on a brief second thought,
automake and autoconf are designed to cooperate in precisely this
fashion when AC_CONFIG_SUBDIRS is present in configure.ac, and
SUBDIRS=... is present in Makefile.am.  So this much is all part of
the magic of automake.  Well done automake.

Ahhhhh.....

That you were able to do `make install-manifest' was a bug.  I rather
thought that I had made automake suppress generating that target when the
configure.ac file didn't have the STAR_DEFAULTS macro in it, precisely so
that in `non-Starlink' configure.ac files like the one here, attempting
`make install-manifest' would produce an obvious error, but I'd got
that wrong.

I've now fixed this, so that if STAR_DEFAULTS isn't present, then the
install-manifest target isn't generated.  If SUBDIRS is present, however
(as it is in this Makefile.am), then a trivial install-manifest target
is generated which recurses, just like the install target.  This seems
the most sensible behaviour.

And I've modified SSN/78 accordingly.

>   3. Can I assume that astrom is not using the new configure system
> despite the fact it has a configure file? [it has a few OS-specific files
> in there] ie I can't treat it as another example application.

That's correct.  I added astrom and autoastrom to cvs.starlink some
while ago, but they haven't yet been added to the new system.  The way
of telling this is to note that neither is listed in
AC_CONFIG_SUBDIRS in applications/configure.ac.

>   4. Shouldn't sst be doing an fio_link_adam rather than an fio_link
> [since it is an adam task]

Very probably.  Change away.

>   5. If we end up picking a library for install to CVS "at random" are we
> supposed to simply be committing the stardev sources? I assume not but
> this would rely on someone saying which libraries have other versions
> around that should be used? Also, with messgen files, should we simply
> cremsg all the _err files or are the original .msg files available
> somewhere?

As soon as I finish this message I'm going to put on the wiki the list of
libraries that ccdpack needs directly or indirectly (apologies to the
non-wiki-fans, but this seems more reliable than simply adding CVS
directories).

For most of the core libraries, I did indeed just add the
/stardev/sources sources, minus mk and makefile, because these did
seem to be up-to-date.  Both AST and CCDPACK are intricate enough that
the `real' sources are significantly different from the export_source
sources.  So: it depends.  I'll put a notes about this in the wiki
page.

For the core libraries, it seems there were very few .msg files
available this side of a VMS backup archive, so most of the .msg files
there were reconstructed from the _err files.  There's some chat about
this, between Alan and me, in the stardev archives for January, I'd
think.

Later:

> Just did a 'make install' in libraries/ and that worked (install-manifest
> clearly doesn't work) but it only worked in the sense that files were
> installed into $STARLINK/lib. Nothing went into bin/ so no _link scripts
> or alink.

That's definitely rather odd.  The install target is unconditional --
it should always do the same thing.

Later:

> Fresh checkout, bootstrap and configure from the root directory:
>
> % make
> if test -n "/usr/local/java/jdk/bin/java"; then \
>     (cd buildsupport/starconf/java \
>         && make GenerateDependencies.class) \
>     && /usr/local/java/jdk/bin/java -classpath buildsupport/starconf/java
> \
>         GenerateDependencies componentset.xml >Makefile.dependencies \
> else :; fi
> make[1]: Entering directory
> `/export/data/timj/tmp/star/cvs/buildsupport/starconf/java'
> make[1]: `GenerateDependencies.class' is up to date.
> make[1]: Leaving directory
> `/export/data/timj/tmp/star/cvs/buildsupport/starconf/java'
> Too few arguments
> make: *** [Makefile.dependencies] Error 1
>
> If I try that again I get:
>
> % make
> make: Nothing to be done for `all'.
>
> which is all a bit odd.
>
> Removing all the installed buildsupport directories I then get:
>
> % make
> make: *** No rule to make target
> `/home/timj/data/tmp/star/cvsbuild//manifests/adam', needed by `all'.
> Stop.
>
>
> So clearly those manifest files are extremely important. [and I get the
> feeling I've missed something vital here]

Ah, yes.  They are the stamps that the top-level makefile uses.  This is
mentioned in passing at the end of section 3.1 in SSN/78 -- do you think
it should be more prominent?

> A make clean; bootstrap then gives me:
>
> % ./bootstrap
> Bootstrapping with
>     STARCONF_DEFAULT_STARLINK  = /home/timj/data/tmp/star/cvsbuild/
>     STARCONF_DEFAULT_PREFIX    = /home/timj/data/tmp/star/cvsbuild/
>     BUILDSUPPORT_PREFIX        =
> /home/timj/data/tmp/star/cvsbuild//buildsupport
>     Do we need to build GNU m4?  false
> mkdir -p /home/timj/data/tmp/star/cvsbuild//bin
> Bootstrapping buildsupport:
>     make -f Makefile.tmp \
>         prefix=/home/timj/data/tmp/star/cvsbuild//buildsupport \
>         MANIFEST=/home/timj/data/tmp/star/cvsbuild//manifests \
>         buildsupport
> make: Nothing to be done for `buildsupport'.
> Can't locate object method "path" via package "Autom4te::Request" at
> /usr/bin/autom4te line 81.
> autoreconf --install --symlink
> Can't locate object method "path" via package "Autom4te::Request" at
> /usr/bin/autom4te line 81.
> Can't locate object method "path" via package "Autom4te::Request" at
> /usr/bin/autom4te line 81.
> autoreconf: /usr/bin/autoconf failed with exit status: 1
>
> So which files do I remove to recover from that problem (which is
> presumably because I am no longer using the starlink special autoconf
> tools).

That's correct -- it looks like you've removed the buildsupport tools,
but not the corresponding stamps in the manifests directory, so make
thinks there's nothing to do, so can't find the autotools in
buildsupport, uses the system ones instead, with the results you see.

> cd thirdparty/fsf/automake \
>         && ./configure --prefix=${BUILDSUPPORT_PREFIX=/star/buildsupport}
> >configure-output.log \
>         && make>make.log && make install-manifest>>make.log
> WARNING: `autoconf' is missing on your system.  You should only need it if
>          you modified `configure.ac'.  You might want to install the
>          `Autoconf' and `GNU m4' packages.  Grab them from any GNU
>          archive site.
> cd buildsupport/starconf \
>         && ./configure --prefix=${BUILDSUPPORT_PREFIX=/star/buildsupport}
> >configure-output.log \
>         && make>make.log && make install-manifest>>make.log
> STARCONF_DEFAULT_STARLINK=/home/timj/data/tmp/star/cvsbuild/ has trailing
> slash
> make: *** [/home/timj/data/tmp/star/cvsbuild//manifests/starconf] Error 1
> Failed to make buildsupport
>
>
> I'm getting very frustrated at this point! I'm clearly doing something
> wrong but it's not obvious to me. I fail to see why the presence of a
> trailing slash should be treated as fatal but it clearly is. Removing the
> trailing slash seems to solve things!

There's a bit of magic at the end of the starconf install, which makes
a link from $STARLINK/bin/starconf to
$STARLINK/buildsupport/bin/starconf.  I was doing that in a rather
simpleminded way, which I knew would be messed up if that variable had
a trailing slash, so I checked for it.  That's now more robust, so the
restriction is removed.

Hmm.  I cannot now recall why making that link was such a terrifically
good idea.

> How do I do the equivalent of 'make distclean' that will clean out all
> cached versions and give me a clean CVS

I haven't paid a huge amount of attention to making sure that the clean
targets work, but they _should_ work, modulo one or two accidental
omissions which I'd like to hear about.  The hierarchy of clean targets,
from the automake manual, is:

    * If make built it, and it is commonly something that one would
    want to rebuild (for instance, a .o file), then mostlyclean should
    delete it.

    * Otherwise, if make built it, then clean should delete it.

    * If configure built it, then distclean should delete it.

    * If the maintainer built it (for instance, a .info file), then
    maintainer-clean should delete it. However maintainer-clean should
    not delete anything that needs to exist in order to run ./configure
    && make.

So make maintainer-clean should return you to an almost pristine
checkout directory.  Note however that this doesn't do anything to the
manifest files that the top-level make uses as its stamps, and I think
it shouldn't, since removing those is on a par with removing part of
the installation.

Thus the difference is that `make install-manifest', like `make install',
is independent of any existing installation -- whether or not there's
an installation present, these targets will just install over the top
of them.  The top-level makefile, however, will not rebuild, and hence
reinstall, $STARLINK/manifest/X if it thinks it doesn't have to.

> (without having to do a whole new
> checkout - the test files in autoastrom are ridiculously large - 33 MB is
> a bit of over kill - can they be compressed please?)

Yerssss.  That's an NDF which autoastrom uses in one of its regression
tests, to make sure that it's calling Extractor in the correct way (it
got it wrong once before, in a way which didn't show up in a smaller
file, if I remember correctly).  I havered about checking it in, but
thought `don't be old-fashioned; disk space is cheap' and bunged it in.
However bandwidth to Hawaii isn't so cheap, and I can see it's a hassle
(it's also rather tedious just to here).  When I revisit autoastrom,
to bring it within the folk, I'll see if I can get rid of this, or at
least find a way of having a sensible test with a much smaller file.

Much ta for this stress-testing.

Norman


--
---------------------------------------------------------------------------
Norman Gray                        http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK     [log in to unmask]

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
January 2023
December 2022
July 2022
June 2022
April 2022
March 2022
December 2021
October 2021
July 2021
April 2021
January 2021
October 2020
September 2020
August 2020
May 2020
November 2019
October 2019
July 2019
June 2019
February 2019
January 2019
December 2018
November 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
December 2017
October 2017
August 2017
July 2017
May 2017
April 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
October 2015
September 2015
August 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
2004
April 2003
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager