[Llvm-bgq-discuss] xdr_xyz symbols in bgclang

Hal Finkel hfinkel at anl.gov
Fri Feb 10 19:29:08 CST 2017


Hi Sandipan,

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.

  -Hal

On 02/07/2017 09:24 AM, Sandipan Mohanty wrote:
> 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
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20170210/20861fef/attachment.html>


More information about the llvm-bgq-discuss mailing list