philmoz
Comment out OPT_GEN_STUBS=1 in buildconf.inc
SDM does not have that option.
I will check the other Make files.
EDIT:
Cannot see anything that disables stubs.
In platform\makefile_sub.inc, CHDK has :-
ifdef OPT_GEN_STUBS
rm -f stubs_entry.S.err
As SDM does not have that, that is the same as commenting it out if it did.
EDIT2:
Well, if I delete the error file and rename the stub file and continue compiling without cleaning, the compiling succeeds.
After cleaning, it will again fail at the same position.
David