staticanalysis / data-race-test

Automatically exported from code.google.com/p/data-race-test
0 stars 0 forks source link

tsanv2: clang must strip -static #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ clang++ output_tests/simple_race.c -fthread-sanitizer -fPIE -pie -g -lpthread 
-ldl -Ltsan -ltsan -static
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4/crtbeginT.o: relocation 
R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; 
recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4/crtbeginT.o: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Original issue reported on code.google.com by dvyu...@google.com on 13 Apr 2012 at 1:39

GoogleCodeExporter commented 9 years ago
Please, no. We should simply not use -static. 

Original comment by konstant...@gmail.com on 13 Apr 2012 at 4:18