I built clang/LLVM in ubuntu20.04 by downloading the llvm-project of github. According to the construction process of the official website, I executed the last step. When I executed the make command, an error was reported:
...
[ 95%] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/metadata.c.o
[ 95%] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/object.c.o
[ 95%] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/targets.c.o
[ 95%] Linking CXX executable ../../bin/llvm-c-test
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
make[2]: *** [tools/dsymutil/CMakeFiles/dsymutil.dir/build.make:335: bin/dsymutil] Error 1
make[2]: *** Deleting file 'bin/dsymutil'
make[1]: *** [CMakeFiles/Makefile2:91054: tools/dsymutil/CMakeFiles/dsymutil.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 95%] Built target llvm-c-test
[ 95%] Built target llc
[ 95%] Built target bugpoint
make: *** [Makefile:152: all] Error 2
how to solve this problem?