I found some information here:
http://www.embeddedrelated.com/groups/68hc12/show/10689.php
It seems the problem is related to the "-Lasm" option in the Project settings. (Section "Compiler for HC12")
I will try to remove the "-Lasm" option to see if that resolves the problem..
ssinfod
The text and answer from the webpage above :
We saw this problem if you have the -lasm option specified. Looks like a
file handle interaction with the Windows operating system.
So could you check if you have the -lasm option specified?
Then I suggest that you remove it from the compiler command line.
We made an effort to prevent the problem, but for 3.1 the above thing is
what you could try.
Thanks,
Erich