<div dir="ltr">Thanks, it works now.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 31, 2014 at 5:51 PM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sayan,<br>
<br>
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.<br>

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

> ><br>
> ><br>
> > My .soft file:<br>
> ><br>
> ><br>
> ><br>
> > +bgqdriver-V1R2M2<br>
> > +bgqtoolchain-gcc472<br>
> > +cmake<br>
> > +mpiwrapper-bgclang<br>
> ><br>
> ><br>
> > Thanks. --<br>
> ><br>
> ><br>
> > Regards, Sayan<br>
> ><br>
> > _______________________________________________<br>
> > llvm-bgq-discuss mailing list<br>
> > <a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a><br>
> > <a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss" target="_blank">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a><br>
> ><br>
><br>
> --<br>
> Hal Finkel<br>
> Assistant Computational Scientist<br>
> Leadership Computing Facility<br>
> Argonne National Laboratory<br>
> _______________________________________________<br>
> llvm-bgq-discuss mailing list<br>
> <a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a><br>
> <a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss" target="_blank">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a><br>
><br>
<br>
--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Regards,</div>Sayan<br></div>
</div>