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

    <tr>
        <th>Summary</th>
        <td>
            [Rust] buildllvm.sh called in setupRustEnv gets compiling time error
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```
/xl_le/compgpfs/build/xlcmpbld/run/openxlC/17.1.1_product/aix/solution/17.1.1.0/bin/ibm-clang++_r -DENABLE_WYVERN_IP -DGTEST_HAS_RTTI=0 -D_DEBUG -D_LARGE_FILE_API -D_XOPEN_SOURCE=700 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/czhengsz/rust_dev/rust/aix-rust-llvm/build/lib/Target/Hexagon -I/home/czhengsz/rust_dev/rust/aix-rust-llvm/llvm-project/llvm/lib/Target/Hexagon -I/home/czhengsz/rust_dev/rust/aix-rust-llvm/build/include -I/home/czhengsz/rust_dev/rust/aix-rust-llvm/llvm-project/llvm/include -isystem /usr/opt/zlibNX/include -mcmodel=large -fPIC -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -UNDEBUG -std=c++14 -MD -MT lib/Target/Hexagon/CMakeFiles/LLVMHexagonCodeGen.dir/HexagonVectorCombine.cpp.o -c /home/czhengsz/rust_dev/rust/aix-rust-llvm/llvm-project/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
/home/czhengsz/rust_dev/rust/aix-rust-llvm/llvm-project/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp:198:7: error: definition of implicit copy assignment operator for 'Block' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
      Block(const Block &Blk) = default;
 ^
/compgpfs/build/xlcmpbld/run/openxlC/17.1.1_product/aix/solution/220823.60/opt/IBM/openxlC/17.1.1/bin/../include/c++/v1/__algorithm/move.h:33:15: note: in implicit copy assignment operator for '(anonymous namespace)::AlignVectors::ByteSpan::Block' first required here
 *__result = std::move(*__first);
```

wyvern_dev met this issue too, it fixed upstream https://github.com/llvm/llvm-project/commit/252cea037bcad6e1e7236756bcbb4e4ed73e328d . But the fix was not cherry-picked to v1711p, so i guess there is some build difference between the build of LLVM v1711p branch and rust.v1711p branch. We need to make this right.

OS:
```
$oslevel -s
7200-05-05-2246
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVltv47gV_jXMC0FBpnx98INtWbMGchkknsn2SaDII4kNRWpJyonn1xek7CS7HRRtMWgNQ6TO5eO5i8w52WiANZpt0Sy_YYNvjV3zFvSPFnQzSbP0pjLivEbz9PJPc5RuEC3eVKkA0YKbrm_62iFaVINUIrJ411dxaweNaGF60G9qh2gxWSSTZFL21oiBe0QLJt8QLZxRg5dGv0skacCTgSCrjnDFdIPoFtFtaTHJ9_eb7e2-fP7b9_3jfXn4ikn-5bh_Opa_bZ7Kx-PxgLI8xSQv8_3225ewud08ftmXxeF2X26-HgLl94ev-_vy6eHb426PsnyRRoXy6Zjvyt3D_dNxc38s7za7x4enD0bx8Hi3-Wfy7eHu8EE9IFq0povRiXF0P2IonC8FnC7b0XcStkSpU_cpfkpWiBZHZhsIYr_BG2uM_u9xw0J6a_4OMeRX6i8-5Wq91FwNAn61ue-w0p2dhw4jWgzOxuoKYj-UrO5__yzY8c4IUCjLVXASk_rrYYfJM1hr7HVFW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