<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/91819>91819</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
offload can't build on i386
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
offload
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
On linux debian sid i386:
```
/build/source/build-llvm/bin/clang++ --target=i386-linux-gnu -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/llvm/include -I/build/source/build-llvm/include -I/build/source/offload/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fdebug-prefix-map=/build/source/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/build/source/= -no-canonical-prefixes -ffile-prefix-map=/build/source/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-exceptions -funwind-tables -fno-exceptions -MD -MT offload/tools/deviceinfo/CMakeFiles/llvm-omp-device-info.dir/llvm-omp-device-info.cpp.o -MF offload/tools/deviceinfo/CMakeFiles/llvm-omp-device-info.dir/llvm-omp-device-info.cpp.o.d -o offload/tools/deviceinfo/CMakeFiles/llvm-omp-device-info.dir/llvm-omp-device-info.cpp.o -c /build/source/offload/tools/deviceinfo/llvm-omp-device-info.cpp
In file included from /build/source/offload/tools/deviceinfo/llvm-omp-device-info.cpp:14:
In file included from /build/source/offload/include/omptarget.h:17:
/build/source/offload/include/Shared/APITypes.h:111:15: error: static assertion failed due to requirement 'sizeof(KernelArgsTy) == (8 * sizeof(int) + 3 * sizeof(long long) + 4 * sizeof(void **) + 2 * sizeof(long long *))': Invalid struct size
111 | static_assert(sizeof(KernelArgsTy) ==
| ^~~~~~~~~~~~~~~~~~~~~~~
112 | (8 * sizeof(int32_t) + 3 * sizeof(int64_t) +
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113 | 4 * sizeof(void **) + 2 * sizeof(int64_t *)),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/source/offload/include/Shared/APITypes.h:111:36: note: expression evaluates to '76 == 80'
111 | static_assert(sizeof(KernelArgsTy) ==
| ~~~~~~~~~~~~~~~~~~~~~^~
112 | (8 * sizeof(int32_t) + 3 * sizeof(int64_t) +
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113 | 4 * sizeof(void **) + 2 * sizeof(int64_t *)),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsV19z4jgS_zTiRSXKliHAAw8Ehy3qJsNWwhZ1T5RstU3fypJXf5iwD_fZr2STkOyQyezd7D2tymVw__11u9VtCeew1gBzMr4l43wggj8YO3cndQTnLQwKI0_zjaYKdXiiEgoUmjqUFLPpDckWJMlJsiA3yfnqH_mqCKgk4Stngi3hmcCUOjbxATXhq1IJXRN-S_gtZcwLW4MnWR4ts84fq3WgLN-v1p_u9pvV6vFuu79dbx9Jlt-MIuPT4uGnu477uPnlYXkXafvHbb7cLzefH7eLz9v9_W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