Running a ./configure script through emconfigure which checks the sizeof unsigned long will report that it's 8 instead of 4. I've created a cut-down example which illustrates the issue. It's as small as I could get it and is self-contained at: https://github.com/diddledan/emscripten-testcase1