[cfe-users] Address Sanitizer Link Error

Peter Caspers pcaspers1973 at gmail.com
Sun May 4 23:32:09 PDT 2014


yes. The whole build process is clean except for the warnings below (I
am on Linux/Ubuntu 13.10, x86-64). Is there any way I can explicitly
check if the necessary libraries for the address sanitizer are in
place ?

make[4]: Entering directory `/home/peter/llvm/tools/clang/runtime/compiler-rt'
warning: clang_darwin.mk: dropping arch 'i386' from lib 'eprintf' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib '10.4' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib '10.4' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib 'ios' (ld does
not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib 'ios' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib 'ios' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'armv7' from lib 'ios' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib 'osx' (ld does
not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib 'osx' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib 'osx' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'armv7' from lib 'cc_kext' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib 'cc_kext' (ld
does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib 'cc_kext'
(ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib 'cc_kext'
(ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib
'cc_kext_ios5' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib
'cc_kext_ios5' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'armv7' from lib
'cc_kext_ios5' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib 'profile_osx'
(ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib
'profile_osx' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib
'profile_osx' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib 'profile_ios'
(ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib
'profile_ios' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib
'profile_ios' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'armv7' from lib 'profile_ios'
(ld does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib
'asan_osx_dynamic' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib
'asan_osx_dynamic' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib
'asan_osx_dynamic' (ld does not support it)
warning: clang_darwin.mk: dropping arch 'i386' from lib 'ubsan_osx'
(ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64' from lib 'ubsan_osx'
(ld does not support it)
warning: clang_darwin.mk: dropping arch 'x86_64h' from lib 'ubsan_osx'
(ld does not support it)

On 4 May 2014 21:57, David Blaikie <dblaikie at gmail.com> wrote:
> Did you checkout the llvm/project/compiler-rt project and
> build/install that too?
>
> On Sun, May 4, 2014 at 12:31 PM, Peter Caspers <pcaspers1973 at gmail.com> wrote:
>> Hi,
>>
>> I built clang from the svn repository. It works fine, except when using
>>
>> -fsanitize=address
>>
>> during linking I get messages like
>>
>> /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algobase.h:372:
>> undefined reference to `__asan_memmove'
>>
>> Anybody has an idea what I did wrong ?
>>
>> Thanks
>> Peter
>> _______________________________________________
>> cfe-users mailing list
>> cfe-users at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users



More information about the cfe-users mailing list