<div><div>Jeff,</div><div><br/></div><div>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.</div><div><br/></div><div> -Hal</div><div><br/></div><div><font style="color:#333333"><i>Sent from my Verizon Wireless 4G LTE DROID</i></font></div></div><br><br>Jeff Hammond <jhammond@alcf.anl.gov> wrote:<br><br>It compiles fine with GCC and XLC...<br><br>Jeff<br><br>make[2]: Entering directory `/gpfs/vesta-home/jhammond/GSL/build-llvm/ieee-utils'<br>/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<br> 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<br>PHI node has multiple entries for the same basic block with different incoming values!<br>  %indvar = phi i64 [ 0, %if.then5 ], [ %indvar.next, %do.body6 ], [ %indvar.next99, %do.body6 ]<br>label %do.body6<br>  %indvar.next = add i64 %indvar, 1, !dbg !240<br>  %indvar.next99 = add i64 %indvar, 1, !dbg !240<br>Broken module found, compilation aborted!<br>0  clang     0x000000001237e81c llvm::sys::PrintStackTrace(_IO_FILE*) + 4280248588<br>1  clang     0x000000001237ea80<br>2  clang     0x000000001237f924<br>3            0x00000fff7d660418 __kernel_sigtramp_rt64 + 0<br>4  libc.so.6 0x0000008050136ed8 abort + 4293479816<br>5  clang     0x000000001232e018<br>6  clang     0x0000000012300448 llvm::FPPassManager::runOnFunction(llvm::Function&) + 4279751752<br>7  clang     0x000000001230058c llvm::FPPassManager::runOnModule(llvm::Module&) + 4279752060<br>8  clang     0x00000000122ffd4c llvm::MPPassManager::runOnModule(llvm::Module&) + 4279750012<br>9  clang     0x0000000012300074 llvm::PassManagerImpl::run(llvm::Module&) + 4279750804<br>10 clang     0x0000000012300184 llvm::PassManager::run(llvm::Module&) + 4279751060<br>11 clang     0x00000000104b26a4 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4248759948<br>12 clang     0x00000000104af434<br>13 clang     0x0000000010678790 clang::ParseAST(clang::Sema&, bool, bool) + 4250576552<br>14 clang     0x00000000102fa920 clang::ASTFrontendAction::ExecuteAction() + 4247006472<br>15 clang     0x00000000104ada90 clang::CodeGenAction::ExecuteAction() + 4248740920<br>16 clang     0x00000000102fad74 clang::FrontendAction::Execute() + 4247007516<br>17 clang     0x00000000102d49b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 4246852652<br>18 clang     0x00000000102b62a0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4246733880<br>19 clang     0x00000000102ab6f8 cc1_main(char const**, char const**, char const*, void*) + 4246690400<br>20 clang     0x00000000102b3a00 main + 4246723512<br>21 libc.so.6 0x000000805011bcd8<br>22 libc.so.6 0x000000805011bed0 __libc_start_main + 4293374464<br>Stack dump:<br>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 <br>1.     <eof> parser at end of file<br>2.   Code generation<br>3.     Running pass 'Function Pass Manager' on module '../../gsl-1.9/ieee-utils/read.c'.<br>4.   Running pass 'Module Verifier' on function '@gsl_ieee_read_mode_string'<br>clang: error: unable to execute command: Aborted (core dumped)<br>clang: error: clang frontend command failed due to signal (use -v to see invocation)<br>clang version 3.4 (login1.mcs.anl.gov:src/llvm-trunk/tools/clang 43fcaf395fe2ab260ebd838ef19c58bbb69b5889) (login1.mcs.anl.gov:src/llvm-trunk 569be27fc56ad8f617673d0517d0991366dafff5)<br>Target: powerpc64-bgq-linux<br>Thread model: posix<br>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.<br>clang: note: diagnostic msg: <br>********************<br><br>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:<br>Preprocessed source(s) and associated run script(s) are located at:<br>clang: note: diagnostic msg: /tmp/read-9be9ad.c<br>clang: note: diagnostic msg: /tmp/read-9be9ad.sh<br>clang: note: diagnostic msg: <br><br>********************<br>make[2]: *** [read.lo] Error 1<br>make[2]: Leaving directory `/gpfs/vesta-home/jhammond/GSL/build-llvm/ieee-utils'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/gpfs/vesta-home/jhammond/GSL/build-llvm'<br>make: *** [all] Error 2<br><br>-- <br>Jeff Hammond<br>Argonne Leadership Computing Facility<br>University of Chicago Computation Institute<br>jhammond@alcf.anl.gov / (630) 252-5381<br>http://www.linkedin.com/in/jeffhammond<br>https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond<br>ALCF docs: http://www.alcf.anl.gov/user-guides<br><br>_______________________________________________<br>llvm-bgq-discuss mailing list<br>llvm-bgq-discuss@lists.alcf.anl.gov<br>https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss<br>