This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/55518] boehm-gc, libatomic, libffi and libgomp testsuite can't find path to libasan for make check with -fsanitizer


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55518

--- Comment #2 from Jack Howarth <howarth at nitro dot med.uc.edu> 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]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]