The C compiler "/usr/bin/cc" is not able to compile a simple test program.

That video is one year old. It doesn’t match the current instructions. You should read aseprite/INSTALL.md at main · aseprite/aseprite · GitHub for the latest instructions.