xv6-riscv-book icon indicating copy to clipboard operation
xv6-riscv-book copied to clipboard

Error with Makefile

Open abhillman opened this issue 2 years ago • 4 comments

Any guidance?

[nix-shell:~/Development/xv6-riscv-book]$ pdflatex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021/nixos.org)
kpathsea version 6.3.3
Copyright 2021 Han The Thanh (pdfTeX) et al.
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: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.12; using zlib 1.2.12
Compiled with xpdf version 4.03

[nix-shell:~/Development/xv6-riscv-book]$ make
if [ ! -d xv6-riscv-src/ ]; then \
	git clone [email protected]:mit-pdos/xv6-riscv.git xv6-riscv-src/ ; \
else \
	git -C xv6-riscv-src/ pull ; \
fi; \
true
Already up to date.
pdflatex book.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/nixos.org) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./book.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24>
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/base/book.cls
Document Class: book 2021/10/04 v1.4n Standard LaTeX document class

(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/base/bk12.clo))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/base/fontenc.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/psnfss/times.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/listings/listings.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/graphics/keyval.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/listings/lstmisc.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/listings/listings.cfg))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/graphics/graphicx.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/graphics/graphics.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/graphics/trig.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/graphics-cfg/graphics.cfg)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/graphics-def/pdftex.def)))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/xcolor/xcolor.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/graphics-cfg/color.cfg))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/url/url.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/imakeidx/imakeidx.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/xkeyval/xkeyval.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/xkeyval/xkeyval.tex
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/xkeyval/xkvutils.tex)))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/iftex/ifxetex.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/iftex/iftex.sty))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/iftex/ifluatex.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/tools/multicol.sty))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/booktabs/booktabs.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/etoolbox/etoolbox.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/preprint/fullpage.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/soul/soul.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/base/inputenc.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/hyperref/hyperref.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/ltxcmds/ltxcmds.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/pdftexcmds/pdftexcmds.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/infwarerr/infwarerr.sty))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/kvsetkeys/kvsetkeys.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/pdfescape/pdfescape.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/hycolor/hycolor.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/letltxmacro/letltxmacro.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/auxhook/auxhook.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/kvoptions/kvoptions.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/hyperref/pd1enc.def)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/intcalc/intcalc.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/etexcmds/etexcmds.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/hyperref/puenc.def)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/bitset/bitset.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/bigintcalc/bigintcalc.sty))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/base/atbegshi-ltx.sty))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/hyperref/hpdftex.def
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/base/atveryend-ltx.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/rerunfilecheck/rerunfilecheck.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/uniquecounter/uniquecounter.sty)))
Writing index file book.idx

(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/psnfss/t1ptm.fd)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/l3backend/l3backend-pdftex.def) (./book.aux)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/latexconfig/epstopdf-sys.cfg))
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/hyperref/nameref.sty
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/latex/refcount/refcount.sty)
(/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-full-2021-final/s
hare/texmf/tex/generic/gettitlestring/gettitlestring.sty)) (./book.out)
(./book.out) [1{/nix/store/gbya287ay298wj93zpka8xbncw5wc09k-texlive-combined-fu
ll-2021-final/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2]
(./book.toc)

! LaTeX Error: File `latex.out/acks.tex' not found.

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

Enter file name: 

abhillman avatar Oct 28 '22 05:10 abhillman

I got the same error and found that the current version of Makefile might be problematic, missing the building of latex.out/*.tex before the pdflatex routine. You may kindly try to generate them manually with:

make $(ls *.tex | sed 's/^/latex.out\//g')

Then run make as usual.

lyazj avatar Nov 17 '22 08:11 lyazj

See PR #32

rockrush avatar Dec 23 '22 14:12 rockrush

I found PR https://github.com/mit-pdos/xv6-riscv-book/pull/32 to be helpful / fix the problem. Not sure why the authors of this repo don't accept the pull request? Please do!

fmresearchnovak avatar Aug 02 '23 18:08 fmresearchnovak

@lyazj saved my day. His tip worked for me on MacOS with mactex enviroment. thx

muckisg avatar Sep 30 '23 08:09 muckisg

Adopted pr 32

kaashoek avatar Jul 31 '24 14:07 kaashoek