Unknown type name errors

1,793 views
Skip to first unread message

mscdex .exe

unread,
Aug 29, 2013, 1:45:23 AM8/29/13
to emscripte...@googlegroups.com
Hello,

I'm trying to compile libiconv-1.14 with clang/llvm 3.2 (from official ubuntu repo) and emscripten's master branch on (L)ubuntu 13.04. `emconfigure ./configure` is successful, but `emmake make` results in many errors, such as:

/home/mscdex/emscripten/system/include/libc/stdio.h:246:1: error: unknown type name 'off_t'; did you mean '_off_t'?
/home/mscdex/emscripten/system/include/libc/stdio.h:495:1: error: unknown type name 'ssize_t'
/home/mscdex/emscripten/system/include/libc/sys/signal.h:49:3: error: unknown type name 'pthread_attr_t'
/home/mscdex/emscripten/system/include/libc/sys/signal.h:149:26: error: expected identifier
int _EXFUN(kill, (pid_t, int));
                         ^
/home/mscdex/emscripten/system/include/libc/sys/signal.h:167:27: error: unknown type name 'pthread_t'
/home/mscdex/emscripten/system/include/libc/sys/signal.h:182:23: error: unknown type name 'pid_t'
/home/mscdex/emscripten/system/include/libc/time.h:154:28: error: unknown type name 'clockid_t'; did you mean 'clock_t'?
/home/mscdex/emscripten/system/include/libc/time.h:165:27: error: unknown type name 'timer_t'; did you mean 'time_t'?

I'm also using the default generated ~/.emscripten. What am I missing here?

Alon Zakai

unread,
Aug 29, 2013, 3:19:42 PM8/29/13
to emscripte...@googlegroups.com
Perhaps a problem with our headers. We are in the process of replacing them with something better. Meanwhile, you might need to add some #include. If there is no obvious solution you can file an issue with a testcase and we'll look into it.

- Alon



--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

mscdex .exe

unread,
Aug 29, 2013, 10:37:22 PM8/29/13
to emscripte...@googlegroups.com
On Thursday, August 29, 2013 3:19:42 PM UTC-4, azakai wrote:
Perhaps a problem with our headers. We are in the process of replacing them with something better. Meanwhile, you might need to add some #include. If there is no obvious solution you can file an issue with a testcase and we'll look into it.

- Alon

My fix[1] was moving the #include <stdint.h> to the bottom of <sys/types.h> as suggested in [2]. After that I could compile successfully.

[1] https://github.com/mscdex/emscripten/commit/bf7c748ef84c2f16dc4fa9b9e596d219dbe1a061.patch
[2] https://github.com/kripken/emscripten/issues/809
 
Reply all
Reply to author
Forward
0 new messages