I have the same problem on Ubuntu20.04,Contrary to the answer with the most likes,the code at the beginning,
void sprintf(char *str, char *fmt, ...) { va_list list; int i, len; va_start(list, 2); ...}
and then, the code as follows
void sprintf(char *str, char *fmt, ...) { va_list list; int i, len; va_start(list, fmt); ...}
Problem was sovled.