[Llvm-bgq-discuss] Compiling NAMD with bgclang crashes the compiler

Phil Miller mille121 at illinois.edu
Wed May 14 12:46:01 CDT 2014


I'm trying to compile NAMD using bgclang, and have encountered compiler
crashes on three of its source files. These crashes are each distinct, and
so may provide an interesting looks at lingering bugs in the compiler port.

A summary of the reports is as follows
======
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'src/Output.C'.
4.      Running pass 'Machine Loop Invariant Code Motion' on function
'@_ZNK7Lattice18wrap_nearest_deltaE6Vector'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
======
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module
'src/msm_longrng_sprec.c'.
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
======
Instruction does not dominate all uses!
  %332 = insertelement <4 x float> undef, float %sub183, i32 0, !dbg !21275
  %329 = insertelement <4 x float> %332, float %328, i32 1, !dbg !21275
Instruction does not dominate all uses!
  %539 = insertelement <4 x float> undef, float %sub445, i32 0, !dbg !21307
  %536 = insertelement <4 x float> %539, float %535, i32 1, !dbg !21307
Instruction does not dominate all uses!
  %586 = insertelement <4 x float> undef, float %sub518, i32 0, !dbg !21316
  %583 = insertelement <4 x float> %586, float %582, i32 1, !dbg !21316
fatal error: error in backend: Broken function found, compilation aborted!
clang: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
======

Full details, including pre-processed source and the compilation transcript
with the diagnostic output can be found at
vesta:/home/phil/bgclang-namd-crash.tar

When I drop '-O3' from the compilation commands, all three files compile
without any reported error. Whether they're compiled correctly or not is
undetermined (due to other missing xlc/gcc features that NAMD uses, which
I'll email about separately).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20140514/98622338/attachment.html>


More information about the llvm-bgq-discuss mailing list