http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55518
Bug #: 55518 Summary: boehm-gc, libatomic, libffi and libgomp testsuite can't find path to libasan for make check with -fsanitizer Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer AssignedTo: unassig...@gcc.gnu.org ReportedBy: howa...@nitro.med.uc.edu CC: do...@gcc.gnu.org, dvyu...@gcc.gnu.org, ja...@gcc.gnu.org, k...@gcc.gnu.org While using... make -k check RUNTESTFLAGS="--target_board=unix'{-fsanitize=address}'" is sufficient for the testsuite residing in the gcc subdirectory to find the built libasan for linkage, the libffi testsuite fails in its entirety with errors... ld: library not found for -lasan^M collect2: error: ld returned 1 exit status^M compiler exited with status 1 output is: ld: library not found for -lasan^M collect2: error: ld returned 1 exit status^M The same issue exists in the libgomp, boehm-gc and libatomic testsuites. Interestingly, the libstdc++-v3 manages to find the path to libasan without any additional options being passed on --target_board=unix than -fsanitize=address.