Skip to content

Fix SOS Dependency Checks and Fix -L Flag in Build Configuration#1908

Open
spwalto wants to merge 4 commits into
ovis-hpc:mainfrom
spwalto:config_flag_fixes
Open

Fix SOS Dependency Checks and Fix -L Flag in Build Configuration#1908
spwalto wants to merge 4 commits into
ovis-hpc:mainfrom
spwalto:config_flag_fixes

Conversation

@spwalto
Copy link
Copy Markdown
Collaborator

@spwalto spwalto commented Jul 28, 2025

This fixes issue #1864 - In ldms/src/store/Makefile.am, the SOS-dependent plugins now follow the same format as the if ENABLE_KOKKOS block for consistency.

While testing, I ran into this error:
libtool: error: require no space between '-L' and '../../../../ldms/src/core/libldms.la'.
After digging into it, I found the issue was with m4/options.m4—it was setting -L flags even when the specified directories didn’t exist. In my case, I was using a local SOS build where the library lived under build/sos/src/.libs/, so the default /lib and /lib64 checks failed, and the script ended up setting -L with no path.

To fix this, I updated options.m4 so that the *_LIB64DIR_FLAG and *_LIBDIR_FLAG are only set if the corresponding directories actually exist. Otherwise, they’re left empty.

@spwalto spwalto changed the title Improve SOS Dependency Checks and Fix Invalid -L Flag in Build Configuration Improve SOS Dependency Checks and Fix -L Flag in Build Configuration Jul 28, 2025
@spwalto spwalto force-pushed the config_flag_fixes branch from 7d632e0 to 02a0ef8 Compare July 28, 2025 20:42
@spwalto spwalto changed the title Improve SOS Dependency Checks and Fix -L Flag in Build Configuration Fix SOS Dependency Checks and Fix -L Flag in Build Configuration Jul 28, 2025
@tom95858
Copy link
Copy Markdown
Collaborator

@baallan could you please take a look at this?

@baallan
Copy link
Copy Markdown
Collaborator

baallan commented Aug 1, 2025

when tested under toss4, the m4 change isn't generating correct code for the gpcdlocal test or (afaict) the sosdb test. there's a bunch of other stuff changing in configure.ac as well, so it may be a little bit before i untangle my understanding of where the rest of the changes are intended to get us and what is just a bug.

@tom95858
Copy link
Copy Markdown
Collaborator

tom95858 commented Aug 1, 2025

@baallan, @spwalto thanks for looking into this. Let me know when it's ready to go. Maybe convert to 'draft' for now?

@spwalto spwalto marked this pull request as draft August 4, 2025 18:43
@tom95858
Copy link
Copy Markdown
Collaborator

tom95858 commented Aug 8, 2025

@spwalto if you use the --with-sos=

Does the problem go away?

@spwalto
Copy link
Copy Markdown
Collaborator Author

spwalto commented Aug 11, 2025

@spwalto if you use the --with-sos=

Does the problem go away?

Yes, the LDMS builds successfully. I'll go ahead and remove the changes to options.m4. Thank you for looking into this!

@spwalto spwalto force-pushed the config_flag_fixes branch from 1c899cd to b6bd506 Compare August 12, 2025 18:08
@spwalto spwalto marked this pull request as ready for review August 12, 2025 20:02
@tom95858
Copy link
Copy Markdown
Collaborator

@baallan, @spwalto is this ready to merge?

@morrone morrone added the main label Sep 20, 2025
@tom95858
Copy link
Copy Markdown
Collaborator

tom95858 commented Oct 2, 2025

@baallan, @spwalto ...

@baallan, @spwalto is this ready to merge?

Is this ready to merge?

@baallan
Copy link
Copy Markdown
Collaborator

baallan commented Oct 2, 2025

@spwalto, since @jennfshr is the most frequent snl packager these days, please check with her on this. Are her pipelines good with it?

Comment thread configure.ac Outdated

# Now check if SOS is enabled
if test -n "$ENABLE_SOS_TRUE" && test -n "$missing"; then
AC_MSG_ERROR([The following features require --enable-sos:$missing. Please re-run configure with --enable-sos.])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spwalto, I think the error should be --with-sos=PATH is required, please re-run with this configure option.

The --enable-sos is not correct. We should probably remove it.

Copy link
Copy Markdown
Collaborator Author

@spwalto spwalto Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes — you’re right. I had forgotten about the changes made to the Makefile.am. I’ve updated the file to remove the ENABLE_SOS_TRUE check and changed the error message to output --with-sos=PATH (or --with-sos=) . The LDMS build & install was tested with the --with-sos flag and there were no issues.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to successfully build with these new changes on @spwalto fork. This looks fine by me.

@spwalto
Copy link
Copy Markdown
Collaborator Author

spwalto commented Oct 6, 2025

@baallan @tom95858 I'll let you know when I have updates.

@spwalto
Copy link
Copy Markdown
Collaborator Author

spwalto commented Oct 14, 2025

Pipelines all look good on our end. @tom95858, unless there’s something I missed in the latest updates, this PR should be good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants