Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform Support! #2

Open
QuestionPython opened this issue Feb 19, 2018 · 1 comment
Open

Platform Support! #2

QuestionPython opened this issue Feb 19, 2018 · 1 comment

Comments

@QuestionPython
Copy link

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?

@eddid
Copy link
Owner

eddid commented Apr 17, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants