Citra make build with clang-12 in kubuntu error at 8% dynarmic

I was trying to build citra from source with clang-12 when I encounter this problem

[  8%] Building CXX object externals/dynarmic/src/CMakeFiles/dynarmic.dir/frontend/ir/microinstruction.cpp.o
[  8%] Building CXX object externals/dynarmic/src/CMakeFiles/dynarmic.dir/frontend/ir/opcodes.cpp.o

In file included from /home/mydevice/Repo/citra/externals/dynarmic/src/frontend/ir/opcodes.cpp:6:
/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/array:245:52: fatal error: instantiating fold expression with 649 arguments exceeded expression nesting limit of 256
      -> array<enable_if_t<(is_same_v<_Tp, _Up> && ...), _Tp>,

/home/mydevice/Repo/citra/externals/dynarmic/src/frontend/ir/opcodes.cpp:46:25: note: while substituting deduced template arguments into function template '<deduction guide for array>' [with _Tp = Dynarmic::IR::OpcodeInfo::Meta, _Up = <Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::Op ... :IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta, Dynarmic::IR::OpcodeInfo::Meta>]
static const std::array opcode_info {
                        ^
1 error generated.
make[2]: *** [externals/dynarmic/src/CMakeFiles/dynarmic.dir/build.make:440: externals/dynarmic/src/CMakeFiles/dynarmic.dir/frontend/ir/opcodes.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:981: externals/dynarmic/src/CMakeFiles/dynarmic.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

this is how I build it:

git clone --recursive https://github.com/citra-emu/citra
cd citra
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_FFMPEG_AUDIO_DECODER=ON -DCMAKE_CXX_COMPILER=clang++-12 -DCMAKE_C_COMPILER=clang-12
make

In order for us to provide better support, we need to see the log generated by Citra. This guide will walk you through how you can obtain the log file: How to Upload the Log File.

Try adding -fbracket-depth=1024 to the C++ compiler flags

thank you, this worked