My empty.tex is very similar:
% Created 2019-08-27 Tue 06:25
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\date{\today}
\title{}
\hypersetup{
pdfauthor={},
pdftitle={},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 27.0.50 (Org mode 9.1.9)},
pdflang={English}}
\begin{document}
\tableofcontents
\end{document}
Th pdf is still not being produced:
org-compile-file: File "/home/matt/empty.pdf" wasn’t produced. See "*Org PDF LaTeX Output*" for details
Org LDF LaTeX Output says:
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
! I can't find file `empty.tex'.
<*> empty.tex
(Press Enter to retry, or Control-D to exit)
Please type another input file name
! Emergency stop.
<*> empty.tex
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on .//texput.log.
However, empty.tex is clearly present. Latex and pdflatex are both in my $PATH.
Maybe this is a problem with pdflatex?