<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54971>54971</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [build error] build llvm12 in centos7 with gcc 7.3  
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            build-problem
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ZCBing
      </td>
    </tr>
</table>

<pre>
    When build llvm12, I got a build error in centos7 with gcc7.3.

![image](https://user-images.githubusercontent.com/96521335/163943501-e8bc9d1b-210e-4b71-b6d4-32607f404831.png)

Here is my cmake option
cmake -G "Unix Makefiles"                                          \
                 -DCMAKE_INSTALL_PREFIX=$INSTALL       \
                 -DCMAKE_BUILD_TYPE=Release                 \
                 -DLLVM_OPTIMIZED_TABLEGEN=On          \
                 -DLLVM_USE_LINKER=gold      
                 -DLLVM_ENABLE_PROJECTS=clang;compiler-rt;lld;clang-tools-extra      \
                 -DLLVM_LINK_LLVM_DYLIB=On                   \
                 -DLLVM_ENABLE_ZLIB=OFF                         \
                 -DLLVM_ENABLE_TERMINFO=OFF               \
                 -DLLVM_TARGETS_TO_BUILD="X86;RISCV" 

it works in ubuntu.

What can I do to solve it?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVNtymzAQ_Rp40cBIAox54MEXnNJgO2OT64uHi4zVyMiDRJP8fRfwTJM20zoMA2hXezi72rO5LN_C-wOrUd5yUSIhfh4JNegMxaiSGmVnO2sa2SBeo4LVWiofvXB9QFVR-LZjG3hu4Mn5SYnhTfkxq5jhzQ06Pmh9UoYDjgXcrWKN1XuVXQFEm3eWQtYacO1CHmFPMPIocRwPPsnICVzHw8Ri47wISpJblGBmublPrHxUupZDR9jfu9gdO8Q-1ZVBg_d0vrGGIa7Q8Q0Vx-yZIXnSXNaDc7BYV8ig9Lbmr2gJ6z0XTIEBXXwZ3mzA-8tjzWfLyXW0i1fbdJIku5tNtIgfDAfq4p5tF2NMb-NkvksfbyKI3zDBMsW-RCVJ7pa79U0aL-OnCJAm0yS6ilaAtq6_gHC7jXZJvLqONhBZSeiNIe6fQdGq-xvkv_4ezdItRBYig8NypnDkJ6h4YzUaVkKUna3zWVpKoSz2qpvsQmodrV3_NX9M4ukfmV2e4pnt0xljsfgE5GtQabRZxqvF-lO4_4Kkk81VlG536Xrogr6B6MN4BLXaxNvZXdeu77uea_Qim2fVCRYUVuv2g0bvD5lGRVaDxkuJtERKip8gEziBxbDDLEOnDJwgMzXXgoUg6XdzAIT9YVx8NhcQDAaEzLYR4ccJMKj-LPUu_vyyTo38wQoNS65U22lw4bmBT8xD6BAvcEde7jI_KMuixLQIxh7xWUD9bI8DU2Q5E6qjCaXoqXVwuWCAToGuyUOKKcUuCbCPsUPtsqR5QXK8J7jw84waLmbHjAu742LLpjKbsKeVt5UCp-BKq9_OTCle1ayvTIeftfogm_BpNuV1ZfYJhD37X0EEcUI">