Issue: Using any compiler to compile any C code with "-fsanitize=address" results in the following error:
I get this error even when I try
using
I found this thread:
Code:
/usr/local/bin/ld: cannot find -lasan
collect2: error: ld returned 1 exit statu
I get this error even when I try
gcc main.c -fsanitize=address
on
Code:
int main() {
return 0;
}
using
-L/usr/local/lib -I/usr/local/include
yields the same result as above.I found this thread:
gcc/clang address sanitizer
Hello, I've tried to build binaries using -fsanitize=address several times in the past using ports and base clang, always resulting in a failure diagnosing something like libasan not found. Now ports' lang/gcc has been updated to 4.8 and address sanitize is mentioned in the commit log, however...
forums.freebsd.org