Date: Thu, 11 Sep 2014 18:42:02 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Adam Weinberger <adamw@adamw.org> Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, Gerald Pfeifer <gerald@pfeifer.com>, ports-committers@freebsd.org Subject: Re: svn commit: r367883 - in head: Mk lang/gcc Message-ID: <5412334A.9070603@FreeBSD.org> In-Reply-To: <0496640B-F902-401E-B02E-E85506A2FFF5@adamw.org> References: <201409101909.s8AJ9wpY028698@svn.freebsd.org> <5410AEB5.9050205@FreeBSD.org> <alpine.LSU.2.11.1409102231390.2867@tuna.site> <54122471.70109@FreeBSD.org> <0496640B-F902-401E-B02E-E85506A2FFF5@adamw.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4iMT3h3qgF7re5cpkqRIcRc2gSwx8NpRu Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 9/11/2014 6:28 PM, Adam Weinberger wrote: > On 11 Sep, 2014, at 18:38, Bryan Drewery <bdrewery@FreeBSD.org> wrote: >=20 >> 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=20 >>>> about AddressSanitizer being supported. >>> >>> You are very welcome! (I haven't tested AddressSanitizer myself,=20 >>> but think I recall a positive report by a user. If it does not=20 >>> 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 packag= es. >> >> 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=3Daddress -o >> /dev/null -x c - >> /usr/local/bin/ld: cannot find -lasan >> collect2: error: ld returned 1 exit status >=20 > 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 =3D x8; then > TSAN_SUPPORTED=3Dyes > fi > ;; > powerpc*le-*-linux*) > UNSUPPORTED=3D1 > ;; > powerpc*-*-linux*) > ;; > sparc*-*-linux*) > ;; > x86_64-*-darwin[1]* | i?86-*-darwin[1]*) > TSAN_SUPPORTED=3Dno > ;; > *) > UNSUPPORTED=3D1 > ;; > esac >=20 > In configure output: > checking for libsanitizer support=85 no >=20 > # Adam >=20 >=20 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=3D303&colspe= c=3DID%20Type%20Status%20Priority%20OpSys%20Owner%20Summary --=20 Regards, Bryan Drewery --4iMT3h3qgF7re5cpkqRIcRc2gSwx8NpRu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJUEjNKAAoJEDXXcbtuRpfPSDEIAK1kroWSgzsqWFmxPwFAaR81 YLp/t0I+clQYpASKac14h1NZ8UdCvIut7lUczG+XCN5wGp4CvcWFgoRcCYnunD3V VNTL8ss/JynUyBJXpNhyL78WBI1V1pyMmK8rOqgSlBtHBUO1U/L6PfGFV6s8mEsc 5Y+peyXWayTehH2cMLwVnbo7pP6gTBU+fHl4GFjc4CfZj2TJ7KMIopSC9s+DwP+p 5g2OPJgDtH+6wiwWbgeWO4pT4dnpQJGwJ+55LiBN5qpifRBD06gXuasVcudOFXaa lHZYW5fDa+oswvanCpmDcXIb2bIHGar9GRg/SDpyhgG4JfcaAvKrkdpVeijWzc0= =ayYL -----END PGP SIGNATURE----- --4iMT3h3qgF7re5cpkqRIcRc2gSwx8NpRu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5412334A.9070603>