Summary: | Building Slurm on EL 9 distros | ||
---|---|---|---|
Product: | Slurm | Reporter: | Chrysovalantis Paschoulas <c.paschoulas> |
Component: | Build System and Packaging | Assignee: | Tim McMullan <mcmullan> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | 4 - Minor Issue | ||
Priority: | --- | ||
Version: | 21.08.8 | ||
Hardware: | Linux | ||
OS: | Linux | ||
Site: | Jülich | Alineos Sites: | --- |
Bull/Atos Sites: | --- | Confidential Site: | --- |
Cray Sites: | --- | HPCnow Sites: | --- |
HPE Sites: | --- | IBM Sites: | --- |
NOAA SIte: | --- | OCF Sites: | --- |
SFW Sites: | --- | SNIC sites: | --- |
Linux Distro: | --- | Machine Name: | |
CLE Version: | Version Fixed: | 22.05.3 23.02pre1 | |
Target Release: | --- | DevPrio: | --- |
Description
Chrysovalantis Paschoulas
2022-07-19 01:53:22 MDT
I guess the fix it to disable lto in the spec file. We don't need lto enabled, right? (In reply to Chrysovalantis Paschoulas from comment #1) > I guess the fix it to disable lto in the spec file. > > We don't need lto enabled, right? I was going to ask if this was an rpmbuild thing or if you found this another way. Disabling lto in the spec file would be a way around it if it was an rpmbuild thing. I'm going to look into exactly why lto is breaking things on *el9 and see what all the potential options for fixing it are. (In reply to Tim McMullan from comment #2) > (In reply to Chrysovalantis Paschoulas from comment #1) > > I guess the fix it to disable lto in the spec file. > > > > We don't need lto enabled, right? > > I was going to ask if this was an rpmbuild thing or if you found this > another way. > > Disabling lto in the spec file would be a way around it if it was an > rpmbuild thing. > > I'm going to look into exactly why lto is breaking things on *el9 and see > what all the potential options for fixing it are. Great thanks! FYI we could build Slurm on el9 by disabling lto in spec file with: ``` %define _lto_cflags %{nil} ``` Is this the best approach to solve this issue? (In reply to Chrysovalantis Paschoulas from comment #3) > (In reply to Tim McMullan from comment #2) > > (In reply to Chrysovalantis Paschoulas from comment #1) > > > I guess the fix it to disable lto in the spec file. > > > > > > We don't need lto enabled, right? > > > > I was going to ask if this was an rpmbuild thing or if you found this > > another way. > > > > Disabling lto in the spec file would be a way around it if it was an > > rpmbuild thing. > > > > I'm going to look into exactly why lto is breaking things on *el9 and see > > what all the potential options for fixing it are. > > Great thanks! > > FYI we could build Slurm on el9 by disabling lto in spec file with: > ``` > %define _lto_cflags %{nil} > ``` > > Is this the best approach to solve this issue? My fix looks like: > %undefine _lto_cflags But the result is really the same :) There is some documentation from redhat on alternate ways of handling this problem and I'm exploring those before I officially propose a solution here, but I think its safe to proceed using either method of disabling lto in the spec file. While doing more digging on this it looks like %define _lto_cflags %{nil} is actually the preferred way to do this. We've landed a patch that should be in 22.05.3 to disable lto. https://github.com/SchedMD/slurm/commit/85efa455 Thank you for pointing this out! --Tim |