[Llvm-bgq-discuss] compiler error when building MPICH

Hal Finkel hfinkel at anl.gov
Tue Oct 4 14:11:25 CDT 2016


----- Original Message -----
> From: "Hal Finkel" <hfinkel at anl.gov>
> To: "Rob Latham" <robl at mcs.anl.gov>
> Cc: "llvm-bgq-discuss" <llvm-bgq-discuss at alcf.anl.gov>
> Sent: Tuesday, October 4, 2016 2:07:50 PM
> Subject: Re: [Llvm-bgq-discuss] compiler error when building MPICH
> 
> Hi Rob,
> 
> Thanks for reporting; I'll try to track this down. I suspect you'll
> find it is non-deterministic, just try building again and you won't
> see this. Please let me know.

Also, if you can reproduce with reasonable reliability, please let me know exactly how you're building (and how many parallel build processes you're using).

 -Hal

> 
>  -Hal
> 
> ----- Original Message -----
> > From: "Rob Latham" <robl at mcs.anl.gov>
> > To: "llvm-bgq-discuss" <llvm-bgq-discuss at alcf.anl.gov>
> > Sent: Tuesday, October 4, 2016 1:46:08 PM
> > Subject: [Llvm-bgq-discuss] compiler error when building MPICH
> > 
> > this one's weird because I built mpich, then did a 'make clean all'
> > and
> > got this error.  Hope it's helpful.
> > 
> > 
> > 
> > clang-3.9:
> > /home/hfinkel/rpmbuild/BUILD/llvm/include/llvm/ADT/DenseMap.h:334:
> > void
> > llvm::DenseMapBase<llvm::DenseMap<(anonymous
> > namespace)::SimpleValue,
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *, llvm::DenseMapInfo<(anonymous namespace)::SimpleValue>,
> > llvm::detail::DenseMapPair<(anonymous namespace)::SimpleValue,
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *> >, (anonymous namespace)::SimpleValue,
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *, llvm::DenseMapInfo<(anonymous namespace)::SimpleValue>,
> > llvm::detail::DenseMapPair<(anonymous namespace)::SimpleValue,
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *> >::moveFromOldBuckets(BucketT *, BucketT *) [DerivedT =
> > llvm::DenseMap<(anonymous namespace)::SimpleValue,
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *, llvm::DenseMapInfo<(anonymous namespace)::SimpleValue>,
> > llvm::detail::DenseMapPair<(anonymous namespace)::SimpleValue,
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *> >, KeyT = (anonymous namespace)::SimpleValue, ValueT =
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *, KeyInfoT = llvm::DenseMapInfo<(anonymous
> > namespace)::SimpleValue>,
> > BucketT = llvm::detail::DenseMapPair<(anonymous
> > namespace)::SimpleValue,
> > llvm::ScopedHashTableVal<(anonymous namespace)::SimpleValue,
> > llvm::Value
> > *> *>]: Assertion `!FoundVal && "Key already in new map?"' failed.
> > 0  clang-3.9 0x00000000119c70f4
> > llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 4237905652
> > 1  clang-3.9 0x00000000119c7594
> > 2  clang-3.9 0x00000000119c4ba8 llvm::sys::RunSignalHandlers() +
> > 4237896296
> > 3  clang-3.9 0x00000000119c7ca0
> > 4            0x00000fff842f0448 __kernel_sigtramp_rt64 + 0
> > 5  libc.so.6 0x00000fff83c46e88 abort + 4293479736
> > 6  libc.so.6 0x00000fff83c3b90c
> > 7  libc.so.6 0x00000fff83c3ba24 __assert_fail + 4293437364
> > 8  clang-3.9 0x00000000117f8b74
> > 9  clang-3.9 0x00000000117f6510
> > 10 clang-3.9 0x00000000117f4468
> > 11 clang-3.9 0x00000000117f1a20
> > 12 clang-3.9 0x00000000117f2678
> > 13 clang-3.9 0x0000000011562634
> > llvm::FPPassManager::runOnFunction(llvm::Function&) + 4233444436
> > 14 clang-3.9 0x0000000011562a0c
> > llvm::FPPassManager::runOnModule(llvm::Module&) + 4233445372
> > 15 clang-3.9 0x000000001156317c
> > llvm::legacy::PassManagerImpl::run(llvm::Module&) + 4233447204
> > 16 clang-3.9 0x0000000011563a54
> > llvm::legacy::PassManager::run(llvm::Module&) + 4233449324
> > 17 clang-3.9 0x0000000011b4fc2c
> > 18 clang-3.9 0x0000000011b4c8d8
> > clang::EmitBackendOutput(clang::DiagnosticsEngine&,
> > clang::CodeGenOptions const&, clang::TargetOptions const&,
> > clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*,
> > clang::BackendAction, llvm::raw_pwrite_stream*) + 4239464992
> > 19 clang-3.9 0x0000000012355d10
> > 20 clang-3.9 0x0000000012888ae0 clang::ParseAST(clang::Sema&, bool,
> > bool) + 4253058888
> > 21 clang-3.9 0x0000000011f69d24
> > clang::ASTFrontendAction::ExecuteAction() + 4243671204
> > 22 clang-3.9 0x0000000012354620
> > clang::CodeGenAction::ExecuteAction()
> > +
> > 4247694224
> > 23 clang-3.9 0x0000000011f69374 clang::FrontendAction::Execute() +
> > 4243668796
> > 24 clang-3.9 0x0000000011f1c770
> > clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) +
> > 4243359920
> > 25 clang-3.9 0x00000000120162fc
> > clang::ExecuteCompilerInvocation(clang::CompilerInstance*) +
> > 4244358948
> > 26 clang-3.9 0x0000000010376b2c cc1_main(llvm::ArrayRef<char
> > const*>,
> > char const*, void*) + 4215127572
> > 27 clang-3.9 0x0000000010373f94 main + 4215116916
> > 28 libc.so.6 0x00000fff83c2c0c8
> > 29 libc.so.6 0x00000fff83c2c2c0 __libc_start_main + 4293375440
> > 
> > 
> > Stack dump:
> > 0.      Program arguments:
> > /soft/compilers/bgclang/r266865-stable/bin/clang-3.9 -cc1 -triple
> > powerpc64-bgq-linux -emit-obj -disable-free -main-file-name
> > red_scat.c
> > -mrelocation-model pic -pic-level 2 -mthread-model posix
> > -fveclib=SLEEF
> > -mdisable-fp-elim -ffp-contract=fast -masm-verbose
> > -mconstructor-aliases
> > -fuse-init-array -target-cpu a2q -mfloat-abi hard -target-abi
> > elfv1-qpx
> > -dwarf-column-info -debugger-tuning=gdb -coverage-file
> > /tmp/robl/mpich-bgq/src/mpi/coll/.libs/lib_libmpi_la-red_scat.o
> > -resource-dir
> > /soft/compilers/bgclang/r266865-stable/bin/../lib/clang/3.9.0
> > -dependency-file src/mpi/coll/.deps/lib_libmpi_la-red_scat.Tpo
> > -sys-header-deps -MP -MT src/mpi/coll/lib_libmpi_la-red_scat.lo -I
> > /soft/compilers/bgclang/r266865-stable/sleef/include -D
> > __bgclang__=1
> > -D
> > __bgclang_version__="r266865-stable" -D HAVE_CONFIG_H -I . -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich -I ./src/include -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/include -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpi/datatype -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpi/spawn -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/util/logging/common
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/util/mem -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/util/nodemap -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/util/wrappers -I
> > ./src/util/wrappers -I ./src/binding/cxx -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/binding/fortran/mpif_h
> > -I src/binding/fortran/use_mpi -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/include -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/ch3/include
> > -I
> > ./src/mpid/ch3/include -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/ch3/channels/nemesis/include
> > -I ./src/mpid/ch3/channels/nemesis/include -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/ch3/channels/nemesis/utils/monitor
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/common/datatype
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/common/datatype
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/common/sched
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/common/thread
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/common/timers
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpid/common/shm
> > -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/pmi/simple -I
> > /bgsys/drivers/ppcfloor -I
> > /bgsys/drivers/ppcfloor/spi/include/kernel/cnk -I
> > /tmp/robl/mpich-bgq/src/mpl/include -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpl/include -I
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/openpa/src -I
> > /tmp/robl/mpich-bgq/src/openpa/src -D _REENTRANT -I
> > /tmp/robl/mpich-bgq/src/mpi/romio/include -D PIC -internal-isystem
> > /soft/compilers/bgclang/r266865-stable/bin/../lib/clang/3.9.0/include
> > -O3 -fdebug-compilation-dir /tmp/robl/mpich-bgq -ferror-limit 19
> > -fmessage-length 80 -fno-signed-char -fobjc-runtime=gcc
> > -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
> > -vectorize-slp -isystem
> > /soft/compilers/bgclang/r266865-stable/c11threads -isystem
> > /soft/compilers/bgclang/r266865-stable/ppcfloor-fixup -isystem
> > /soft/compilers/bgclang/r266865-stable/ppcfloor-fixup/spi/include
> > -isystem /bgsys/drivers/V1R2M4/ppc64/comm/gcc/include -isystem
> > /bgsys/drivers/V1R2M4/ppc64/comm/lib/gnu -isystem
> > /bgsys/drivers/V1R2M4/ppc64 -isystem
> > /bgsys/drivers/V1R2M4/ppc64/comm/sys/include -isystem
> > /bgsys/drivers/V1R2M4/ppc64/spi/include -isystem
> > /bgsys/drivers/V1R2M4/ppc64/spi/include/kernel/cnk -isystem
> > /bgsys/drivers/V1R2M4/ppc64/gnu-linux-4.7.2/powerpc64-bgq-linux/sys-include
> > -o src/mpi/coll/.libs/lib_libmpi_la-red_scat.o -x c
> > /home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpi/coll/red_scat.c
> > 1.      <eof> parser at end of file
> > 2.      Code generation
> > 3.      Running pass 'Function Pass Manager' on module
> > '/home/pkcoff/bgqofi/project/ofi-bgq/mpi/mpich/src/mpi/coll/red_scat.c'.
> > 4.      Running pass 'Early CSE' on function
> > '@MPIR_Reduce_scatter_intra'
> > clang-3.9: error: unable to execute command: Aborted (core dumped)
> > clang-3.9: error: clang frontend command failed due to signal (use
> > -v
> > to
> > see invocation)
> > bgclang r266865-stable clang version 3.9.0  (based on LLVM
> > 3.9.0svn)
> > Target: powerpc64-bgq-linux
> > Thread model: posix
> > InstalledDir: /soft/compilers/bgclang/r266865-stable/bin
> > clang-3.9: 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-3.9: note: diagnostic msg:
> > 
> > PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
> > Preprocessed source(s) and associated run script(s) are located at:
> > clang-3.9: note: diagnostic msg: /tmp/red_scat-4dd32f.c
> > clang-3.9: note: diagnostic msg: /tmp/red_scat-4dd32f.sh
> > clang-3.9: note: diagnostic msg:
> > 
> > 
> > _______________________________________________
> > 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
> Lead, Compiler Technology and Programming Languages
> Leadership Computing Facility
> Argonne National Laboratory
> _______________________________________________
> 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
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list