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

Hal Finkel hfinkel at anl.gov
Wed May 14 17:10:33 CDT 2014


Hi Phil,

Thanks for the report. I need to finish a rebase soon, so hopefully that will fix these problems. In the mean time, try adding -fno-slp-vectorize (or -fno-vectorize if turning off the SLP vectorizer does not do it).

 -Hal

----- Original Message -----
> From: "Phil Miller" <mille121 at illinois.edu>
> To: llvm-bgq-discuss at lists.alcf.anl.gov
> Sent: Wednesday, May 14, 2014 12:46:01 PM
> Subject: [Llvm-bgq-discuss] Compiling NAMD with bgclang crashes the compiler
> 
> 
> 
> 
> 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).
> 
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list