Souvenir from Maine not damaged by this compiler (7)
I believe the answer is:
memento
'souvenir' is the definition.
('memento' can be a synonym of 'souvenir')
'maine not damaged by this compiler' is the wordplay.
'maine' becomes 'me'.
'damaged' is an anagram indicator.
'by' is a charade indicator (letters next to each other).
'this compiler' becomes 'me' (the person who is writing these clues).
'not' anagrammed gives 'nto'.
'nto' after 'me' is 'mento'.
'me'+'mento'='MEMENTO'
'from' acts as a link.
(Other definitions for memento that I've seen before include "might be kept for sentimental reasons" , "Souvenir, reminder of past events" , "Something kept" , "trophy" , "Souvenir, reminder of past event" .)