In Need of Help building tsan with standard library

Hey, i’m pretty much a noob to working with compilers or runtimes.
I’m trying to integrate a function into compiler-rt’s threadsanitizer that writes the events to a file at runtime for a possible offline analysis.
I had a lot of trouble building clang and compiler-rt initially but got it working now.
But at this point I’m just lost. I’m unable to #include any library with an output stream library. Every time I try I get errors like:
llvm-project/llvm/include/llvm/Support/type_traits.h:17:10: fatal error: type_traits: file or directory not found.
The build doesn’t seem to find the standard library, or am I missing something?
Anyone got an idea how to fix this.

I’m using LInux Ubunut x86-64
Using this
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DLLVM_ENABLE_PROJECTS=“clang;compiler-rt;” -DLLVM_ENABLE_RUNTIMES=“libcxx;libcxxabi;libunwind” -DCMAKE_BUILD_TYPE=Release -G “Unix Makefiles” …/llvm


make check-tsan

to build

Thanks in advance.