From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7844 invoked by alias); 28 Nov 2012 16:49:20 -0000 Received: (qmail 7688 invoked by uid 48); 28 Nov 2012 16:48:55 -0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/55518] boehm-gc, libatomic, libffi and libgomp testsuite can't find path to libasan for make check with -fsanitizer Date: Wed, 28 Nov 2012 16:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg02762.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55518 --- Comment #2 from Jack Howarth 2012-11-28 16:48:55 UTC --- This seems to be sufficient for libstc++-v3... Index: libstdc++-v3/testsuite/lib/libstdc++.exp =================================================================== --- libstdc++-v3/testsuite/lib/libstdc++.exp (revision 193849) +++ libstdc++-v3/testsuite/lib/libstdc++.exp (working copy) @@ -84,7 +84,7 @@ # Called once, during runtest.exp setup. proc libstdc++_init { testfile } { global env - global v3-sharedlib v3-libgomp + global v3-sharedlib v3-libgomp v3-libasan global srcdir blddir objdir tool_root_dir global cc cxx cxxflags cxxpchflags cxxldflags global includes @@ -159,6 +159,18 @@ } v3track libgompdir 3 + # Locate libasan. This is only required for parallel mode. + set v3-libasan 0 + set libasandir [lookfor_file $blddir/../libsanitizer/asan .libs/libasan.$shlib_ext] + if {$libasandir != ""} { + set v3-libasan 1 + set libasandir [file dirname $libasandir] + append ld_library_path_tmp ":${libasandir}" + verbose -log "libasan support detected" + } + v3track libasandir 3 + + # Locate libstdc++ shared library. (ie libstdc++.so.) set v3-sharedlib 0 set sharedlibdir [lookfor_file $blddir src/.libs/libstdc++.$shlib_ext]