<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55495>55495</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] no more built as project by gcc
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
jhuber6
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ye-luo
</td>
</tr>
</table>
<pre>
```
[ 0%] Building CXX object projects/openmp/libomptarget/DeviceRTL/CMakeFiles/omptarget.devicertl.dir/src/Reduction.cpp.o
g++: error: unrecognized command line option ‘-fopenmp-cuda-mode’
g++: error: unrecognized command line option ‘-fopenmp-cuda-mode’
g++: error: unrecognized command line option ‘-foffload-lto’; did you mean ‘-foffload-abi=’?
```
broken by 16b7a0b43b386a0cfde65060394d5296345ce9bb
```
cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER \
-DLLVM_ENABLE_BACKTRACES=ON \
-DLLVM_ENABLE_WERROR=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_TARGETS_TO_BUILD="X86;AMDGPU;NVPTX" \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_ENABLE_PROJECTS="clang;openmp" \
-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES="80,61" \
-DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_80 \
-DLIBOMPTARGET_ENABLE_DEBUG=ON \
../llvm-project/llvm
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVVE2PmzAQ_TXkYgV5IRA4cODD2dKSgAhp0xMy2LBuDY74aLX99TWEaNttuj0XWWCYmffeMJ4pBHl2FBMuCwYKdBXDAwAqmqEYAfBGxglra-Cfz0AUX2g5gEsnpmevaDtxoW1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