Date: Thu, 11 Sep 2014 19:28:59 -0400 From: Adam Weinberger <adamw@adamw.org> To: Bryan Drewery <bdrewery@FreeBSD.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: <0496640B-F902-401E-B02E-E85506A2FFF5@adamw.org> In-Reply-To: <54122471.70109@FreeBSD.org> References: <201409101909.s8AJ9wpY028698@svn.freebsd.org> <5410AEB5.9050205@FreeBSD.org> <alpine.LSU.2.11.1409102231390.2867@tuna.site> <54122471.70109@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11 Sep, 2014, at 18:38, Bryan Drewery <bdrewery@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=20= >>> about AddressSanitizer being supported. >>=20 >> 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.) >=20 > Actually it fails to link. Both clang and gcc complain about missing > libasan symbols. >=20 > I find no providers of libasan in any of the gcc, llvm or clang = packages. >=20 > 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. >=20 > Simple test case: >=20 > # 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 =46rom 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 In configure output: checking for libsanitizer support=85 no # Adam --=20 Adam Weinberger adamw@adamw.org http://www.adamw.org >=20 >=20 >>=20 >>=20 >> On a related note, when trying to commit the PORTREVISION bump=20 >> related to this commit, I ended up with: >>=20 >> svn: E165001: Commit failed (details follow): >> svn: E165001: Commit blocked by pre-commit hook (exit code 1) with = output: >> Do not commit ports with NOPORTDOCS or NOPORTEXAMPLES. >> The port must be converted to proper OPTIONS. See >> = http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile= -options.html >>=20 >> Not super helpful since it did not indicate which of the 1000+ ports=20= >> actually failed this test. ;-) I could bypass this using Approved: >> portmgr (implicit). >>=20 >> Gerald >>=20 >=20 >=20 > --=20 > Regards, > Bryan Drewery
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0496640B-F902-401E-B02E-E85506A2FFF5>