Skip to contentSkip to conversation

perfbook build error

DISCUSSION Paul E. McKenney 2 participants 17 messages Dec 11, 2014 – Dec 12, 2014 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 33 lines · Borislav Petkov

Hey Paul,

building perfbook from today here fails with:

Underfull \hbox (badness 7576) in paragraph at lines 1234--1234 []\T1/ptm/b/n/14.4 Linux-Kernel Equiv-a-lents to
[]

! Missing { inserted.
<inserted text>

                {
l.1246                  &
            \co{struct task_struct} \\
? 
! Emergency stop.
<inserted text> 
                {
l.1246                  &
            \co{struct task_struct} \\

End of file on the terminal!

Here is how much of TeX's memory you used:
9728 strings out of 495020
150662 string characters out of 6181323
256123 words of memory out of 5000000
12316 multiletter control sequences out of 15000+600000
92251 words of font info for 258 fonts, out of 8000000 for 9000 14 hyphenation exceptions out of 8191
33i,15n,35p,324b,1121s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!
---

Quoted 4 lines

That's somewhere around that table in toolsoftrade/toolsoftrade.tex, lines 1240ff.

Maybe my latex setup is missing something...

Hmmm... Works for me. (Famous last words...)

I am at commit #763eb4b811f9 (Fix resizable-hash figures).

I also sometimes see odd errors like this due to an interrupted run that leaves bogus .aux files around. A "make clean" will clear this up.

I am also using an oldish version of latex. Let me see what happens with a more recent version... Well, on that system, it complains about pstricks.sty not being present. :-/

In the meantime, here is the version of latex I am using:

k$ latex --v
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.18.2

CCing the mailing list in case someone knows how to solve this one.

Thanx, Paul

#2 lore raw
Quoted 3 lines · Paul E. McKenney

Hmmm... Works for me. (Famous last words...)

I am at commit #763eb4b811f9 (Fix resizable-hash figures).

Ditto.

Quoted 2 lines

I also sometimes see odd errors like this due to an interrupted run that leaves bogus .aux files around. A "make clean" will clear this up.

Nope, that doesn't help.

Strangely, I'm getting a bunch of undefined references before it fails:

----- Fatal latex error, see perfbook.log for details. -----
LaTeX Warning: Reference chp:How To Use This Book' on page 1 undefined on inpu LaTeX Warning: Reference chp:Introduction' on page 1 undefined on input line 4 LaTeX Warning: Reference chp:Hardware and its Habits' on page 1 undefined on i LaTeX Warning: Reference chp:Tools of the Trade' on page 1 undefined on input LaTeX Warning: Reference chp:Counting' on page 1 undefined on input line 57. LaTeX Warning: Reference cha:Partitioning and Synchronization Design' on page
...

Quoted 6 lines

I am also using an oldish version of latex. Let me see what happens with a more recent version... Well, on that system, it complains about pstricks.sty not being present. :-/

In the meantime, here is the version of latex I am using:

Quoted 13 lines

k$ latex --v
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.18.2

$ latex --v
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian)
kpathsea version 6.2.1dev
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.13; using libpng 1.6.13
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.26.5

Btw, I commented out the table in toolsoftrade/toolsoftrade.tex and the conversion exploded on the next table in defer/rcufundamental.tex. So it must be have something to do with the tables...

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#3 lore raw

Great, this moves the error to the next line:

---

toolsoftrade/toolsoftrade.tex +2 -2
index c98f3a78652f..012f815fdd65 100644
@@ -1242,8 +1242,8 @@ but may be implemented straightforwardly as follows:
 	\hline
 	\hline
 	Thread Management
-		& \co{pthread_t}
-			& \co{struct task_struct} \\
+		& pthread\_t
+			& struct task\_struct \\
 	\cline{2-3}
 		& \co{pthread_create()}
 			& \co{kthread_create} \\

--

so it can't stand the {}'s and the _'s all of a sudden.

Or my table format definition is screwed or so after the last update...

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#4 lore raw
Quoted 20 lines · Borislav Petkov

Great, this moves the error to the next line:

---

toolsoftrade/toolsoftrade.tex +2 -3
index c98f3a78652f..012f815fdd65 100644
@@ -1242,8 +1242,8 @@ but may be implemented straightforwardly as follows:
 	\hline
 	\hline
 	Thread Management
-		& \co{pthread_t}
-			& \co{struct task_struct} \\
+		& pthread\_t
+			& struct task\_struct \\
 	\cline{2-3}
 		& \co{pthread_create()}
 			& \co{kthread_create} \\
--
Quoted 3 lines

so it can't stand the {}'s and the _'s all of a sudden.

Or my table format definition is screwed or so after the last update...

Or the newer version of latex doesn't like the \co{} macro definition.

One hack-around is to replace the definition on line 38 of perfbook.tex with something like this:

	\newcommand{\co}[1]{\url{#1}}

Does that help, modulo the resulting bogus links?

Thanx, Paul

#5 lore raw
Quoted 8 lines · Paul E. McKenney

Or the newer version of latex doesn't like the \co{} macro definition.

One hack-around is to replace the definition on line 38 of perfbook.tex with something like this:

	\newcommand{\co}[1]{\url{#1}}

Does that help, modulo the resulting bogus links?

Nah, this chokes on the '#' char:

! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
?
! Emergency stop.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
End of file on the terminal!
---

Btw, don't waste too much time with it before you can reproduce it yourself and can actually confirm it is a latex issue. I might be missing packages or so... although updating texlive-latex-* works out fine and pulls in whatever it needs.

Btw, it looks like it has trouble with this custom defined command. Built-in stuff works:

---

toolsoftrade/toolsoftrade.tex +1 -1
index c98f3a78652f..e227fe7363fb 100644
@@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
        \hline
        \hline
        Thread Management
-               & \co{pthread_t}
+               & \L test
                        & \co{struct task_struct} \\
        \cline{2-3}
                & \co{pthread_create()}

--

I need to investigate more.

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#6 lore raw
Quoted 12 lines · Borislav Petkov
Quoted 8 lines · Paul E. McKenney

Or the newer version of latex doesn't like the \co{} macro definition.

One hack-around is to replace the definition on line 38 of perfbook.tex with something like this:

	\newcommand{\co}[1]{\url{#1}}

Does that help, modulo the resulting bogus links?

Nah, this chokes on the '#' char:

Quoted 13 lines

! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
?
! Emergency stop.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
End of file on the terminal!
---

That is odd given that URLs really can contain "#"...

Quoted 14 lines

Btw, don't waste too much time with it before you can reproduce it yourself and can actually confirm it is a latex issue. I might be missing packages or so... although updating texlive-latex-* works out fine and pulls in whatever it needs.

Btw, it looks like it has trouble with this custom defined command. Built-in stuff works:

---

toolsoftrade/toolsoftrade.tex +0 -0
index c98f3a78652f..e227fe7363fb 100644

toolsoftrade/toolsoftrade.tex but may be implemented straightforwardly as follows: · line 1245

Quoted 5 lines
toolsoftrade/toolsoftrade.tex +1 -1
@@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
        \hline
        \hline
        Thread Management
-               & \co{pthread_t}
+               & \L test

I am guessing that \L chokes on underscores, otherwise, it would be an attractive alternative to \co{}. (It does choke on underscores in my old environment.)

Quoted 6 lines
toolsoftrade/toolsoftrade.tex +0 -1
                        & \co{struct task_struct} \\
        \cline{2-3}
                & \co{pthread_create()}
--

I need to investigate more.

Please let me know how it goes!

Thanx, Paul

#7 lore raw
Quoted 14 lines · Paul E. McKenney
Quoted 5 lines

! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create

Quoted 8 lines

?
! Emergency stop.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
End of file on the terminal!
---

Quoted 1 line

That is odd given that URLs really can contain "#"...

I'm reading the error message like it has a problem with the "#" in "#define" but I might be wrong.

Quoted 8 lines
Quoted 8 lines

Btw, don't waste too much time with it before you can reproduce it yourself and can actually confirm it is a latex issue. I might be missing packages or so... although updating texlive-latex-* works out fine and pulls in whatever it needs.

Btw, it looks like it has trouble with this custom defined command. Built-in stuff works:

Quoted 15 lines

toolsoftrade/toolsoftrade.tex but may be implemented straightforwardly as follows: · line 1245

Quoted 11 lines

---

toolsoftrade/toolsoftrade.tex +1 -1
index c98f3a78652f..e227fe7363fb 100644
@@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
        \hline
        \hline
        Thread Management
-               & \co{pthread_t}
+               & \L test

I am guessing that \L chokes on underscores, otherwise, it would be an attractive alternative to \co{}. (It does choke on underscores in my old environment.)

Yeah, I had to comment out the underscores earlier.

Quoted 8 lines
Quoted 6 lines
toolsoftrade/toolsoftrade.tex +0 -1
                        & \co{struct task_struct} \\
        \cline{2-3}
                & \co{pthread_create()}
--

I need to investigate more.

Please let me know how it goes!

Yap, sure.

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#8 lore raw
Quoted 15 lines · Borislav Petkov
Quoted 14 lines · Paul E. McKenney
Quoted 13 lines

! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
?
! Emergency stop.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
End of file on the terminal!
---

Quoted 4 lines
Quoted 1 line

That is odd given that URLs really can contain "#"...

I'm reading the error message like it has a problem with the "#" in "#define" but I might be wrong.

Yep, that is my feeling as well. And so \url{#define} would mean the name "define" in the current document. Which admittedly would be more meaningful in an html document.

Thanx, Paul

#9 lore raw
Quoted 16 lines · Paul E. McKenney
Quoted 15 lines · Borislav Petkov
Quoted 14 lines · Paul E. McKenney
Quoted 13 lines

! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
?
! Emergency stop.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
End of file on the terminal!
---

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

That is odd given that URLs really can contain "#"...

I'm reading the error message like it has a problem with the "#" in "#define" but I might be wrong.

Yep, that is my feeling as well. And so \url{#define} would mean the name "define" in the current document. Which admittedly would be more meaningful in an html document.

Does wrapping the \co{} in mbox help? Please see the patch below for an example.

Your environment apparently does handle \co{} in other environments, as there are a lot of them in Chapter 1. So if mbox fixes it for you, I would be OK mboxing all the \co{}s in tables.

Thanx, Paul

------------------------------------------------------------------------

toolsoftrade/toolsoftrade.tex +1 -1
index c98f3a78652f..a5b530fc989e 100644
@@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
 	\hline
 	\hline
 	Thread Management
-		& \co{pthread_t}
+		& \mbox{\co{pthread_t}}
 			& \co{struct task_struct} \\
 	\cline{2-3}
 		& \co{pthread_create()}
#10 lore raw
Quoted 16 lines · Paul E. McKenney

Does wrapping the \co{} in mbox help? Please see the patch below for an example.

Your environment apparently does handle \co{} in other environments, as there are a lot of them in Chapter 1. So if mbox fixes it for you, I would be OK mboxing all the \co{}s in tables.

Thanx, Paul

------------------------------------------------------------------------

toolsoftrade/toolsoftrade.tex +0 -0
index c98f3a78652f..a5b530fc989e 100644

toolsoftrade/toolsoftrade.tex but may be implemented straightforwardly as follows: · line 1248

Quoted 8 lines
toolsoftrade/toolsoftrade.tex +1 -1
@@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
 	\hline
 	\hline
 	Thread Management
-		& \co{pthread_t}
+		& \mbox{\co{pthread_t}}
 			& \co{struct task_struct} \\
 	\cline{2-3}
 		& \co{pthread_create()}

Nope, that doesn't help :-(

! Missing { inserted.
<inserted text>

                {
l.1246                  &
            \mbox{\co{struct task_struct}} \\
? 
! Emergency stop.
<inserted text> 
                {
l.1246                  &
            \mbox{\co{struct task_struct}} \\

End of file on the terminal!

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

A message that is not in the archive (sent off-list or not yet received): [email protected]

#12 lore raw
Quoted 9 lines · Paul E. McKenney

And I take it that just adding braces doesn't work either, the discussion in
http://tex.stackexchange.com/questions/102119/why-doesnt-lstinline-work-in-table-column
notwithstanding?

	{\co{struct task_struct}}

Or:

	{ \co{struct task_struct} }

No, neither.

/me searches a bit more, gets lucky...

Apparently, it is still an open bug which seems unresolved even in tex upstream, AFAICT:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752773

I tried the suggested workaround first by replacing \lstinline in

/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty

with it but it complained about an undefined command. Then I went and did this:

\newcommand\lstinline[1][]{%
\leavevmode\bgroup % \hbox\bgroup --> \bgroup

     \def\lst@boxpos{b}%
     \lsthk@PreSet\lstset{flexiblecolumns,#1}%
     \lsthk@TextStyle
     \ifnum\iffalse{\fi`}=\z@\fi
     \@ifnextchar\bgroup{%
        \ifnum`{=\z@}\fi%
        \afterassignment\lst@InlineG \let\@let@token}{%
        \ifnum`{=\z@}\fi\lstinline@}}

and the pdf was built successfully.

Maybe I should let the guys know that it still triggers...

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#13 lore raw
Quoted 38 lines · Borislav Petkov
Quoted 9 lines · Paul E. McKenney

And I take it that just adding braces doesn't work either, the discussion in
http://tex.stackexchange.com/questions/102119/why-doesnt-lstinline-work-in-table-column
notwithstanding?

	{\co{struct task_struct}}

Or:

	{ \co{struct task_struct} }

No, neither.

/me searches a bit more, gets lucky...

Apparently, it is still an open bug which seems unresolved even in tex upstream, AFAICT:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752773

I tried the suggested workaround first by replacing \lstinline in

/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty

with it but it complained about an undefined command. Then I went and did this:

\newcommand\lstinline[1][]{%
\leavevmode\bgroup % \hbox\bgroup --> \bgroup

     \def\lst@boxpos{b}%
     \lsthk@PreSet\lstset{flexiblecolumns,#1}%
     \lsthk@TextStyle
     \ifnum\iffalse{\fi`}=\z@\fi
     \@ifnextchar\bgroup{%
        \ifnum`{=\z@}\fi%
        \afterassignment\lst@InlineG \let\@let@token}{%
        \ifnum`{=\z@}\fi\lstinline@}}
Quoted 3 lines

and the pdf was built successfully.

Maybe I should let the guys know that it still triggers...

Nice!!!

You put this above definition in perfbook.tex?

Thanx, Paul

#14 lore raw
Quoted 1 line · Paul E. McKenney

You put this above definition in perfbook.tex?

Nope, this goes into

/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty

which is part of texlive-latex-recommended. It needs to be fixed in the distro.

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#15 lore raw
Quoted 9 lines · Borislav Petkov
Quoted 1 line · Paul E. McKenney

You put this above definition in perfbook.tex?

Nope, this goes into

/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty

which is part of texlive-latex-recommended. It needs to be fixed in the distro.

Thank you for the info! It is likely to be helpful to others as well. ;-)

Thanx, Paul

#16 lore raw
Quoted 1 line · Paul E. McKenney

Thank you for the info! It is likely to be helpful to others as well. ;-)

Yeah, I've pinged the bug, let's see what happens.

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#17 lore raw
Quoted 4 lines · Borislav Petkov
Quoted 1 line · Paul E. McKenney

Thank you for the info! It is likely to be helpful to others as well. ;-)

Yeah, I've pinged the bug, let's see what happens.

Brooks Moses claimed responsibility on G+, so hopefully something will happen. ;-)

Thanx, Paul

#18 lore raw
In reply to Borislav Petkov
Quoted 14 lines · Borislav Petkov
Quoted 3 lines · Paul E. McKenney

Hmmm... Works for me. (Famous last words...)

I am at commit #763eb4b811f9 (Fix resizable-hash figures).

Ditto.

Quoted 2 lines

I also sometimes see odd errors like this due to an interrupted run that leaves bogus .aux files around. A "make clean" will clear this up.

Nope, that doesn't help.

Strangely, I'm getting a bunch of undefined references before it fails:

Quoted 8 lines

----- Fatal latex error, see perfbook.log for details. -----
LaTeX Warning: Reference chp:How To Use This Book' on page 1 undefined on inpu LaTeX Warning: Reference chp:Introduction' on page 1 undefined on input line 4 LaTeX Warning: Reference chp:Hardware and its Habits' on page 1 undefined on i LaTeX Warning: Reference chp:Tools of the Trade' on page 1 undefined on input LaTeX Warning: Reference chp:Counting' on page 1 undefined on input line 57. LaTeX Warning: Reference cha:Partitioning and Synchronization Design' on page
...

And these are because latex accumulates the definitions on one pass, and then uses these definitions on the next pass. So if your first pass never does complete correctly, the next pass won't have some or all of the definitions.

Thanx, Paul

Quoted 49 lines
Quoted 6 lines

I am also using an oldish version of latex. Let me see what happens with a more recent version... Well, on that system, it complains about pstricks.sty not being present. :-/

In the meantime, here is the version of latex I am using:

Quoted 13 lines

k$ latex --v
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.18.2

$ latex --v
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian)
kpathsea version 6.2.1dev
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.13; using libpng 1.6.13
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.26.5

Btw, I commented out the table in toolsoftrade/toolsoftrade.tex and the conversion exploded on the next table in defer/rcufundamental.tex. So it must be have something to do with the tables...

Signature · 9 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html