<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56486>56486</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
libomptarget fails to build with `static_assert failed due to requirement 'sizeof(__tgt_kernel_arguments) == 64': Invalid struct size`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
openmp,
build-problem
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
On Linux debian unstable on i386
```
"/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/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 -Domptarget_EXPORTS -I"/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/llvm/include" -I"/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/build-llvm/include" -I"/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/openmp/libomptarget/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 -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/build-llvm/runtimes/runtimes-bins=build-llvm/runtimes/runtimes-bins -ffile-prefix-map=/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/= -no-canonical-prefixes -Wall -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -std=c++14 -O3 -DNDEBUG -fPIC -MD -MT openmp/libomptarget/src/CMakeFiles/omptarget.dir/interop.cpp.o -MF openmp/libomptarget/src/CMakeFiles/omptarget.dir/interop.cpp.o.d -o openmp/libomptarget/src/CMakeFiles/omptarget.dir/interop.cpp.o -c '/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/openmp/libomptarget/src/interop.cpp'
In file included from /build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/openmp/libomptarget/src/interop.cpp:9:
In file included from /build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/openmp/libomptarget/include/interop.h:12:
/build/llvm-toolchain-snapshot-15~++20220711100721+ce233e714665/openmp/libomptarget/include/omptarget.h:124:1: error: static_assert failed due to requirement 'sizeof(__tgt_kernel_arguments) == 64': Invalid struct size
static_assert(sizeof(__tgt_kernel_arguments) == 64, "Invalid struct size");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFV21v4jgQ_jXwxTIKCYT2Ax8oLyukUlaF1d19QsaeBF8dO-sX2t6v33FCKd3ble6kbrcKgYztmSfPPJ5x90Y8j9ea3EodnoiAvWSaBO082ysgRhOZXeWdZNZJJp08OV3tY3tP00662AepBH4rdayoN0bxA5OaOs1qdzCe9oed0byT3uCVJmmajPr9fpKM0j4aOKRZBqP-IM-HL65odIQPvWiQGu9cMV22HjAkodQzW4LvZLMIkKoIn5Y6EDrbLZa38916sdjMt7ub5XaDk_JBHLid3H-aN6Ob9Zf76TzadpvtbLqbru8228nddreaTO_Xm9eBxfp-Nfm3-Xa5Wl5YTVW3eHbzPz-v77doW747MydOpOYqCGhYeP8gb-j_taFMDbqqoy-5PxP4XdQChcgfaG2NB-6Npc5bo0tC_yiMrZjHH2CtsZji1kAd8GClf8YRbWjQwYGg3FQV0yLKBCjGCRXou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