<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - ICE: OpenMP target containing ordered for"
href="https://bugs.llvm.org/show_bug.cgi?id=33445">33445</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ICE: OpenMP target containing ordered for
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Clang Compiler Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jeff.science@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18633" name="attach_18633" title="requested files plus log of ICE output">attachment 18633</a> <a href="attachment.cgi?id=18633&action=edit" title="requested files plus log of ICE output">[details]</a></span>
requested files plus log of ICE output
I attempted to compile
<a href="https://github.com/ParRes/Kernels/blob/master/Cxx11/p2p-openmp-target.cc">https://github.com/ParRes/Kernels/blob/master/Cxx11/p2p-openmp-target.cc</a> with
Clang 4.0. It fails on both Mac (Sierra) and Linux (Ubuntu 16.04), but I've
reported the Linux instance here.
/opt/llvm/4.0.0/bin/clang++ -std=gnu++11 -g -O3 -mtune=native
-DPRKVERSION="2.16" -DRADIUS=2 -DSTAR -I. -fopenmp -fopenmp
p2p-openmp-target.cc -o p2p-openmp-target
#0 0x000000000173c765 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x173c765)
#1 0x000000000173cdb6 SignalHandler(int)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x173cdb6)
#2 0x00007f34c2793390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#3 0x00000000012f1489 (anonymous namespace)::HoistSpillHelper::hoistAllSpills()
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x12f1489)
#4 0x0000000001347c8a llvm::RegAllocBase::postOptimization()
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x1347c8a)
#5 0x0000000001320a27 (anonymous
namespace)::RAGreedy::runOnMachineFunction(llvm::MachineFunction&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x1320a27)
#6 0x00000000011e4296 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x11e4296)
#7 0x00000000013ee183 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x13ee183)
#8 0x00000000013ee373 llvm::FPPassManager::runOnModule(llvm::Module&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x13ee373)
#9 0x00000000013ee76a llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x13ee76a)
#10 0x000000000188b4d2 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x188b4d2)
#11 0x0000000001e48280
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x1e48280)
#12 0x000000000222c236 clang::ParseAST(clang::Sema&, bool, bool)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x222c236)
#13 0x0000000001bad39f clang::FrontendAction::Execute()
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x1bad39f)
#14 0x0000000001b755a8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x1b755a8)
#15 0x0000000001c26936
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x1c26936)
#16 0x0000000000802b0c cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x802b0c)
#17 0x0000000000801746 main
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x801746)
#18 0x00007f34c1505830 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x20830)
#19 0x00000000007febd9 _start
(/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0+0x7febd9)
Stack dump:
0. Program arguments:
/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang-4.0 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name p2p-openmp-target.cc -mrelocation-model
static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -resource-dir
/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/../lib/clang/4.0.0
-D PRKVERSION=2.16 -D RADIUS=2 -D STAR -I .
-I/opt/intel/compilers_and_libraries_2018.0.082/linux/ipp/include
-I/opt/intel/compilers_and_libraries_2018.0.082/linux/mkl/include
-I/opt/intel/compilers_and_libraries_2018.0.082/linux/pstl/include
-I/opt/intel/compilers_and_libraries_2018.0.082/linux/tbb/include
-I/opt/intel/compilers_and_libraries_2018.0.082/linux/tbb/include
-I/opt/intel/compilers_and_libraries_2018.0.061/linux/daal/include
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward
-internal-isystem /usr/local/include -internal-isystem
/opt/llvm/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/../lib/clang/4.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir
/home/jrhammon/Work/PRK/github-official/Cxx11 -ferror-limit 19 -fmessage-length
128 -fopenmp -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o /tmp/p2p-openmp-target-2f24ad.o -x c++ p2p-openmp-target.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'p2p-openmp-target.cc'.
4. Running pass 'Greedy Register Allocator' on function
'@.omp_outlined..10'
clang-4.0: error: unable to execute command: Segmentation fault (core dumped)
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0 (tags/RELEASE_400/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/llvm/4.0.0/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/p2p-openmp-target-69ab63.cpp
clang-4.0: note: diagnostic msg: /tmp/p2p-openmp-target-69ab63.sh
clang-4.0: note: diagnostic msg:
********************
Makefile:55: recipe for target 'p2p-openmp-target' failed
make: *** [p2p-openmp-target] Error 254</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>