bit rot in build instructions

Jonathan S. Shapiro
Mon Sep 26 13:37:00 GMT 2005

I was trying to rebuild the lib/libc doc dvi's, because the online
versions have bounding box bugs. I ran into two problems:

1. The quick configure instructions at
have rotted -- there is no "src" subdirectory

2. After unpacking the tarball to get ./newlib-1.13.0, I did

    mkdir build
    cd build

which gave "Nothing to be done for 'all"

same result with make all-target-newlib.

No change if I configure with an explicitly provided --target.

3. If I instead configure with


then I get a much longer configure process. After this, "make all" gets

4. However, the dvi-recursive target is broken in three ways:

  A. The TEXINPUTS variable wants a directory path, NOT a filename.
     This is an error in the makefile.

  B. The actual path to texinfo.tex is wrong (it's looking in
     newlib-1.13.0/newlib/texinfo rather than newlib-1.13.0/newlib

  C. Even after I fix these two issues by hand, I can't build the DVI
     file because of a bug in makeinfo (tail of output below).

Is this a known issue that is already fixed in the CVS tree?

The mention of environment "@lisp" is disheartening, since the input
file doesn't appear to mention an @lisp environment anywhere...

I also tried just running makeinfo by hand. No joy. Same problem.


cat ../../newlib-1.13.0/newlib/libc/sys.tex >>tmp.texi
/bin/sh ../../newlib-1.13.0/newlib/libc/../../move-if-change tmp.texi
touch stmp-targetdep
  MAKEINFO='makeinfo  -I ../../newlib-1.13.0/newlib/libc' `if test
-f ../../newlib-1.13.0/newlib/libc/../texinfo/util/texi2dvi; then
echo ../../newlib-1.13.0/newlib/libc/../texinfo/util/texi2dvi; else echo
texi2dvi; fi` ../../newlib-1.13.0/newlib/libc/libc.texinfo
/usr/bin/texi2dvi: line 457:
cd: ../../newlib-1.13.0/newlib/libc/../texinfo/texinfo.tex: Not a
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 file:line:error style messages enabled.
entering extended mode

.texinfo (/usr/share/texmf/tex/texinfo/texinfo.tex
Loading texinfo [version 2005-01-30.17]: Basics, pdf, fonts, page
tables, conditionals, indexing, sectioning, toc, environments, defuns,
cross references, insertions,
localization, and turning on texinfo input format.) [1] [2]
Chapter 1 [1] (./stdlib/_Exit.def
./stdlib/_Exit.def:9: This command can appear only in environment
@example, not
 in environment @lisp.
@badenverr ...temp , not @inenvironment @thisenv }

@checkenv ...@ifx @thisenv @temp @else @badenverr
@\end ...pandafter @checkenv @csname #1@endcsname
                                                  @csname E#1@endcsname
l.9 @end example


More information about the Newlib mailing list