Yes, I saw them too as I thought that I can change scheduling policy to
something other then cons_res.

I was able (with your changes to the slurm.spec) to build 14.03.2 (which we
ran on FC20.

However, 14.11.7 failed similarly with undefined symbol in plugin for which
I found this post from 2013:

https://groups.google.com/forum/#!topic/slurm-devel/QHOajQ84_Es

Then I checked FC23 RPM macros and indeed:

/usr/lib/rpm/redhat/macros:

# Harden packages by default for Fedora 23:
# https://fedorahosted.org/fesco/ticket/1384 (accepted on 2014-02-11)
%_hardened_build        1
%_hardened_cflags       %{?_hardened_build:%{_hardening_cflags}}
%_hardened_ldflags      %{?_hardened_build:%{_hardening_ldflags}}

So, I added this to the spec:

%undefine _hardened_build
%global _hardened_cflags "-Wl,-z,lazy"
%global _hardened_ldflags "-Wl,-z,lazy"

But, it did not work.  Oh, well... Will try couple of more things, but from
what I can see, slurmd does not have symbols required by plugins, while
slurmctld does.

Nenad

On Fri, Feb 12, 2016 at 6:34 AM, Adam Huffman <[email protected]>
wrote:

>
> Hi Nenad,
>
> I can see similar problems with some of the other plugins too:
>
> Feb 12 14:09:49 marcel.lan slurmd[32255]: error:
> plugin_load_from_file: dlopen(/usr/lib64/slurm/select_linear.so):
> /usr/lib64/slurm/select_linear.so: undefined symbol:
> slurm_job_preempt_mode
> Feb 12 14:09:49 marcel.lan slurmd[32255]: error: Couldn't load
> specified plugin name for select/linear: Dlopen of plugin file failed
> Feb 12 14:09:49 marcel.lan slurmd[32255]: fatal: Can't find plugin for
> select/linear
>
>
>
> On Wed, Feb 10, 2016 at 3:34 AM, Nenad Vukicevic <[email protected]>
> wrote:
> >
> > I was able to build Slurm RPMs on Fedora 23 by following suggestion in
> > Adam Huffman's post -
> > https://groups.google.com/forum/#!topic/slurm-devel/HiltSkNiGJU.
> >
> > However, slurmd fails to run with the following error:
> >
> > ----
> > Feb 09 18:55:34 dev slurmd[6700]: error: plugin_load_from_file:
> > dlopen(/usr/lib64/slurm/select_cons_res.so):
> > /usr/lib64/slurm/select_cons_res.so: undefined symbol:
> > powercap_get_cluster_current_cap
> > Feb 09 18:55:34 dev slurmd[6700]: error: Couldn't load specified
> > plugin name for select/cons_res: Dlopen of plugin file failed
> > Feb 09 18:55:34 dev slurmd[6700]: fatal: Can't find plugin for
> select/cons_res
> > ----
> >
> > Our slurm uses scheduling type cons_res:
> >
> > SelectType=select/cons_res
> >
> > The powercap_get_cluster_current_cap() is defined in
> > slurmctld/powercapping.c which is not used when slurmd is being
> > linked.
> >
> > Any idea what is going on?  I am using the latest 15.08.7.
>

Reply via email to