Unable to package llvm version 12.0.0.1 as RPM in rhel7

Unable to package the llvm version 12.0.0.1 as RPM in rhel7 due to unavailability of header file mach-o/compact_unwind_encoding.h.

In file included from /root/rpmbuild_llvm/BUILD/llvm-12.0.1.src/tools/lld/MachO/UnwindInfoSection.cpp:9:
/root/rpmbuild_llvm/BUILD/llvm-12.0.1.src/tools/lld/MachO/UnwindInfoSection.h:15:10: fatal error: mach-o/compact_unwind_encoding.h: No such file or directory
15 | #include “mach-o/compact_unwind_encoding.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [tools/lld/MachO/CMakeFiles/lldMachO2.dir/UnwindInfoSection.cpp.o] Error 1
make[1]: *** [tools/lld/MachO/CMakeFiles/lldMachO2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…

Could you please help to fix the issue.

Why do you need to package LLVM for RHEL? Red Hat already provides llvm packages for RHEL7:

Not possible to add subscription to download llvm-toolset As we have 1000+ RHEL7 Linux machines.

We been trying to build the llvm from source code and facing below libunwind issue.

n file included from /root/rpmbuild_llvm/BUILD/llvm-12.0.1.src/tools/lld/MachO/UnwindInfoSection.cpp:9:
/root/rpmbuild_llvm/BUILD/llvm-12.0.1.src/tools/lld/MachO/UnwindInfoSection.h:15:10: fatal error: mach-o/compact_unwind_encoding.h: No such file or directory
15 | #include “mach-o/compact_unwind_encoding.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [tools/lld/MachO/CMakeFiles/lldMachO2.dir/UnwindInfoSection.cpp.o] Error 1
make[1]: *** [tools/lld/MachO/CMakeFiles/lldMachO2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…

On further investigation we understand that libunwind required and that should be compile with llvm.
Steps we followed is got from : libunwind/BuildingLibunwind.rst at master · llvm-mirror/libunwind · GitHub

But the issue is persist.
If possible please help us to fix the issue / share your valuable suggestion here.

Please share the suggestions