From rpeng at jhsph.edu  Tue Mar 22 22:11:52 2005
From: rpeng at jhsph.edu (Roger D. Peng)
Date: Tue Mar 22 22:12:00 2005
Subject: [Rd] make install fails with makeinfo < 4.7
In-Reply-To: <Pine.LNX.4.61.0503221852150.31029@gannet.stats>
References: <424065F4.3040809@jhsph.edu>
	<Pine.LNX.4.61.0503221852150.31029@gannet.stats>
Message-ID: <42408A18.90800@jhsph.edu>

Okay, a slight revision.  'make install' works fine when I build from 
the alpha tarballs (at least today's tarball works).  The error only 
occurs when I build from SVN sources, both when builddir == srcdir and 
when the build dir is a separate directory.

-roger

Prof Brian Ripley wrote:
> On Tue, 22 Mar 2005, Roger D. Peng wrote:
> 
>> When I build R-devel (or the alpha snapshots) on a system without 
>> makeinfo >= 4.7, I get a warning about not being able to build 
>> HTML/Info help pages after running 'configure' (but 'make' runs 
>> smoothly and there are no errors). However, when I run 'make install' 
>> I get an error, something like
>>
>> make[2]: Entering directory `/home/rpeng/R-local/src/R-devel/doc/html'
>> make[3]: Entering directory `/home/rpeng/R-local/src/R-devel/doc/manual'
>> creating doc/html/resources.html
>> make[3]: *** [../html/resources.html] Error 1
>> make[3]: Leaving directory `/home/rpeng/R-local/src/R-devel/doc/manual'
>> installing doc/html ...
>> make[3]: Entering directory 
>> `/home/rpeng/R-local/src/R-devel/doc/html/search'
>> installing doc/html/search ...
>> make[3]: Leaving directory 
>> `/home/rpeng/R-local/src/R-devel/doc/html/search'
>> /usr/bin/install: cannot stat `resources.html': No such file or directory
>> make[2]: *** [install] Error 1
>> [... more errors ...]
>>
>> Am I correct in assuming that I get this because I don't have the 
>> correct makeinfo version?
> 
> 
> No.  The intention is that file should be in the tarball.  It seems to be.
> Are you using builddir == srcdir or not?  Both seem to work for me.
> 
> The line
> 
>> creating doc/html/resources.html
> 
> 
> should not occur when building from a tarball, as it comes from
> 
>     @if test ! -f "$(srcdir)/resources.html" || test -f non-tarball ; 
> then \
>       (cd ../manual && $(MAKE) html-non-svn) ; \
>       touch non-tarball ; \
> 
> Have you perchance previously built from an SVN checkout in the same dir?
> 
>> If so, is this the intended behavior of 'make install'?  I figured I 
>> should be able to install R even if I couldn't build the HTML/Info 
>> help pages, but....
> 
> 
> If building from a tarball, yes.  The requirements for building from an 
> SVN checkout are more stringent.
> 

-- 
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng/


[Rd] make install fails with makeinfo < 4.7
Roger D. Peng