Skip to content

Instantly share code, notes, and snippets.

@eyeplum
Last active May 26, 2016 08:54
Show Gist options
  • Save eyeplum/dfbec9ce6bbd528e43eb7827bef53329 to your computer and use it in GitHub Desktop.
Save eyeplum/dfbec9ce6bbd528e43eb7827bef53329 to your computer and use it in GitHub Desktop.
LLVM crashed when building swift-corelibs-foundation on Ubuntu 14.04
[84/269] CompileC: CoreFoundation/NumberDate.subproj/CFBigNumber.c
FAILED: mkdir -p `dirname ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/CoreFoundation/NumberDate.subproj/CFBigNumber.c.o`; /swift.org/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -fcolor-diagnostics -fdollars-in-identifiers -fblocks -fobjc-runtime=macosx-10.11 -fintegrated-as -fPIC --target=x86_64-linux-gnu -g -O0 -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include -I../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation -I../build/Ninja-DebugAssert/foundation-linux-x86_64 -I../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift -I../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -I../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -I../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -DDEPLOYMENT_TARGET_LINUX -D_GNU_SOURCE -DU_SHOW_DRAFT_API -DCF_BUILDING_CF -DDEPLOYMENT_RUNTIME_SWIFT -fconstant-cfstrings -fexceptions -Wno-shorten-64-to-32 -Wno-deprecated-declarations -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-unused-variable -Wno-int-conversion -Wno-unused-function -I/usr/include/libxml2 -I./ -include CoreFoundation/Base.subproj/CoreFoundation_Prefix.h -c CoreFoundation/NumberDate.subproj/CFBigNumber.c -o ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/CoreFoundation/NumberDate.subproj/CFBigNumber.c.o
0 clang-3.9 0x000000000220aede llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 clang-3.9 0x000000000220b2e9
2 clang-3.9 0x0000000002209bf3 llvm::sys::RunSignalHandlers() + 131
3 clang-3.9 0x000000000220b72f
4 libpthread.so.0 0x00007f0e4d056340
5 clang-3.9 0x000000000219cea1 llvm::MemoryBuffer::init(char const*, char const*, bool) + 49
6 clang-3.9 0x000000000219e55c
7 clang-3.9 0x000000000219dd39
8 clang-3.9 0x000000000219db07 llvm::MemoryBuffer::getOpenFile(int, llvm::Twine const&, unsigned long, bool, bool) + 103
9 clang-3.9 0x00000000023c37d1
10 clang-3.9 0x000000000239fff2 clang::FileManager::getBufferForFile(clang::FileEntry const*, bool, bool) + 242
11 clang-3.9 0x000000000237c681 clang::SrcMgr::ContentCache::getBuffer(clang::DiagnosticsEngine&, clang::SourceManager const&, clang::SourceLocation, bool*) const + 321
12 clang-3.9 0x0000000004901ed2
13 clang-3.9 0x0000000004f03863 clang::Preprocessor::EnterSourceFile(clang::FileID, clang::DirectoryLookup const*, clang::SourceLocation) + 371
14 clang-3.9 0x0000000004ef91fe clang::Preprocessor::HandleIncludeDirective(clang::SourceLocation, clang::Token&, clang::DirectoryLookup const*, clang::FileEntry const*, bool) + 9006
15 clang-3.9 0x0000000004ef5a82 clang::Preprocessor::HandleDirective(clang::Token&) + 1218
16 clang-3.9 0x0000000004eb4250 clang::Lexer::LexTokenInternal(clang::Token&, bool) + 9664
17 clang-3.9 0x0000000004eb03b8 clang::Lexer::Lex(clang::Token&) + 216
18 clang-3.9 0x0000000004f3c91b clang::Preprocessor::Lex(clang::Token&) + 107
19 clang-3.9 0x00000000039b94bb
20 clang-3.9 0x00000000039b1fd3 clang::Parser::Initialize() + 2403
21 clang-3.9 0x00000000039ade37 clang::ParseAST(clang::Sema&, bool, bool) + 263
22 clang-3.9 0x0000000002a588ae clang::ASTFrontendAction::ExecuteAction() + 334
23 clang-3.9 0x0000000002eddb08 clang::CodeGenAction::ExecuteAction() + 2168
24 clang-3.9 0x0000000002a58338 clang::FrontendAction::Execute() + 120
25 clang-3.9 0x0000000002a00204 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1028
26 clang-3.9 0x0000000002b7f26a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1210
27 clang-3.9 0x0000000000acda73 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 947
28 clang-3.9 0x0000000000ac15d6
29 clang-3.9 0x0000000000ac0439 main + 2297
30 libc.so.6 0x00007f0e4c482ec5 __libc_start_main + 245
31 clang-3.9 0x0000000000abf9f4
Stack dump:
0. Program arguments: /swift.org/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang-3.9 -cc1 -triple x86_64--linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name CFBigNumber.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-file /swift.org/swift-corelibs-foundation/../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/CoreFoundation/NumberDate.subproj/CFBigNumber.c.o -resource-dir /swift.org/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/../lib/clang/3.9.0 -include CoreFoundation/Base.subproj/CoreFoundation_Prefix.h -I bootstrap/common/usr/include -I bootstrap/common/usr/local/include -I bootstrap/x86_64-linux-gnu/usr/include -I bootstrap/x86_64-linux-gnu/usr/local/include -I ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation -I ../build/Ninja-DebugAssert/foundation-linux-x86_64 -I ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift -I ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -I ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -I ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -D DEPLOYMENT_TARGET_LINUX -D _GNU_SOURCE -D U_SHOW_DRAFT_API -D CF_BUILDING_CF -D DEPLOYMENT_RUNTIME_SWIFT -I /usr/include/libxml2 -I ./ -internal-isystem /usr/local/include -internal-isystem /swift.org/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/../lib/clang/3.9.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O0 -Wno-shorten-64-to-32 -Wno-deprecated-declarations -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-unused-variable -Wno-int-conversion -Wno-unused-function -fdebug-compilation-dir /swift.org/swift-corelibs-foundation -ferror-limit 19 -fmessage-length 0 -fblocks -fobjc-runtime=macosx-10.11 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fdollars-in-identifiers -o ../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/CoreFoundation/NumberDate.subproj/CFBigNumber.c.o -x c CoreFoundation/NumberDate.subproj/CFBigNumber.c
1. <command line>:6:2: current parser token 'include'
error: unable to rename temporary '../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/CoreFoundation/NumberDate.subproj/CFBigNumber.c.o-79c80676' to output file '../build/Ninja-DebugAssert/foundation-linux-x86_64/Foundation/CoreFoundation/NumberDate.subproj/CFBigNumber.c.o': 'No such file or directory'
1 error generated.
[84/269] CompileC: CoreFoundation/Locale.subproj/CFNumberFormatter.c
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment