[Llvm-bgq-discuss] xdr_xyz symbols in bgclang

Hal Finkel hfinkel at anl.gov
Fri Mar 10 21:40:15 CST 2017


Hi Sandipan, et al.,

As it turns out, the problem was that in order to include these symbols 
in a newer libc.a, you need to configure glibc with 
--enable-obsolete-rpc. This is now fixed in the libc.a that comes with 
our toolchain-fixup rpm. Please grab toolchain-fixup-4.7.2-4.ppc64.rpm 
from http://www.mcs.anl.gov/~hfinkel/bgclang/#toolchain-fixup

http://www.mcs.anl.gov/~hfinkel/bgclang/RPMS/ppc64/toolchain-fixup-4.7.2-4.ppc64.rpm

and install that and your problem should be resolved. Please let me know 
if you have any questions.

  -Hal

On 02/10/2017 07:29 PM, Hal Finkel wrote:
>
> 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
>
>
> _______________________________________________
> 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/20170310/429d6691/attachment.html>


More information about the llvm-bgq-discuss mailing list