[slurm-users] Help buidling slurm on OS X High Sierra
hartzell at alerce.com
Sat Jun 23 17:27:07 MDT 2018
I'm trying to build Slurm on a Mac running OS X Sierra (via Spack)
Slurm seems to use some compiler trickery that's specific to gcc to
define the `strong_alias` macro. If `USE_ALIAS=0` then a simple
replacement is used instead.
On the Mac it ends up using this definition:
# define strong_alias(name, aliasname) \
extern void aliasname(int name)
so this call from src/common/hostlist.c:
generates something like
extern void slurm_hostlist_copy(int hostlist_copy)
But this other macro from rc/common/slurm_xlator.h:
#define hostlist_copy slurm_hostlist_copy
and this definition from src/common/hostlist.h:
hostlist_t hostlist_copy(const hostlist_t hl);
give `hostlist_copy` a different signature.
I see that other folks have mentioned the same/similar problem on the
mailing list but I haven't seen any reply.
There are enough mentions of darwin in the src tree that it seems like
it should work (or has worked).
Am I chasing something hopeless?
More information about the slurm-users