<html><head></head><body><div class="ydpcbe7b8byahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">There's a typo in there.  It's lazy not -lazy.   Try adding exactly this line just before the %configure:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div># use -z lazy to allow dlopen with unresolved symbols</div><div>export LDFLAGS="%{build_ldflags} -Wl,-z,lazy"                     <--- this should fix it</div><div>%configure \</div></div><br></div>
        
        </div><div id="yahoo_quoted_6101129708" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Sunday, December 8, 2019, 05:30:00 PM EST, Brian Andrus <toomuchit@gmail.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv1583601357"><div>
    <p>There must be something more, because I am trying it with <br clear="none">
    </p>
    <p><i><b>[root@node02 ~]# rpm -E "%{build_ldflags}"</b></i><i><b><br clear="none">
        </b></i><i><b>-Wl,-z,relro  -Wl,-z,now
          -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,-lazy</b></i></p>
    <p>It builds (as expected) but slurmd will not start due to the same
      error. (Note, I have also tried LDFLAGS without --specs and
      without -Wl,-z-now with the same result)<br clear="none">
    </p>
    <p><i><b>[root@node02 ~]# slurmd</b></i><i><b><br clear="none">
        </b></i><i><b>slurmd: error: plugin_load_from_file:
          dlopen(/usr/lib64/slurm/select_cons_tres.so):
          /usr/lib64/slurm/select_cons_tres.so: undefined symbol:
          powercap_get_cluster_current_cap</b></i><i><b><br clear="none">
        </b></i><i><b>slurmd: error: Couldn't load specified plugin name
          for select/cons_tres: Dlopen of plugin file failed</b></i><i><b><br clear="none">
        </b></i><i><b>slurmd: fatal: Can't find plugin for
          select/cons_tres</b></i><i><b><br clear="none">
        </b></i></p>
    <p>So I still stand by my initial assessment of slurmd not running
      when built under CentOS8, even with lazy<br clear="none">
    </p>
    <p>I see others have had the same issue and even add to comments in
      the bugs, but no responses/resolution for this have been posted.</p>
    <p>FWIW, I also see the issue with the latest slurm 20.05 pre1 code.<br clear="none">
    </p>
    <p>Brian Andrus</p>
    <p><br clear="none">
    </p>
    <div class="yiv1583601357yqt6003877199" id="yiv1583601357yqtfd86450"><div class="yiv1583601357moz-cite-prefix">On 12/5/2019 11:46 PM, von St. Vieth,
      Benedikt wrote:<br clear="none">
    </div>
    <blockquote type="cite">
      <pre class="yiv1583601357moz-quote-pre">Hi again,

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre class="yiv1583601357moz-quote-pre">I answered this question on Oct 28.  Simply use lazy binding as
required by slurm.  See a copy below of my Oct 28 response to your
original thread.Just adjust the %build section of the rpm spec to
ensure that -Wl,-z,-lazy appears at the end of LDFLAGS.  Problem
solved.
</pre>
        </blockquote>
      </blockquote>
      <pre class="yiv1583601357moz-quote-pre">Isn't this something that should end up in the upstream .spec, with a if/else condition for EL8?

At the moment we are able to use a only slightly modified version of the original spec to build our EL7 version.

best
benedikt

High-Performance Computing Systems
Juelich Supercomputing Centre

phone: +49 2461 61-9401
fax: +49 2461 61-6656
email: <a rel="nofollow" shape="rect" class="yiv1583601357moz-txt-link-abbreviated" ymailto="mailto:b.von.st.vieth@fz-juelich.de" target="_blank" href="mailto:b.von.st.vieth@fz-juelich.de">b.von.st.vieth@fz-juelich.de</a>

-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------

</pre>
      <blockquote type="cite">
        <pre class="yiv1583601357moz-quote-pre">On 6. Dec 2019, at 08:23, Shane Kelly <a rel="nofollow" shape="rect" class="yiv1583601357moz-txt-link-rfc2396E" ymailto="mailto:Shane.Kelly@glasgow.ac.uk" target="_blank" href="mailto:Shane.Kelly@glasgow.ac.uk"><Shane.Kelly@glasgow.ac.uk></a> wrote:

Hi Phillip,
        Thanks for taking the time to reply to me - while I did search
the list before posting, I did not find your response.

Many thanks for pointing out the solution - originally, and again for
me specifically. You, and people like you keep open-source software
moving forward.

Thanks again for your time, I do appreciate it.

Kind regards,
Shane Kelly



</pre>
        <blockquote type="cite">
          <pre class="yiv1583601357moz-quote-pre">I answered this question on Oct 28.  Simply use lazy binding as
required by slurm.  See a copy below of my Oct 28 response to your
original thread.Just adjust the %build section of the rpm spec to
ensure that -Wl,-z,-lazy appears at the end of LDFLAGS.  Problem
solved.
</pre>
          <blockquote type="cite">
            <pre class="yiv1583601357moz-quote-pre">You probably built slurm with immediate binding instead of lazy
binding.  Check the tags in the plugin for BIND_NOW: $ readelf
-d /usr/lib64/slurm/select_cons_tres.so | grep BIND_NOW If you find
that tag, relink slurm with lazy binding instead, i.e. do not use
any form of "now" linking, e.g. -Wl,-z,now.> Note that the linker
will honor the last directive seen on the command line, so simply
appending -Wl,-z,lazy to the end> should suffice.  
</pre>
          </blockquote>
          <pre class="yiv1583601357moz-quote-pre">  On Thursday, December 5, 2019, 12:36:52 PM EST, Brian Andrus
<a rel="nofollow" shape="rect" class="yiv1583601357moz-txt-link-rfc2396E" ymailto="mailto:toomuchit@gmail.com" target="_blank" href="mailto:toomuchit@gmail.com"><toomuchit@gmail.com></a> wrote:  

Tim claims it works...

I have compiled it, but when you try to run slurmd, it throws some 
errors and will not start. From a previous thread:

    While I can successfully build/run slurmctld, slurmd is failing
because ALL of the SelectType libraries are missing symbols. Example
from select_cons_tres.so: # slurmd
    slurmd: error: plugin_load_from_file:
dlopen(/usr/lib64/slurm/select_cons_tres.so): /usr/lib64/slurm/select_cons_tres.so:
undefined symbol: powercap_get_cluster_current_cap slurmd: error:
Couldn't load specified plugin name for select/cons_tres: Dlopen of
plugin file failed slurmd: fatal: Can't find plugin for
select/cons_tres 
    # nm -D /usr/lib64/slurm/libslurmfull.so|grep powercap_
    000000000010f7b8 T slurm_free_powercap_info_msg
    0000000000060060 T slurm_print_powercap_info_msg
  

I am in the process of getting my client to purchase support so I can 
have a ticket that gets attention :)

Brian

On 12/5/2019 4:17 AM, Shane Kelly wrote:
</pre>
          <blockquote type="cite">
            <pre class="yiv1583601357moz-quote-pre">Hi,
    Is there anybody who has actually managed to compile from rpm
on Centos 8?
    And if so, could they share their recipe, please?

Thanks in anticipation :-)

Shane Kelly  
</pre>
          </blockquote>
          <pre class="yiv1583601357moz-quote-pre"></pre>
        </blockquote>
      </blockquote>
      <pre class="yiv1583601357moz-quote-pre"></pre>
    </blockquote>
  </div></div></div></div>
            </div>
        </div></body></html>