[Llvm-bgq-discuss] address sanitizer on mira
Hal Finkel
hfinkel at anl.gov
Thu Feb 27 14:30:15 CST 2014
----- Original Message -----
> From: "Cameron Smith" <smithc11 at rpi.edu>
> To: llvm-bgq-discuss at lists.alcf.anl.gov
> Sent: Thursday, February 27, 2014 2:17:10 PM
> Subject: [Llvm-bgq-discuss] address sanitizer on mira
>
> 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?
Yes, you can ignore these. They occur because I complied bgclang on vesta, which has a newer version of the operating system (and thus libz) on its login node.
>
> 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?
I'm not sure you can do that. I think that only the default driver works on mira. Can you try on vesta first?
-Hal
>
> Thank-you,
> Cameron
>
> _______________________________________________
> 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