svn commit: r367883 - in head: Mk lang/gcc
Bryan Drewery
bdrewery at FreeBSD.org
Thu Sep 11 23:42:13 UTC 2014
On 9/11/2014 6:28 PM, Adam Weinberger wrote:
> On 11 Sep, 2014, at 18:38, Bryan Drewery <bdrewery at FreeBSD.org> wrote:
>
>> On 9/10/2014 4:32 PM, Gerald Pfeifer wrote:
>>> On Wed, 10 Sep 2014, Bryan Drewery wrote:
>>>> Thanks for writing up a summary of changes. Very useful. I learned
>>>> about AddressSanitizer being supported.
>>>
>>> You are very welcome! (I haven't tested AddressSanitizer myself,
>>> but think I recall a positive report by a user. If it does not
>>> work properly we might look into lang/gcc49 or lang/gcc5.)
>>
>> Actually it fails to link. Both clang and gcc complain about missing
>> libasan symbols.
>>
>> I find no providers of libasan in any of the gcc, llvm or clang packages.
>>
>> It appears it is a submodule of both gcc and clang. So it likely just
>> need to be hooked up in the build for gcc.
>>
>> Simple test case:
>>
>> # echo 'int main() {return 0;}'|g++5 -Wall -fsanitize=address -o
>> /dev/null -x c -
>> /usr/local/bin/ld: cannot find -lasan
>> collect2: error: ld returned 1 exit status
>
> From lang/gcc/work/gcc-4.8.3/libsanitizer/configure.tgt:
> case "${target}" in
> x86_64-*-linux* | i?86-*-linux*)
> if test x$ac_cv_sizeof_void_p = x8; then
> TSAN_SUPPORTED=yes
> fi
> ;;
> powerpc*le-*-linux*)
> UNSUPPORTED=1
> ;;
> powerpc*-*-linux*)
> ;;
> sparc*-*-linux*)
> ;;
> x86_64-*-darwin[1]* | i?86-*-darwin[1]*)
> TSAN_SUPPORTED=no
> ;;
> *)
> UNSUPPORTED=1
> ;;
> esac
>
> In configure output:
> checking for libsanitizer support… no
>
> # Adam
>
>
It would be fantastic to get this working. It's been generating a lot of
$$$ lately and saving the world.
This seems to discuss it a bit and has a patch for testing (posted just
days ago):
https://code.google.com/p/address-sanitizer/issues/detail?id=303&colspec=ID%20Type%20Status%20Priority%20OpSys%20Owner%20Summary
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20140911/11b593d0/attachment.sig>
More information about the svn-ports-all
mailing list