[Llvm-bgq-discuss] build issues with bgclang on vesta

Hal Finkel hfinkel at anl.gov
Thu Jul 31 17:51:00 CDT 2014


Sayan,

For some reason the V1R2M2 4.7.2 toolchain (which was just installed on vesta on Monday) does not provide the libnss_* static libraries that the BG/Q libc has traditionally required. For the time being, we'll use the V1R2M1 4.7.2 toolchain. 

In short, it should work now. Please re-compile your code.

 -Hal

----- Original Message -----
> From: "Hal Finkel" <hfinkel at anl.gov>
> To: "Sayan Ghosh" <sayandeep52 at gmail.com>
> Cc: llvm-bgq-discuss at lists.alcf.anl.gov
> Sent: Thursday, July 31, 2014 5:35:39 PM
> Subject: Re: [Llvm-bgq-discuss] build issues with bgclang on vesta
> 
> Sayan,
> 
> Thanks for reporting the problem. Looks like this is related to a new
> change in the V1R2M2 driver. I'll check it out...
> 
>  -Hal
> 
> ----- Original Message -----
> > From: "Sayan Ghosh" <sayandeep52 at gmail.com>
> > To: llvm-bgq-discuss at lists.alcf.anl.gov
> > Sent: Thursday, July 31, 2014 5:32:44 PM
> > Subject: [Llvm-bgq-discuss] build issues with bgclang on vesta
> > 
> > 
> > 
> > Hi,
> > 
> > 
> > I am new to Vesta, and having trouble building anything using
> > bgclang, upon bgclang -v, I get the following output, which shows a
> > link error:
> > 
> > 
> > 
> > [sghosh at vestalac1 build]$ bgclang -v
> > clang version 3.5.0 (trunk)
> > Target: powerpc64-bgq-linux
> > Thread model: posix
> > Found candidate GCC installation:
> > /bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2
> > Selected GCC installation:
> > /bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2
> > Candidate multilib: .;@m64
> > Selected multilib: .;@m64
> > "/home/projects/llvm/r209570-20140527/binutils/bin/ld"
> > --hash-style=gnu --no-add-needed --build-id -m elf64ppc -static -o
> > a.out
> > /bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/crt1.o
> > /bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/crti.o
> > /bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2/crtbeginT.o
> > -L/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib
> > -L/home/projects/llvm/r209570-20140527/sleef/lib
> > -L/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2
> > -L/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2/../../../../lib64
> > -L/lib/../lib64 -L/usr/lib/../lib64
> > -L/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2/../../../../powerpc64-bgq-linux/lib
> > -L/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2/../../..
> > -L/gpfs/vesta-home/projects/llvm/r209570-20140527/bin/../lib -L/lib
> > -L/usr/lib --as-needed -lsleef --no-as-needed --start-group -lgcc
> > -lgcc_eh -ldl -lc -lnss_files -lnss_dns -lresolv -lm --end-group
> > /bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/lib/gcc/powerpc64-bgq-linux/4.7.2/crtend.o
> > /bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/crtn.o
> > /home/projects/llvm/r209570-20140527/binutils/bin/ld: cannot find
> > -lnss_files
> > /home/projects/llvm/r209570-20140527/binutils/bin/ld: cannot find
> > -lnss_dns
> > clang: error: linker command failed with exit code 1 (use -v to see
> > invocation)
> > 
> > 
> > My hello-world program also fails with the same link-time error:
> > 
> > 
> > 
> > [sghosh at vestalac1 tmp]$ bgclang -o tt tmp.c
> > /home/projects/llvm/r209570-20140527/binutils/bin/ld: cannot find
> > -lnss_files
> > /home/projects/llvm/r209570-20140527/binutils/bin/ld: cannot find
> > -lnss_dns
> > clang: error: linker command failed with exit code 1 (use -v to see
> > invocation)
> > 
> > 
> > I am following the instructions given in:
> > http://www.alcf.anl.gov/user-guides/bgclang-compiler#using-bgclang-on-vesta,-mira-and-cetus
> > 
> > 
> > My .soft file:
> > 
> > 
> > 
> > +bgqdriver-V1R2M2
> > +bgqtoolchain-gcc472
> > +cmake
> > +mpiwrapper-bgclang
> > 
> > 
> > Thanks. --
> > 
> > 
> > Regards, Sayan
> > 
> > _______________________________________________
> > 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
> Assistant Computational Scientist
> 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
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list