Public bug reported: I got the following backtrace when trying to build llvm: [695/2855] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o FAILED: /usr/bin/clang++-3.5 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Ilib/Analysis -I../lib/Analysis -Iinclude -I../include -fno-exceptions -fno-rtti -MMD -MT lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o -MF lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o.d -o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o -c ../lib/Analysis/LazyCallGraph.cpp 0 libLLVM-3.5.so.1 0x00007f37b0c8ccd2 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 libLLVM-3.5.so.1 0x00007f37b0c8cac4 2 libpthread.so.0 0x00007f37af956340 3 clang 0x00000000010acaee 4 libLLVM-3.5.so.1 0x00007f37b0c788e5 llvm::FoldingSetImpl::FindNodeOrInsertPos(llvm::FoldingSetNodeID const&, void*&) + 165 5 clang 0x00000000010bea19 clang::ASTContext::getConstantArrayType(clang::QualType, llvm::APInt const&, clang::ArrayType::ArraySizeModifier, unsigned int) const + 345 6 clang 0x00000000010beb15 clang::ASTContext::getConstantArrayType(clang::QualType, llvm::APInt const&, clang::ArrayType::ArraySizeModifier, unsigned int) const + 597 7 clang 0x0000000000b535e1 clang::Sema::BuildPredefinedExpr(clang::SourceLocation, clang::PredefinedExpr::IdentType) + 337 8 clang 0x0000000000ce6230 9 clang 0x0000000000ce72b2 10 clang 0x0000000000ce6b01 11 clang 0x0000000000cec564 12 clang 0x0000000000ce62d5 13 clang 0x0000000000ce68ef 14 clang 0x0000000000ce60d5 15 clang 0x0000000000cee215 16 clang 0x0000000000ce624a 17 clang 0x0000000000cf4b15 18 clang 0x0000000000cf5563 19 clang 0x0000000000cf569b 20 clang 0x0000000000cf4b55 21 clang 0x0000000000cf824f clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) + 79 22 clang 0x0000000000d0cd8d clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1773 23 clang 0x0000000000d0c338 clang::Sema::PerformPendingInstantiations(bool) + 232 24 clang 0x0000000000d0cf26 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 2182 25 clang 0x0000000000d0c338 clang::Sema::PerformPendingInstantiations(bool) + 232 26 clang 0x0000000000a3e771 clang::Sema::ActOnEndOfTranslationUnit() + 529 27 clang 0x00000000009af6db clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 267 28 clang 0x00000000009a951b clang::ParseAST(clang::Sema&, bool, bool) + 283 29 clang 0x000000000082e842 clang::CodeGenAction::ExecuteAction() + 50 30 clang 0x00000000006c2d06 clang::FrontendAction::Execute() + 118 31 clang 0x00000000006a2e70 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
+ 256 32 clang 0x000000000068dfa4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1892 33 clang 0x0000000000689118 cc1_main(char const**, char const**, char const*, void*) + 1288 34 clang 0x0000000000687a5f main + 8527 35 libc.so.6 0x00007f37af088ec5 __libc_start_main + 245 36 clang 0x0000000000687fc4 Stack dump: 0. Program arguments: /usr/lib/llvm-3.5/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name LazyCallGraph.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.24 -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file /home/prajjwal/hd/llvm/llvm/build/lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o -resource-dir /usr/lib/llvm-3.5/bin/../lib/clang/3.5.0 -dependency-file lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o.d -MT lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o -D GTEST_HAS_RTTI=0 -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I lib/Analysis -I ../lib/Analysis -I include -I ../include -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isys tem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.5/bin/../lib/clang/3.5.0/include -internal-externc-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -pedantic -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/prajjwal/hd/llvm/llvm/build -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o -x c++ ../lib/Analysis/LazyCallGraph.cpp 1. <eof> parser at end of file 2. ../include/llvm/ADT/PointerUnion.h:171:25: instantiating function definition 'operator=' 3. ../include/llvm/ADT/PointerIntPair.h:109:8: instantiating function definition 'setPointerAndInt' clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (tags/RELEASE_350/final) (based on LLVM 3.5.0) Target: x86_64-pc-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ 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/LazyCallGraph-dadf64.cpp clang: note: diagnostic msg: /tmp/LazyCallGraph-dadf64.sh clang: note: diagnostic msg: ******************** (will attach files) ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: clang-3.5 1:3.5-4ubuntu2~trusty2 ProcVersionSignature: Ubuntu 3.13.0-44.73-generic 3.13.11-ckt12 Uname: Linux 3.13.0-44-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.11 Architecture: amd64 Date: Sat May 30 15:18:26 2015 InstallationDate: Installed on 2014-03-18 (438 days ago) InstallationMedia: Ubuntu 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204) ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: llvm-toolchain-snapshot UpgradeStatus: Upgraded to trusty on 2014-08-30 (273 days ago) ** Affects: llvm-toolchain-snapshot (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug trusty ** Attachment added: "LazyCallGraph-dadf64.cpp" https://bugs.launchpad.net/bugs/1460333/+attachment/4407163/+files/LazyCallGraph-dadf64.cpp -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1460333 Title: llvm build crashes with instructions to submit bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/1460333/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs