Bug 11137 - Patch to fix slibtool build issues.
Summary: Patch to fix slibtool build issues.
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Build System and Packaging (show other bugs)
Version: 21.08.x
Hardware: Linux Linux
: --- C - Contributions
Assignee: Tim Wickberg
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2021-03-18 15:54 MDT by orbea-ml
Modified: 2022-06-21 15:02 MDT (History)
0 users

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: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments
Patch to fix some issues when building with slibtool. (4.10 KB, patch)
2021-03-18 15:54 MDT, orbea-ml
Details | Diff
Full build log. (323.94 KB, text/x-log)
2021-03-18 15:55 MDT, orbea-ml
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orbea-ml 2021-03-18 15:54:04 MDT
Created attachment 18540 [details]
Patch to fix some issues when building with slibtool.

When trying to build slurm with slibtool (https://dev.midipix.org/cross/slibtool) it fails for multiple reasons.

One reason is that the Makefile.am files use the .o files directly instead of through the $(LIBTOOL) implemenation sometimes in addition of the .la files. This is not needed and breaks the build with slibtool. I have attached a patch that fixes most occurrences of the issue and a full build log showing the issue.

rdlibtool: link: clang .libs/eio.o .libs/io_hdr.o .libs/libeio.o -g -O2 -fno-omit-frame-pointer -pthread -ggdb3 -Wall -g -O1 -fno-strict-aliasing -o
clang-11: error: argument to '-o' is missing (expected 1 value)
clang-11: error: no such file or directory: '.libs/libeio.o'
rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1614: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 1909.
make[5]: *** [Makefile:1326: libeio.o] Error 2

Note: This may miss some occurrences of this issue hiding behind features that are not enabled in my build and this does not fix all issues with slibtool yet.

Also see this downstream issue: https://bugs.gentoo.org/775614
Comment 1 orbea-ml 2021-03-18 15:55:46 MDT
Created attachment 18541 [details]
Full build log.
Comment 3 Tim Wickberg 2022-06-21 15:02:29 MDT
Looking through some of these - there was some significant refactoring of the libslurm library handling ahead of the 21.08 release, and this patch is no longer directly relevant.