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

    <tr>
        <th>Summary</th>
        <td>
            OpenMP on i386 fails to build with `pointer size is incompatible with host 'i386-unknown-linux-gnu'`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp
      </td>
    </tr>

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

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

<pre>
    It started to fail recently

```

[2045/2626] cd "/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/build-llvm/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL" && "/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/build-llvm/bin/clang" -c -emit-llvm -std=c++17 -fvisibility=hidden -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512 --offload-device-only -nocudalib -nogpulib -nostdinc -fopenmp -fopenmp-cuda-mode "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/openmp/libomptarget/DeviceRTL/include" "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/openmp/libomptarget/DeviceRTL/../include" "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/llvm/include" "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/build-llvm/include" -DOMPTARGET_DEBUG=0 --offload-arch=sm_35 -fopenmp-targets=nvptx64-nvidia-cuda -DLIBOMPTARGET_BC_TARGET --cuda-feature=+ptx61 "/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/openmp/libomptarget/DeviceRTL/src/Configuration.cpp" -o Configuration.cpp-sm_35.bc
FAILED: openmp/libomptarget/DeviceRTL/Configuration.cpp-sm_35.bc /build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/build-llvm/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/Configuration.cpp-sm_35.bc 
cd "/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/build-llvm/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL" && "/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/build-llvm/bin/clang" -c -emit-llvm -std=c++17 -fvisibility=hidden -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512 --offload-device-only -nocudalib -nogpulib -nostdinc -fopenmp -fopenmp-cuda-mode "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/openmp/libomptarget/DeviceRTL/include" "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/openmp/libomptarget/DeviceRTL/../include" "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/llvm/include" "-I/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/build-llvm/include" -DOMPTARGET_DEBUG=0 --offload-arch=sm_35 -fopenmp-targets=nvptx64-nvidia-cuda -DLIBOMPTARGET_BC_TARGET --cuda-feature=+ptx61 "/build/llvm-toolchain-snapshot-15~++20220724100748+9e88cbcc403b/openmp/libomptarget/DeviceRTL/src/Configuration.cpp" -o Configuration.cpp-sm_35.bc
error: OpenMP target architecture 'nvptx64-nvidia-cuda' pointer size is incompatible with host 'i386-unknown-linux-gnu'
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztV01v5CgQ_TXuC6Ll77YPPnTHnZmWMkqUyVzmEmHANrsYLMA90_vrt7A7k8zXKodEu9JGQjYU5tXjVVHCjWan6uCQdcQ4zpDTqCVCIsMpV06egrAOwu35mYfn9tSY7eIwzYL4Ms7jPMhqRBkK4hgMzSQkg7eUxwE7rSXtiVDYKjLaXjscZcFmH8Q7aHEYx-EmTqMw3KQFGEpeFLShNA2T5gEKeyAYmEk5MXD7pIsbofxYj1wNo_cpGj2MsKmOOxjW_Cgov727AmbALof2yiSBED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