Smelling odors, that aren't really present is a smell sense disorder, known as phantosmia.
Usually, this symptom is due to some damage of smell sense receptors or brain damage.
This can follow some viral infection, like flu, cold, chronic sinusitis, nose surgery or trauma, and, exposure to certain toxins and drugs.
This can be seen as a preceding symptom in migraine headache sufferers, or accompanying symptom of seizures (epilepsy).
Sometimes, more serious condition can be hidden, like, brain tumor, or brain injury, so, this problem needs detailed evaluation.