Discussion:
Building aldor-combinat documentation
Mike Hansen
2008-06-12 07:57:21 UTC
Permalink
Hello,

I'm trying to build the aldor-combinat documentation and am running
into some problems. I run "notangle -t8 Makefile.nw > Makefile" and
it completes with no problems. When I run "make dvi", I get the
following error:

make[2]: Entering directory `/home/mike/src/combinat/trunk/combinat'
make LATEX texfiles undocumented
make[3]: Entering directory `/home/mike/src/combinat/trunk/combinat'
echo LATEX combinat.tex;\
if ! latex --interaction nonstopmode combinat.tex \
combinat.trace; then \
echo ============================================;\
echo LATEX did not succeed.;\
echo A trace was written to combinat.trace.;\
echo Consult also combinat.log.;\
exit 1;\
fi
LATEX combinat.tex
============================================
LATEX did not succeed.
A trace was written to combinat.trace.
Consult also combinat.log.
make[3]: *** [LATEX] Error 1
make[3]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make[2]: *** [combinat.lsf] Error 2
make[2]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make[1]: *** [latex.all] Error 2
make[1]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make: *** [dvi] Error 2

Looking at combinat.log, I see:

! Undefined control sequence.
<argument> \projectname
.tex.nw
l.12 \input{\projectname.tex.nw}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


! LaTeX Error: File `.tex.nw' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex.nw)

Enter file name:
! Emergency stop.
<read *>

l.12 \input{\projectname.tex.nw}
^^M
*** (cannot \read from terminal in nonstop modes)

Any ideas why it isn't recognizing \projectname ?

--Mike

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Ralf Hemmecke
2008-06-12 08:24:40 UTC
Permalink
Mike,

I suppose you have the latest combinat -r206 , right?
I've just checked out a fresh copy and it compiles fine on my machine.

Could you send me (maybe privately) the files combinat.log and
combinat.trace after 'make distclean dvi'.

It seems that something went wrong before latex was called.

What are your machine specifics?

\projectname is defined in project.def.tex. This file is generated via
Makefile(.nw). So I guess something else went wrong.

Also, could you say whether you have srcltx.sty in your TEXINPUTS path
and which version it is.

Ralf
Post by Mike Hansen
Hello,
I'm trying to build the aldor-combinat documentation and am running
into some problems. I run "notangle -t8 Makefile.nw > Makefile" and
it completes with no problems. When I run "make dvi", I get the
make[2]: Entering directory `/home/mike/src/combinat/trunk/combinat'
make LATEX texfiles undocumented
make[3]: Entering directory `/home/mike/src/combinat/trunk/combinat'
echo LATEX combinat.tex;\
if ! latex --interaction nonstopmode combinat.tex \
combinat.trace; then \
echo ============================================;\
echo LATEX did not succeed.;\
echo A trace was written to combinat.trace.;\
echo Consult also combinat.log.;\
exit 1;\
fi
LATEX combinat.tex
============================================
LATEX did not succeed.
A trace was written to combinat.trace.
Consult also combinat.log.
make[3]: *** [LATEX] Error 1
make[3]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make[2]: *** [combinat.lsf] Error 2
make[2]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make[1]: *** [latex.all] Error 2
make[1]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make: *** [dvi] Error 2
! Undefined control sequence.
<argument> \projectname
.tex.nw
l.12 \input{\projectname.tex.nw}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: File `.tex.nw' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex.nw)
! Emergency stop.
<read *>
l.12 \input{\projectname.tex.nw}
^^M
*** (cannot \read from terminal in nonstop modes)
Any ideas why it isn't recognizing \projectname ?
--Mike
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Ralf Hemmecke
2008-06-12 11:05:57 UTC
Permalink
Just for the record.

Mike is running x86_64 Ubuntu 8.04 . And the problem seems to be with
the shell. Adding

SHELL=/bin/bash

to into the first

<<*>>=
...
@

chunk solved the problem.

To me it would be very strange that

project.def.tex: Makefile.def.nw Makefile.nw code ChangeLog
@echo "% project.def.tex generated by Makefile.nw" >$@
@echo "\\def\\xProject{\\csname x$(PROJECTNAME)\\endcsname}">>$@
@echo "\\def\\libraryname{$(LIBRARYNAME)}" >>$@
@echo "\\def\\PROJECTNAME{$(PROJECTNAME)}" >>$@
@echo "\\def\\projectname{$(projectname)}" >>$@
@echo "\\def\\SOURCEROOT{$(PROJECTROOT)}" >>$@
@echo "" >>$@
@echo "\\def\\versionname{$(LIBPREFIX)$(LIBRARYNAME)version}">>$@
@echo "\\def\\LIBRARYVERSION{$(LIBRARYVERSION)}" >>$@
@echo "\\def\\ALLPROSEVERSION{$(ALLPROSEVERSION)}" >>$@

is no longer correct with the shell that is started by the Makefile on
ubuntu.

Ralf
Post by Mike Hansen
Hello,
I'm trying to build the aldor-combinat documentation and am running
into some problems. I run "notangle -t8 Makefile.nw > Makefile" and
it completes with no problems. When I run "make dvi", I get the
make[2]: Entering directory `/home/mike/src/combinat/trunk/combinat'
make LATEX texfiles undocumented
make[3]: Entering directory `/home/mike/src/combinat/trunk/combinat'
echo LATEX combinat.tex;\
if ! latex --interaction nonstopmode combinat.tex \
combinat.trace; then \
echo ============================================;\
echo LATEX did not succeed.;\
echo A trace was written to combinat.trace.;\
echo Consult also combinat.log.;\
exit 1;\
fi
LATEX combinat.tex
============================================
LATEX did not succeed.
A trace was written to combinat.trace.
Consult also combinat.log.
make[3]: *** [LATEX] Error 1
make[3]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make[2]: *** [combinat.lsf] Error 2
make[2]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make[1]: *** [latex.all] Error 2
make[1]: Leaving directory `/home/mike/src/combinat/trunk/combinat'
make: *** [dvi] Error 2
! Undefined control sequence.
<argument> \projectname
.tex.nw
l.12 \input{\projectname.tex.nw}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: File `.tex.nw' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex.nw)
! Emergency stop.
<read *>
l.12 \input{\projectname.tex.nw}
^^M
*** (cannot \read from terminal in nonstop modes)
Any ideas why it isn't recognizing \projectname ?
--Mike
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

Loading...