running test => error: unknown type name 'size_t'

1,667 views
Skip to first unread message

Gerold Meisinger

unread,
Oct 2, 2011, 7:27:21 AM10/2/11
to emscripten-discuss
Hello!

I want to compile emscripten on a fresh Lubuntu 10.04 x86 Live system
but I'm stuck at running "test_cubescript" (and some other tests) with
the following errors:

http://pastebin.com/ewxaWAVU
> error: unknown type name 'size_t'

How do I resolve this? Please help! I really like the idea of
emscripten and getting any native code running in browsers using
Javascript, but it's hard without a compiler :)


Btw: To compile LLVM GCC I already had to use these hacks:

1.
$ sudo ln -s /usr/src/linux-headers-2.6.38-8/include/asm-generic/ /usr/
include/asm

2.
and in ~/.emscripten:
COMPILER_OPTS = ['-m32', '-I/usr/include/linux']

Without them I would get the following errors:
http://pastebin.com/FMyk0ANE

Alon Zakai

unread,
Oct 4, 2011, 10:02:46 PM10/4/11
to emscripte...@googlegroups.com
Hmm, not having size_t defined means something odd is going on with your system headers I think. I don't think this is specific to Emscripten, but I can't be sure.

However, there might be an easy workaround for you. Emscripten's llvm-svn branch bundles headers and does *not* use system headers at all. So if you use that branch you should not get that error. Note though that you will need to use LLVM's svn version with that branch, and that the branch is not as stable as Emscripten master, there are some broken tests I am fixing (but most work fine at this point). I will probably finish fixing all the tests in about a week, at which point I will merge llvm-svn to master.

- azakai
Reply all
Reply to author
Forward
0 new messages