Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Cannot build on OS/X --with-hwloc #20

Open
raffenet opened this issue Jan 24, 2019 · 0 comments
Open

Cannot build on OS/X --with-hwloc #20

raffenet opened this issue Jan 24, 2019 · 0 comments

Comments

@raffenet
Copy link
Contributor

Making all in src
CC cond/libzm_la-zm_wskip.lo
cond/zm_wskip.c:99:19: error: static declaration of 'wait' follows non-static declaration
static inline int wait(struct zm_mcs L, zm_mcs_qnode_t I) {
^
/usr/include/sys/wait.h:248:7: note: previous declaration is here
pid_t wait(int *) __DARWIN_ALIAS_C(wait);
^
cond/zm_wskip.c:117:42: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
&status,
^~~~~~~
../src/include/common/zm_common.h:93:46: note: expanded from macro 'zm_atomic_compare_exchange_strong'
__atomic_compare_exchange_n(ptr, expect, desired, 0, success_memord, fail_memord)
^~~~~~
cond/zm_wskip.c:130:42: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
&status,
^~~~~~~
../src/include/common/zm_common.h:93:46: note: expanded from macro 'zm_atomic_compare_exchange_strong'
__atomic_compare_exchange_n(ptr, expect, desired, 0, success_memord, fail_memord)
^~~~~~
cond/zm_wskip.c:137:42: warning: incompatible pointer to integer conversion passing 'zm_mcs_qnode_t *' (aka 'struct zm_mcs_qnode *') to parameter of type 'intptr_t'
(aka 'long') [-Wint-conversion]
zm_atomic_store(&cur_node->next, pred, zm_memord_release);
^~~~
cond/zm_wskip.c:162:31: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'intptr_t' (aka 'long') [-Wint-conversion]
zm_atomic_store(&I->next, NULL, zm_memord_release);
^~~~
/usr/include/sys/_types/_null.h:30:15: note: expanded from macro 'NULL'
#define NULL __DARWIN_NULL
^~~~~~~~~~~~~
/usr/include/sys/_types.h:52:23: note: expanded from macro '__DARWIN_NULL'
#define __DARWIN_NULL ((void *)0)
^~~~~~~~~~~
cond/zm_wskip.c:170:39: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
&status,
^~~~~~~
../src/include/common/zm_common.h:93:46: note: expanded from macro 'zm_atomic_compare_exchange_strong'
__atomic_compare_exchange_n(ptr, expect, desired, 0, success_memord, fail_memord)
^~~~~~
cond/zm_wskip.c:187:20: error: too many arguments to function call, expected 1, have 2
return wait(L, *I);
~~~~ ^~
/usr/include/sys/wait.h:248:1: note: 'wait' declared here
pid_t wait(int *) __DARWIN_ALIAS_C(wait);
^
5 warnings and 2 errors generated.
make[1]: *** [cond/libzm_la-zm_wskip.lo] Error 1
make: *** [all-recursive] Error 1

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

No branches or pull requests

1 participant