Hello,
on the folder cd /ariadne/build after the cmake ../ command when I do make I get this error.
Do I do anything wrong?
[ 10%] Building C object CMakeFiles/ariadne.dir/ariadne.c.o
In file included from /Users/kostis/Downloads/ariadne/ariadne.c:12:
/Users/kostis/Downloads/ariadne/ariadne.h:19:8: error: unknown type name
'pthread_mutex_t'; did you mean 'pthread_attr_t'?
static pthread_mutex_t run_lock;
^~~~~~~
pthread_attr_t
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_pthread/_pthread_attr_t.h:31:33: note:
'pthread_attr_t' declared here
typedef __darwin_pthread_attr_t pthread_attr_t;
^
In file included from /Users/kostis/Downloads/ariadne/ariadne.c:12:
/Users/kostis/Downloads/ariadne/ariadne.h:420:22: warning: incompatible pointer
to integer conversion initializing 'unsigned int' with an expression of
type 'void ' [-Wint-conversion]
unsigned int stid = drvector_get_entry(bag, i);
^ ~~~~~~
/Users/kostis/Downloads/ariadne/ariadne.c:43:22: warning: incompatible pointer
to integer conversion initializing 'unsigned int' with an expression of
type 'void ' [-Wint-conversion]
unsigned int sthread = drvector_get_entry(main_info->sbag, i);
^ ~~~~~~~~~~
/Users/kostis/Downloads/ariadne/ariadne.c:96:63: warning: incompatible integer
to pointer conversion passing 'byte' (aka 'unsigned char') to parameter of
type 'void ' [-Wint-conversion]
...if (lock[j].alive && in_drvector(main_info->sbag, lock[j].nonlocker))
^~~~~
/Users/kostis/Downloads/ariadne/ariadne.h:427:36: note: passing argument to
parameter 'elem' here
in_drvector(drvector_t vec, void elem)
^
/Users/kostis/Downloads/ariadne/ariadne.c:198:40: warning: cast to 'void ' from
smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast]
drvector_append(thread_info->sbag, (void)tid);
Hello, on the folder cd /ariadne/build after the cmake ../ command when I do make I get this error. Do I do anything wrong?
[ 10%] Building C object CMakeFiles/ariadne.dir/ariadne.c.o In file included from /Users/kostis/Downloads/ariadne/ariadne.c:12: /Users/kostis/Downloads/ariadne/ariadne.h:19:8: error: unknown type name 'pthread_mutex_t'; did you mean 'pthread_attr_t'? static pthread_mutex_t run_lock; ^
~~~~~~ pthread_attr_t /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_pthread/_pthread_attr_t.h:31:33: note: 'pthread_attr_t' declared here typedef __darwin_pthread_attr_t pthread_attr_t; ^ In file included from /Users/kostis/Downloads/ariadne/ariadne.c:12: /Users/kostis/Downloads/ariadne/ariadne.h:420:22: warning: incompatible pointer to integer conversion initializing 'unsigned int' with an expression of type 'void ' [-Wint-conversion] unsigned int stid = drvector_get_entry(bag, i); ^~~~~~~ /Users/kostis/Downloads/ariadne/ariadne.c:43:22: warning: incompatible pointer to integer conversion initializing 'unsigned int' with an expression of type 'void ' [-Wint-conversion] unsigned int sthread = drvector_get_entry(main_info->sbag, i); ^~~~~~~~~~~ /Users/kostis/Downloads/ariadne/ariadne.c:96:63: warning: incompatible integer to pointer conversion passing 'byte' (aka 'unsigned char') to parameter of type 'void ' [-Wint-conversion] ...if (lock[j].alive && in_drvector(main_info->sbag, lock[j].nonlocker)) ^~~~~ /Users/kostis/Downloads/ariadne/ariadne.h:427:36: note: passing argument to parameter 'elem' here in_drvector(drvector_t vec, void elem) ^ /Users/kostis/Downloads/ariadne/ariadne.c:198:40: warning: cast to 'void ' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] drvector_append(thread_info->sbag, (void)tid);