[Llvm-bgq-discuss] address sanitizer on mira

Cameron Smith smithc11 at rpi.edu
Thu Feb 27 14:17:10 CST 2014


On Mira I load up the clang wrapper module:
$ soft add +mpiwrapper-bgclang.legacy

then build C hello world with address sanitizer:
$ cat hello.c
#include<stdio.h>
int main() {printf("hello\n"); return 0;}
$ mpicc hello.c -fsanitize=address -o hello

the following is output:
> /home/projects/llvm/r201012-20140207/bin/clang: /lib64/libz.so.1: no version information available (required by /gpfs/mira-home/projects/llvm/r201012-20140207/bin/../lib/libLLVM-3.5svn.so)
> /gpfs/mira-home/projects/llvm/r201012-20140207/bin/clang: /lib64/libz.so.1: no version information available (required by /gpfs/mira-home/projects/llvm/r201012-20140207/bin/../lib/libLLVM-3.5svn.so)
> /home/projects/llvm/r201012-20140207/binutils/bin/as: /lib64/libz.so.1: no version information available (required by /home/projects/llvm/r201012-20140207/binutils/bin/as)
> /home/projects/llvm/r201012-20140207/binutils/bin/ld: /lib64/libz.so.1: no version information available (required by /home/projects/llvm/r201012-20140207/binutils/bin/ld)

Can I safely ignore the libz version warnings?

Also the page here
https://www.alcf.anl.gov/user-guides/bgclang-compiler#memory-bounds-checking-%28address-sanitizer%29
notes that address-sanitizer may be unstable with pre-V1R2M1 drivers. 
The default driver is V1R2M0.  If I load the V1R2M1 driver module via 
'soft add +bgqdriver-V1R1M1' should I expect the build of clang pointed 
at by '+mpiwrapper-bgclang.legacy' to work correctly?

Thank-you,
Cameron



More information about the llvm-bgq-discuss mailing list