Il codice gira bene su diversi file ma su quello che mi ha dato problemi, continua a darmeli e sì, sono sicuro di non aver dato altri \makeindex. Allego il preambolo:
`\documentclass[11pt,twoside,titlepage]{scrreport}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{geometry,fancyhdr,amssymb,amsmath,upgreek,tikz,pgfplots}
\usepackage{caption}
\captionsetup{tableposition=top,figureposition=bottom,font=small}
\geometry{top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.8cm}
\usepackage[output-decimal-marker={,}]{siunitx}
\usepackage{imakeidx}
\makeindex [intoc=true,options={-s classic.ist}]
%\usepackage[style=authortitle,backend=biber]{biblatex}
%\addbibresource{riferimenti.bib}
\usepackage{hyperref}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter.\ #1}{}}
\fancyhead[RO,LE]{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,CE]{}
\fancyfoot[CO,RE]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\title{APPUNTI DI DINAMICA DELLE TERRE}
\author{\dots}
\date{}
\begin{document}
\maketitle
\tableofcontents
\thispagestyle{empty}
\cleardoublepage
\chapter{Considerazioni generali}
\index{profondità} \index{moti convettivi} \index{placca} \index{Aquila}
\printindex
\end{document}`