[Llvm-bgq-discuss] LLVM explodes on GSL-1.9

Hal Finkel hfinkel at anl.gov
Mon Aug 5 21:09:32 CDT 2013


Jeff,

This looks very much like a bug that was just fixed upstream. I'll try to get everything rebased tomorrow. Then we should try again.

 -Hal

Sent from my Verizon Wireless 4G LTE DROID

Jeff Hammond <jhammond at alcf.anl.gov> wrote:

>It compiles fine with GCC and XLC...
>
>Jeff
>
>make[2]: Entering directory `/gpfs/vesta-home/jhammond/GSL/build-llvm/ieee-utils'
>/bin/sh ../libtool --tag=CC --mode=compile bgclang -DHAVE_CONFIG_H -I. -I../../gsl-1.9/ieee-utils -I.. -I..    -g -O2 -c -o read.lo ../../gsl-1.9/ieee-utils/read.c
> bgclang -DHAVE_CONFIG_H -I. -I../../gsl-1.9/ieee-utils -I.. -I.. -g -O2 -c ../../gsl-1.9/ieee-utils/read.c -o read.o
>PHI node has multiple entries for the same basic block with different incoming values!
>  %indvar = phi i64 [ 0, %if.then5 ], [ %indvar.next, %do.body6 ], [ %indvar.next99, %do.body6 ]
>label %do.body6
>  %indvar.next = add i64 %indvar, 1, !dbg !240
>  %indvar.next99 = add i64 %indvar, 1, !dbg !240
>Broken module found, compilation aborted!
>0  clang     0x000000001237e81c llvm::sys::PrintStackTrace(_IO_FILE*) + 4280248588
>1  clang     0x000000001237ea80
>2  clang     0x000000001237f924
>3            0x00000fff7d660418 __kernel_sigtramp_rt64 + 0
>4  libc.so.6 0x0000008050136ed8 abort + 4293479816
>5  clang     0x000000001232e018
>6  clang     0x0000000012300448 llvm::FPPassManager::runOnFunction(llvm::Function&) + 4279751752
>7  clang     0x000000001230058c llvm::FPPassManager::runOnModule(llvm::Module&) + 4279752060
>8  clang     0x00000000122ffd4c llvm::MPPassManager::runOnModule(llvm::Module&) + 4279750012
>9  clang     0x0000000012300074 llvm::PassManagerImpl::run(llvm::Module&) + 4279750804
>10 clang     0x0000000012300184 llvm::PassManager::run(llvm::Module&) + 4279751060
>11 clang     0x00000000104b26a4 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4248759948
>12 clang     0x00000000104af434
>13 clang     0x0000000010678790 clang::ParseAST(clang::Sema&, bool, bool) + 4250576552
>14 clang     0x00000000102fa920 clang::ASTFrontendAction::ExecuteAction() + 4247006472
>15 clang     0x00000000104ada90 clang::CodeGenAction::ExecuteAction() + 4248740920
>16 clang     0x00000000102fad74 clang::FrontendAction::Execute() + 4247007516
>17 clang     0x00000000102d49b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 4246852652
>18 clang     0x00000000102b62a0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4246733880
>19 clang     0x00000000102ab6f8 cc1_main(char const**, char const**, char const*, void*) + 4246690400
>20 clang     0x00000000102b3a00 main + 4246723512
>21 libc.so.6 0x000000805011bcd8
>22 libc.so.6 0x000000805011bed0 __libc_start_main + 4293374464
>Stack dump:
>0.	Program arguments: /gpfs/vesta-home/projects/llvm/r186563-20130718/bin/clang -cc1 -triple powerpc64-bgq-linux -S -disable-free -main-file-name read.c -static-define -mrelocation-model static -mdisable-fp-elim -fmath-errno -ffp-contract=fast -mconstructor-aliases -target-cpu a2q -target-linker-version 2.20.51.0.2 -g -coverage-file /tmp/read-0568f0.s -resource-dir /gpfs/vesta-home/projects/llvm/r186563-20130718/bin/../lib/clang/3.4 -D HAVE_CONFIG_H -I . -I ../../gsl-1.9/ieee-utils -I .. -I .. -internal-isystem /usr/local/include -internal-isystem /gpfs/vesta-home/projects/llvm/r186563-20130718/bin/../lib/clang/3.4/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fno-dwarf-directory-asm -fdebug-compilation-dir /home/jhammond/GSL/build-llvm/ieee-utils -ferror-limit 19 -fmessage-length 185 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -isystem /bgsys/drivers/V1R2M0/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include -mllvm -enable-misched -mllvm -enable-aa-sched-mi -mllvm -optimize-regalloc -o /tmp/read-0568f0.s -x c ../../gsl-1.9/ieee-utils/read.c 
>1.	<eof> parser at end of file
>2.	Code generation
>3.	Running pass 'Function Pass Manager' on module '../../gsl-1.9/ieee-utils/read.c'.
>4.	Running pass 'Module Verifier' on function '@gsl_ieee_read_mode_string'
>clang: error: unable to execute command: Aborted (core dumped)
>clang: error: clang frontend command failed due to signal (use -v to see invocation)
>clang version 3.4 (login1.mcs.anl.gov:src/llvm-trunk/tools/clang 43fcaf395fe2ab260ebd838ef19c58bbb69b5889) (login1.mcs.anl.gov:src/llvm-trunk 569be27fc56ad8f617673d0517d0991366dafff5)
>Target: powerpc64-bgq-linux
>Thread model: posix
>clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
>clang: note: diagnostic msg: 
>********************
>
>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>Preprocessed source(s) and associated run script(s) are located at:
>clang: note: diagnostic msg: /tmp/read-9be9ad.c
>clang: note: diagnostic msg: /tmp/read-9be9ad.sh
>clang: note: diagnostic msg: 
>
>********************
>make[2]: *** [read.lo] Error 1
>make[2]: Leaving directory `/gpfs/vesta-home/jhammond/GSL/build-llvm/ieee-utils'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/gpfs/vesta-home/jhammond/GSL/build-llvm'
>make: *** [all] Error 2
>
>-- 
>Jeff Hammond
>Argonne Leadership Computing Facility
>University of Chicago Computation Institute
>jhammond at alcf.anl.gov / (630) 252-5381
>http://www.linkedin.com/in/jeffhammond
>https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond
>ALCF docs: http://www.alcf.anl.gov/user-guides
>
>_______________________________________________
>llvm-bgq-discuss mailing list
>llvm-bgq-discuss at lists.alcf.anl.gov
>https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20130805/2aa4fb21/attachment.html>


More information about the llvm-bgq-discuss mailing list