jslang icon indicating copy to clipboard operation
jslang copied to clipboard

Platform Support!

Open QuestionPython opened this issue 7 years ago • 1 comments

PTW32_DLLPORT int PTW32_CDECL pthread_setconcurrency (int);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1089:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_getconcurrency (void);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1094:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_init(pthread_rwlock_t *lock,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1097:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_destroy(pthread_rwlock_t *lock);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1099:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_tryrdlock(pthread_rwlock_t *);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1101:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_trywrlock(pthread_rwlock_t *);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1103:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_rdlock(pthread_rwlock_t *lock);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1105:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_timedrdlock(pthread_rwlock_t *lock,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1108:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_wrlock(pthread_rwlock_t *lock);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1110:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_timedwrlock(pthread_rwlock_t *lock,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1113:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlock_unlock(pthread_rwlock_t *lock);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1115:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlockattr_init (pthread_rwlockattr_t * attr);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1117:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlockattr_destroy (pthread_rwlockattr_t * attr);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1119:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * attr,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1122:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_rwlockattr_setpshared (pthread_rwlockattr_t * attr,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1131:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_kill(pthread_t thread, int sig);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1140:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_mutexattr_setkind_np(pthread_mutexattr_t * attr,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1142:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_mutexattr_getkind_np(pthread_mutexattr_t * attr,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1148:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1149:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_num_processors_np(void);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1155:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_win32_process_attach_np(void);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1156:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_win32_process_detach_np(void);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1157:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_win32_thread_attach_np(void);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1158:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_win32_thread_detach_np(void);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1163:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthread_win32_test_features_np(int);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1164:1: warning: empty declaration
 enum ptw32_features {
 ^~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1177:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT void * PTW32_CDECL pthread_timechange_handler_np(void *);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1186:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT HANDLE PTW32_CDECL pthread_getw32threadhandle_np(pthread_t thread);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1204:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthreadCancelableWait (HANDLE waitHandle);
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1205:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT int PTW32_CDECL pthreadCancelableTimedWait (HANDLE waitHandle,
 ^~~~~~~~~~~~~
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:538:27: error: expected declaration specifiers before ‘__declspec’
 #    define PTW32_DLLPORT __declspec (dllexport)
                           ^
/home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.h:1285:1: note: in expansion of macro ‘PTW32_DLLPORT’
 PTW32_DLLPORT DWORD PTW32_CDECL ptw32_get_exception_services_code(void);
 ^~~~~~~~~~~~~
In file included from /home/guest/Gits/Compiler/jslang/third_party/pthreads/pthread.c:40:0:
/home/guest/Gits/Compiler/jslang/third_party/pthreads/implement.h:46:10: fatal error: windows.h: No such file or directory
 #include <windows.h>
          ^~~~~~~~~~~

Not Support Linux?

QuestionPython avatar Feb 19 '18 14:02 QuestionPython

hi @questionpython firstly, I like your signature ;-) yes, I didn't try it on Linux, the CMakeLists.txt should modify to avoid compile pthread on Linux, just link with shared library of system is enough, and there is no script for Linux platform in scripts/ directory either.

I suspend the project and try to find solution to resolve closure and exception feature, and then the project is blocked by my job. It hard to continue when I have time again, I have no environment now.

eddid avatar Apr 17 '18 08:04 eddid