<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Sandipan,</p>
I believe that you need to add -lrpcsvc (when compiling statically,
these functions are defined in librpcsvc.a in the underlying 4.7.2
toolchain). Please let me know if that works.<br>
<br>
-Hal<br>
<br>
<div class="moz-cite-prefix">On 02/07/2017 09:24 AM, Sandipan
Mohanty wrote:<br>
</div>
<blockquote cite="mid:1948683.lpuqkFNDC2@laurelin" type="cite">
<pre wrap="">Hi!
Can anyone tell me why the xdr_* symbols are not in the version of libc
used by bgclang ?
I am trying to help a project running on the Jülich BGQ system with some
linking problems. The program compiles fine, but at the linking stage, there is
a flood of messages about undefined references to symbols from the XDR library.
The attached file is a minimal example which compiles easily on most systems,
including the BGQ, but fails with bgclang++, throwing the same kind of
undefined reference errors (but only 2 instead of thousands). The xdr symbols
are usually in libc, as :
nm /usr/lib/libc.a | grep -w T | grep -E 'xdr'
returns lots of hits. But, bgclang++ links with a different libc version, that
seems to not have any of the xdr related symbols. The include files are still
there:
/usr/local/bg_soft/clang/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-
linux/sys-include/rpc/xdr.h
Any help regarding linking programs using xdr_ functions would be highly
appreciated.
/Sandipan
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
llvm-bgq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
</body>
</html>