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

Sayan Ghosh sayandeep52 at gmail.com
Thu Jul 31 17:32:44 CDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20140731/14aa4040/attachment.html>


More information about the llvm-bgq-discuss mailing list