Ticket 17234 - Cannot compile on macos
Summary: Cannot compile on macos
Status: OPEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Build System and Packaging (show other tickets)
Version: 23.11.x
Hardware: Macintosh Mac OS
: 6 - No support contract
Assignee: Jacob Jenson
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2023-07-19 11:49 MDT by Rémy Léone
Modified: 2024-06-17 09:06 MDT (History)
1 user (show)

See Also:
Site: -Other-
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description Rémy Léone 2023-07-19 11:49:17 MDT
Hello,

I've tried to find slurm software suite to install it on my mac to control a remote slurm cluster. Is there a homebrew distribution of binaries for this software suite?

I've tried to run ./configure and make on macOS but it does not work also:

# sieben @ sieben-macbook in ~/workspace/slurm on git:master o [19:46:42] 
$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in auxdir
make[2]: Nothing to be done for `all'.
Making all in src
Making all in api
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../slurm  -I../..   -g -O2 -fno-omit-frame-pointer  -ggdb3 -Wall -g -O1 -fno-strict-aliasing -MT config_info.lo -MD -MP -MF .deps/config_info.Tpo -c -o config_info.lo config_info.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../slurm -I../.. -g -O2 -fno-omit-frame-pointer -ggdb3 -Wall -g -O1 -fno-strict-aliasing -MT config_info.lo -MD -MP -MF .deps/config_info.Tpo -c config_info.c  -fno-common -DPIC -o .libs/config_info.o
In file included from config_info.c:49:
In file included from ../../src/common/cpu_frequency.h:41:
../../src/slurmd/slurmstepd/slurmstepd_job.h:91:2: error: unknown type name 'cpu_set_t'
        cpu_set_t *cpu_set;
        ^
1 error generated.
make[4]: *** [config_info.lo] Error 1
make[3]: *** [../../src/api/libslurmhelper.la] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Is there stuff that I'm missing? Is macos for the client commands not supported?
Comment 1 Jacob Jenson 2023-07-19 13:44:35 MDT
Remy,

SchedMD provides a single source for Slurm downloads at
https://www.schedmd.com/downloads.php

Mac support is being added to the current version of Slurm and will be
released in November of this year.

Can you share with me who you work for?

Jacob


Jacob Jenson

*COO*

+1 925.695.7782

www.schedmd.com


On Wed, Jul 19, 2023 at 11:49 AM <bugs@schedmd.com> wrote:

> Site -Other-
> Bug ID 17234 <https://bugs.schedmd.com/show_bug.cgi?id=17234>
> Summary Cannot compile on macos
> Product Slurm
> Version 23.11.x
> Hardware Macintosh
> OS Mac OS
> Status OPEN
> Severity 6 - No support contract
> Priority ---
> Component Build System and Packaging
> Assignee jacob@schedmd.com
> Reporter remy.leone@gmail.com
>
> Hello,
>
> I've tried to find slurm software suite to install it on my mac to control a
> remote slurm cluster. Is there a homebrew distribution of binaries for this
> software suite?
>
> I've tried to run ./configure and make on macOS but it does not work also:
>
> # sieben @ sieben-macbook in ~/workspace/slurm on git:master o [19:46:42]
> $ make
> /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
> Making all in auxdir
> make[2]: Nothing to be done for `all'.
> Making all in src
> Making all in api
> /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../.. -I../../slurm  -I../..   -g -O2 -fno-omit-frame-pointer  -ggdb3 -Wall
> -g -O1 -fno-strict-aliasing -MT config_info.lo -MD -MP -MF
> .deps/config_info.Tpo -c -o config_info.lo config_info.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../slurm -I../.. -g -O2
> -fno-omit-frame-pointer -ggdb3 -Wall -g -O1 -fno-strict-aliasing -MT
> config_info.lo -MD -MP -MF .deps/config_info.Tpo -c config_info.c  -fno-common
> -DPIC -o .libs/config_info.o
> In file included from config_info.c:49:
> In file included from ../../src/common/cpu_frequency.h:41:
> ../../src/slurmd/slurmstepd/slurmstepd_job.h:91:2: error: unknown type name
> 'cpu_set_t'
>         cpu_set_t *cpu_set;
>         ^
> 1 error generated.
> make[4]: *** [config_info.lo] Error 1
> make[3]: *** [../../src/api/libslurmhelper.la] Error 2
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Is there stuff that I'm missing? Is macos for the client commands not
> supported?
>
> ------------------------------
> You are receiving this mail because:
>
>    - You are the assignee for the bug.
>
>
Comment 2 Rémy Léone 2023-07-20 01:16:47 MDT
Hello

I'm studying how bright computing cluster are working and they use slurm. 

https://support.brightcomputing.com/manuals/8.1/admin-manual.pdf

Thanks a lot for the macos port :) I hope a homebrew installation will be soon possible :)

Best regards
Comment 3 b-j 2023-11-20 15:27:35 MST
Will MacOS still be supported this month? I noticed some errors when running configure on the release from earlier this month.
Comment 4 Jacob Jenson 2023-11-20 15:41:09 MST
The site that was sponsoring this work backed out which unfortunately means MAC OS support will not be going into 23.11
Comment 5 b-j 2023-11-20 15:45:14 MST
Is this still some simple changes to the build system, i.e. shifting around compiler / linker flags?
Comment 6 Rémy Léone 2024-06-17 09:06:25 MDT
I would not need to have full support on macos. I'm looking to run client commands so srun and sattach. Would this partial support be more easy to add? I've seen that there is a __APPLE__ macro already available in the code but I'm not sure on how to add support for only the client commands