viralcode / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
1 stars 0 forks source link

clang on CentOS #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I realize that it's only been tested on Ubuntu, but I was trying to run it on 
centos (5.6 x86_64).

I assume Ubuntu comes with a newer version of libc, since it's failing to link.

Is there a way to build clang on Centos?

Mike

[root@prague mike]# ./asan/asan_clang_Linux/bin/clang

./asan/asan_clang_Linux/bin/clang: /lib64/libc.so.6: version `GLIBC_2.11'
not found (required by ./asan/asan_clang_Linux/bin/clang)

./asan/asan_clang_Linux/bin/clang: /usr/lib64/libstdc++.so.6: version 
`GLIBCXX_3.4.9' not found (required by ./asan/asan_clang_Linux/bin/clang)

[root@prague mike]# ls -la /lib64/libc.so.6
lrwxrwxrwx 1 root root 11 Apr 14 19:58 /lib64/libc.so.6 -> libc-2.5.so

[root@prague mike]# ls -la /usr/lib64/libstdc++.so.6
lrwxrwxrwx 1 root root 18 Apr 14 19:59 /usr/lib64/libstdc++.so.6 ->
libstdc++.so.6.0.8

[root@prague mike]# more /etc/redhat-release 
CentOS release 5.6 (Final)

Original issue reported on code.google.com by mike.pultz on 31 Aug 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Did you try http://code.google.com/p/address-sanitizer/wiki/HowToBuild ? 

Original comment by konstant...@gmail.com on 31 Aug 2011 at 8:08

GoogleCodeExporter commented 9 years ago

Original comment by konstant...@gmail.com on 28 Sep 2011 at 4:38