[Ecls-list] [emscripten support] Compile under windows without ECL_THREADS?

Rujia Liu 2575127 at qq.com
Sat Mar 14 17:24:38 UTC 2015


Dear all,

To support emscripten, I think we need to compile ECL without threads support. However, currently ECL windows port must be built without threads, as in ecl/ecl.h:

# ifdef ECL_THREADS
   typedef HANDLE pthread_t;
   typedef HANDLE pthread_mutex_t;
   typedef HANDLE pthread_cond_t; /*Dummy, not really used*/
#  undef ERROR
#  ifdef GBC_BOEHM
#   define CreateThread GC_CreateThread
#  endif
# else
#  error "The Windows ports cannot be built without threads."
# endif /* ECL_THREADS */
‍
I tried to remove "else error..." part but got a compiling error from eval.d, message:

cl -c /EHsc /DGC_DLL /DGC_BUILD /nologo /D_CRT_SECURE_NO_DEPRECATE /DNDEBUG /MD /O2  -DGC_BUILD -DECL_API="__declspec(dllexport)" -I./ -I../ -I..\..\src\c -I..\..\src/gc/include  -I..\..\src/gc/include/private /Foeval.obj eval.c
eval.c
../../src/c/eval.d(243) : error C2143: syntax error : missing ';' before ':'‍

I haven't looked into this but I'm afraid that there will be more errors poped out after I fixed this.

Am I on the right track? Or if anyone successfully built ECL without thread support under linux, I would consider switching to linux for emscripten support. But since my home computer runs windows (I won't have time to do this in office), I'd be more happy to continue working under windows.

- Rujia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20150315/6dd8ec48/attachment.html>


More information about the ecl-devel mailing list