This error threw me for a while when I was trying to build using the Garnome 126.96.36.199 setup.
/bin/sh: glib-mkenums: -w: bad interpreter: No such file or directory
It wasn’t until I found a post mentioning that glib-mkenums was a Perl script that I started to clue in. For some reason the glib-mkenums app didn’t have anything in the “bang” line:
So I changed that to be:
Once that was done, the build worked fine. I’m not totally sure what happened as my previous attempt with the Garnome 2.10.0 setup had been fine.