<html><body><p><font size="2">Aha, the loader is actually complaining about missing symbols in *the loader itself*, not in libc.</font><br><br><font size="2">This seems strange:</font><br>/opt/atl2.0/lib64/ld64.so.2 => /Iib64/ld64.so.2<br><br><font size="2">/opt/atl12.0/lib64/ld64.so.2 should be the dynamic loader provided by the AT, it should definitely not fall back to using the system dynamic loader (/lib64/ld64.so.2).</font><br><br><font size="2">If you run "readelf -l" on your binary, what does it say under the INTERP segment (it should have something like "Requesting program interpreter: ...")?</font><br><br><font size="2">If this does *not* show /opt/atl12.0/lib64/ld64.so.2, then most likely you did not use the AT to *link* your application.  Note, you specifically need to use the AT gcc also for the *link* step, not just for the compile steps.</font><br><font size="2"><br><br>Mit freundlichen Gruessen / Best Regards<br><br>Ulrich Weigand<br><br>-- <br>  Dr. Ulrich Weigand | Phone: +49-7031/16-3727<br>  STSM, GNU/Linux compilers and toolchain<br>  IBM Deutschland Research & Development GmbH<br>  Vorsitzende des Aufsichtsrats: Martina Koederitz | Geschäftsführung: Dirk Wittkopp<br>  Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht Stuttgart, HRB 243294</font><br><br><img width="16" height="16" src="cid:1__=4EBB09D7DFCC75298f9e8a93df938690918c4EB@" border="0" alt="Inactive hide details for Ben Hood ---13.11.2018 18:25:17---Here’s the output from ldd: $ ldd /tmp/c4/erts-10.1.1/bin/erlc"><font size="2" color="#424282">Ben Hood ---13.11.2018 18:25:17---Here’s the output from ldd: $ ldd /tmp/c4/erts-10.1.1/bin/erlc</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Ben Hood <ben@relops.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">linuxppc-users@lists.ozlabs.org</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">13.11.2018 18:25</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [Linuxppc-users] Toolchain version for RHEL 7.1</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">"Linuxppc-users" <linuxppc-users-bounces+ulrich.weigand=de.ibm.com@lists.ozlabs.org></font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br>Here’s the output from ldd:<br><br>$ ldd /tmp/c4/erts-10.1.1/bin/erlc<br>/tmp/c4/erts-10.1.1/bin/erlc: /lib64/ld64.30.2: version 'GLIBC2.23' not found (required by /opt/atl2.0/lib64/power8/libc.so.6)<br>/tmp/c4/erts-10.1.1/bin/erlc: /lib64/ld64.so.2: version 'GLIBC2.22' not found (required by /opt/atl2.0/lib64/power8/libc.so.6)<br>    linux-vdso64.so.1 =>   (0x00003fff7acb0000)<br>    libutil.so.l => /opt/atl2.0/lib64/power8/libutil.so.1 (0x00003fff7ac80000)<br>    libdl.so.2 => /opt/atl2.0/lib64/power8/libdl.so.2 (0x00003fff7ac50000)<br>    libm.30.6 => /opt/atl2.0/lib64/power8/libm.so.6 (0x00003fff7aaf0000)<br>    libc.30.6 => /opt/atl2.0/lib64/power8/libc.so.6 (0x00003fff7a8a0000)<br>    /opt/atl2.0/lib64/ld64.so.2 => /Iib64/ld64.so.2 (0x000000002d750000<br><br>I’m wondering whether when I compiled the binary, I had somehow compiled/linked against a glibc that is only available on the build machine, rather than instructing the compiler to 100% link against the libraries supplied by AT?<br>
<ul><ul>On 13 Nov 2018, at 16:33, Ulrich Weigand <<a href="mailto:Ulrich.Weigand@de.ibm.com"><u><font color="#0000FF">Ulrich.Weigand@de.ibm.com</font></u></a>> wrote:<br>
<p><font size="2">That runtime package is supposed to install the AT glibc (under /opt/atX.X/lib64/...).</font><br><font size="2"><br>The AT dynamic loader (/opt/atX.X/lib64/ld64.so.2) is supposed to automatically use the AT libraries, including glibc, from /opt/atX.X/lib64/...</font><br><font size="2"><br>AT-built binaries should have the AT dynamic loader pre-configured so they always use it.</font><br><font size="2"><br>If this doesn't work for you, one of the above three steps must have failed somehow. What is the output when running your binary under "ldd" ?<br><br><br>Mit freundlichen Gruessen / Best Regards<br><br>Ulrich Weigand<br><br>-- <br>Dr. Ulrich Weigand | Phone: +49-7031/16-3727<br>STSM, GNU/Linux compilers and toolchain<br>IBM Deutschland Research & Development GmbH<br>Vorsitzende des Aufsichtsrats: Martina Koederitz | Geschäftsführung: Dirk Wittkopp<br>Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht Stuttgart, HRB 243294</font><br><br><graycol.gif><font size="2" color="#424282">Ben Hood ---13.11.2018 16:28:15---Many thanks for the heads up. I’ve installed advance-toolchain-at12.0-runtime on the target machine,</font><br><font size="2" color="#5F5F5F"><br>From: </font><font size="2">Ben Hood <</font><a href="mailto:ben@relops.com"><u><font size="2" color="#0000FF">ben@relops.com</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>To: </font><a href="mailto:linuxppc-users@lists.ozlabs.org"><u><font size="2" color="#0000FF">linuxppc-users@lists.ozlabs.org</font></u></a><font size="2" color="#5F5F5F"><br>Date: </font><font size="2">13.11.2018 16:28</font><font size="2" color="#5F5F5F"><br>Subject: </font><font size="2">Re: [Linuxppc-users] Toolchain version for RHEL 7.1</font><font size="2" color="#5F5F5F"><br>Sent by: </font><font size="2">"Linuxppc-users" <</font><a href="mailto:linuxppc-users-bounces+ulrich.weigand=de.ibm.com@lists.ozlabs.org"><u><font size="2" color="#0000FF">linuxppc-users-bounces+ulrich.weigand=de.ibm.com@lists.ozlabs.org</font></u></a><font size="2">></font><p><hr width="100%" size="2" align="left" noshade><br><br><tt><font size="2"><br>Many thanks for the heads up.<br><br>I’ve installed advance-toolchain-at12.0-runtime on the target machine, but this does not appear to supply a glibc of the required version.<br><br>Is this in another AT RPM package?<br><br>Perusing the FAQS<br></font></tt><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="https://developer.ibm.com/linuxonpower/advance-toolchain/adv-tool-usage/#faq1A"><tt><u><font size="2" color="#0000FF">https://developer.ibm.com/linuxonpower/advance-toolchain/adv-tool-usage/#faq1A</font></u></tt></a><tt><font size="2"><br><br>Indicates that advance-toolchain-at12.0-runtime is mandatory, but I’m wondering if a GLIBC_2.23 object is supplied by a different package. I guess I could go through and install all of them to find out what works, but it feels like glibc is quite a fundamental building block.<br><br>Other FAQs indicate that you can use<br><br>/opt/atX.X/sbin/ldconfig<br><br>To cache the correct library path, but running this hasn’t resolved the missing glibc object.<br><br>Am I looking at the wrong FAQs?<br><br><br>> On 13 Nov 2018, at 13:52, Ulrich Weigand <</font></tt><a href="mailto:Ulrich.Weigand@de.ibm.com"><tt><u><font size="2" color="#0000FF">Ulrich.Weigand@de.ibm.com</font></u></tt></a><tt><font size="2">> wrote:<br>> <br>> The AT uses a completely separate runtime library which is incompatible with the system library.<br>> <br>> In order to run any binary compiled with AT, you must always install (at least the runtime components of) the AT on the system that is to run the binary.<br>> <br>> <br>> Mit freundlichen Gruessen / Best Regards<br>> <br>> Ulrich Weigand<br>> <br>> -- <br>> Dr. Ulrich Weigand | Phone: +49-7031/16-3727<br>> STSM, GNU/Linux compilers and toolchain<br>> IBM Deutschland Research & Development GmbH<br>> Vorsitzende des Aufsichtsrats: Martina Koederitz | Geschäftsführung: Dirk Wittkopp<br>> Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht Stuttgart, HRB 243294<br>> <br>> <graycol.gif>Ben Hood ---13.11.2018 14:50:38---Hi list, I’m having issues loading the binary I’ve cross compiled for ppc64le/RHEL 7.1:<br>> <br>> From: Ben Hood <</font></tt><a href="mailto:ben@relops.com"><tt><u><font size="2" color="#0000FF">ben@relops.com</font></u></tt></a><tt><font size="2">><br>> To: </font></tt><a href="mailto:linuxppc-users@lists.ozlabs.org"><tt><u><font size="2" color="#0000FF">linuxppc-users@lists.ozlabs.org</font></u></tt></a><tt><font size="2"><br>> Date: 13.11.2018 14:50<br>> Subject: [Linuxppc-users] Toolchain version for RHEL 7.1<br>> Sent by: "Linuxppc-users" <</font></tt><a href="mailto:linuxppc-users-bounces+ulrich.weigand=de.ibm.com@lists.ozlabs.org"><tt><u><font size="2" color="#0000FF">linuxppc-users-bounces+ulrich.weigand=de.ibm.com@lists.ozlabs.org</font></u></tt></a><tt><font size="2">><br>> <br>> <br>> <br>> <br>> Hi list,<br>> <br>> I’m having issues loading the binary I’ve cross compiled for ppc64le/RHEL 7.1:<br>> <br>> /lib64/ld64.so.2: version ‘GLIBC_2.23’ not found (required by /opt/at12.0/lib64/power8/libm.so.6)<br>> <br>> The onboard version of glibc appears to be 2.17-157.el7.<br>> <br>> What is the idiomatic way to supply the required glibc version?<br>> <br>> Is there some kind of incompatibility between the AT runtime version (and the choice of toolchain version on the build machine)? Can I solve this issue by using a different version of AT?<br>> <br>> Thanks in advance,<br>> <br>> Ben<br>> <br>> <br>> _______________________________________________<br>> Linuxppc-users mailing list<br>> </font></tt><a href="mailto:Linuxppc-users@lists.ozlabs.org"><tt><u><font size="2" color="#0000FF">Linuxppc-users@lists.ozlabs.org</font></u></tt></a><tt><font size="2"><br>> </font></tt><a href="https://lists.ozlabs.org/listinfo/linuxppc-users"><tt><u><font size="2" color="#0000FF">https://lists.ozlabs.org/listinfo/linuxppc-users</font></u></tt></a><tt><font size="2"><br>> <br>> <br>> <br>> <br><br>_______________________________________________<br>Linuxppc-users mailing list</font></tt><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="mailto:Linuxppc-users@lists.ozlabs.org"><tt><u><font size="2" color="#0000FF">Linuxppc-users@lists.ozlabs.org</font></u></tt></a><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="https://lists.ozlabs.org/listinfo/linuxppc-users"><tt><u><font size="2" color="#0000FF">https://lists.ozlabs.org/listinfo/linuxppc-users</font></u></tt></a><tt><font size="2"><br></font></tt><br><br><br></ul></ul><tt><font size="2">_______________________________________________<br>Linuxppc-users mailing list<br>Linuxppc-users@lists.ozlabs.org<br></font></tt><tt><font size="2"><a href="https://lists.ozlabs.org/listinfo/linuxppc-users">https://lists.ozlabs.org/listinfo/linuxppc-users</a></font></tt><tt><font size="2"><br></font></tt><br><br><BR>
</body></html>