kripken/emscripten — Issue #152: Emscripten thinks the PC is 64-bit
Author: alberthrocks
Created: 2011-12-30 02:01:54+00:00
State: open

I am trying to convert my SDL application to JS, and I got this when linking:

parseTools.js:1653: Pointers cannot be 64-bit!
case 'ptrtoint': throw 'Pointers cannot be 64-bit!';
^
(in HTML)

Looking in the source, I found that this occurs if the JS detects that the code is 64-bit... which it isn't, because I'm running a 32-bit only system. I also tried adding -m32 to the CCFLAGS to no avail.

This is using the V8 engine - the Node.js one didn't reveal the file and line no., and I changed the engine to see if the error would go away. It turns out that it writes it doesn't show up in stdout (stderr??) and writes it into the HTML instead.