[Llvm-bgq-discuss] Clang 3.6 on BG/Q

Hal Finkel hfinkel at anl.gov
Fri Oct 10 08:05:35 CDT 2014


----- Original Message -----
> From: "Jean-Michel Dupays" <jean-michel.dupays at idris.fr>
> To: "Hal Finkel" <hfinkel at anl.gov>
> Cc: llvm-bgq-discuss at lists.alcf.anl.gov
> Sent: Friday, October 10, 2014 5:44:35 AM
> Subject: Re: [Llvm-bgq-discuss] Clang 3.6 on BG/Q
> 
> 
> 
> Le vendredi 10 octobre 2014 01:53:24, vous avez écrit :
> 
> > Hi Jean-Michel,
> 
> > 
> 
> > I apologize for the delay. Look for the link to
> 
> > V1R2M2_base_4.7.2-files.tar.gz on the trac page
> 
> > (http://trac.alcf.anl.gov/projects/llvm-bgq/), and follow the
> > surrounding
> 
> > instructions. Please let me know if you have any trouble.
> 
> > 
> 
> > -Hal
> 
> 
> Dear Hal,
> 
> 
> Many thanks for the tar files.
> 
> I made two tests :
> 
> + I downloaded V1R2M2_base_4.7.2-files.tar.gz (as you mentioned even
> if our driver is V1R2M1) in the directory /bglocal/cn/pub/gcc/.
> 
> I type this :

Hi Jean-Michel,

> 
> $ export
> LD_LIBRARY_PATH=/bglocal/cn/pub/gcc/V1R2M2_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib:$LD_LIBRARY_PATH

This is your problem: Don't do this!

> 
> $ /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/bin/ldd
> /bglocal/fe/pub/Clang/r217688-20140912/r217688-20140912/libc++/lib/libc++.so
> 
> Erreur de segmentation (core dumped)
> 
> 
> It is perhaps normal because I try to use ldd command of the driver
> V1R2M1 with libraries for V1R2M2.

Yes, but that had nothing to do with actually running. Just to be clear, unlike gcc, bgclang adds rpath entries into the executables do that they can find the libraries without setting LD_LIBRARY_PATH. You don't need to do that, and shouldn't. Just run the normal ldd, and you should see that all of the paths are correctly resolved once you've actually build something with bgclang. If not, you have another problem, and let me know. Just follow the directions on the trac page regarding modifying the wrapper script to find your files.

 -Hal

> 
> 
> 
> 
> + So I downloaded
> http://www.mcs.anl.gov/~hfinkel/bgclang/V1R2M1_base_4.7.2-files.tar.gz
> in the directory /bglocal/cn/pub/gcc/. I tried this :
> 
> 
> $ export
> LD_LIBRARY_PATH=/bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib:$LD_LIBRARY_PATH
> 
> $ /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/bin/ldd
> /bglocal/fe/pub/Clang/r217688-20140912/r217688-20140912/libc++/lib/libc++.so
> 
> /bin/bash: warning: setlocale: LC_ALL: cannot change locale
> (fr_FR.UTF-8)
> 
> /bglocal/fe/pub/Clang/r217688-20140912/r217688-20140912/libc++/lib/libc++.so:
> /bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/libc.so.6:
> version `GLIBC_2.17' not found (required by
> /bglocal/fe/pub/Clang/r217688-20140912/r217688-20140912/libc++/lib/libc++.so)
> 
> linux-vdso64.so.1 => (0x00000fffb5080000)
> 
> libstdc++.so.6 =>
> /bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/libstdc++.so.6
> (0x00000fffb4c30000)
> 
> libpthread.so.0 =>
> /bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/libpthread.so.0
> (0x00000fffb4b10000)
> 
> libc.so.6 =>
> /bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/libc.so.6
> (0x00000fffb48e0000)
> 
> libm.so.6 =>
> /bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/libm.so.6
> (0x00000fffb47c0000)
> 
> librt.so.1 =>
> /bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/librt.so.1
> (0x00000fffb4690000)
> 
> /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/lib/ld64.so.1
> (0x00000000335b0000)
> 
> libgcc_s.so.1 =>
> /bglocal/cn/pub/gcc/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/libgcc_s.so.1
> (0x00000fffb4580000)
> 
> 
> So the result is the same with a personal compiled version of gcc
> 4.7.2.
> 
> 
> I think the problem comes from the tar files of r217688-20140912
> which need glibc 2.17 and not from the toolchain of V1R2M1 driver
> with gcc 4.7.2. What do you think ?
> 
> 
> 
> 
> I don't know if my explanations are clear. Let me know if not.
> 
> Thank you in advance.
> 
> Best regards.
> 
> 
> 
> 
> --
> 
> Jean-Michel Dupays / Support utilisateurs IDRIS
> 
> Mél : jean-michel.dupays at idris.fr / assist at idris.fr
> 
> Tél : +33(0)1 69 35 85 57 / +33(0)1 69 35 85 55
> 
> Fax : +33(0)1 69 85 37 75
> 
> Toile : http://www.idris.fr
> 
> Adresse :
> 
> IDRIS/CNRS, Campus Universitaire d'Orsay, Rue John Von Neumann,
> 
> Bâtiment 506, BP 167, 91403 ORSAY Cedex (France)
> 
> 
> 
> 
> 
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list