Advertisement
ionel71089

clang crash

Nov 22nd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.14 KB | None | 0 0
  1. gigi@gigi-VirtualBox:~$ ~/local/Source/apple/swift/utils/build-script \
  2. --release \
  3. --debug-swift
  4. + mkdir -p /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert
  5. + env HOST_VARIABLE_linux_i686__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_i686__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_i686__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_i686__SWIFT_STDLIB_TARGETS=swift-test-stdlib-linux-i686 HOST_VARIABLE_linux_i686__SWIFT_TEST_TARGETS= /home/gigi/local/Source/apple/swift/utils/build-script-impl --workspace /home/gigi/local/Source/apple --build-dir /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert --install-prefix /usr --host-target linux-i686 --stdlib-deployment-targets linux-i686 --host-cc /usr/bin/clang --host-cxx /usr/bin/clang++ --darwin-xcrun-toolchain default --darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0 --darwin-deployment-version-tvos=9.0 --darwin-deployment-version-watchos=2.0 --cmake /usr/bin/cmake --cmark-build-type Debug --llvm-build-type Release --swift-build-type Debug --swift-stdlib-build-type Release --lldb-build-type Release --foundation-build-type Release --libdispatch-build-type Release --libicu-build-type Release --xctest-build-type Release --swiftpm-build-type Release --swift-enable-assertions true --swift-stdlib-enable-assertions true --swift-analyze-code-coverage false --cmake-generator Ninja --build-jobs 1 '--common-cmake-options=-G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DLLVM_VERSION_MAJOR:STRING=5 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=5 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/ninja-build/ninja' --build-args=-j1 --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ;Mips' '--swift-cmake-options=-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_FORCE_OPTIMIZED_TYPECHECKER=FALSE' --build-stdlib-deployment-targets all --ninja-bin=/home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/ninja-build/ninja --skip-build-foundation --skip-build-xctest --skip-build-lldb --skip-build-llbuild --skip-build-libdispatch --skip-build-libicu --skip-build-swiftpm --skip-build-playgroundlogger --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-dynamic-sdk-overlay --skip-build-ios-device --skip-build-ios-simulator --skip-build-tvos-device --skip-build-tvos-simulator --skip-build-watchos-device --skip-build-watchos-simulator --skip-build-android --skip-test-swift --skip-test-cmark --skip-test-lldb --skip-test-llbuild --skip-test-swiftpm --skip-test-xctest --skip-test-foundation --skip-test-libdispatch --skip-test-libicu --skip-test-playgroundlogger --skip-test-playgroundsupport --skip-test-linux --skip-test-freebsd --skip-test-cygwin --skip-test-osx --skip-test-ios-host --skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator --skip-test-watchos-host --skip-test-watchos-simulator --skip-test-android-host --skip-test-benchmarks --skip-test-optimized --skip-test-optimize-for-size --android-deploy-device-path /data/local/tmp --llvm-lit-args=-sv
  6. Building the standard library for: swift-test-stdlib-linux-i686
  7. cmark: using gold linker
  8. + /usr/bin/cmake --build /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/cmark-linux-i686 -- -j1 all
  9. ninja: no work to do.
  10. llvm: using gold linker
  11. symlinking the system headers (/usr/include/c++) into the local clang build directory (/home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/llvm-linux-i686/include).
  12. + ln -s -f /usr/include/c++ /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/llvm-linux-i686/include
  13. + /usr/bin/cmake --build /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/llvm-linux-i686 -- -j1 all
  14. ninja: no work to do.
  15. swift: using gold linker
  16. + /usr/bin/cmake --build /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/swift-linux-i686 -- -j1 all swift-test-stdlib-linux-i686
  17. [1/580] Building CXX object lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o
  18. FAILED: lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o
  19. /usr/bin/clang++ -DCMARK_STATIC_DEFINE -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/ClangImporter -I/home/gigi/local/Source/apple/swift/lib/ClangImporter -Iinclude -I/home/gigi/local/Source/apple/swift/include -I/home/gigi/local/Source/apple/llvm/include -I/home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/llvm-linux-i686/include -I/home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/llvm-linux-i686/tools/clang/include -I/home/gigi/local/Source/apple/llvm/tools/clang/include -I/home/gigi/local/Source/apple/cmark/src -I/home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/cmark-linux-i686/src -Wno-unknown-warning-option -Werror=unguarded-availability-new -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -g -fno-exceptions -fno-rtti -target i686-unknown-linux-gnu -O0 -g -UNDEBUG -MMD -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o -MF lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o.d -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o -c /home/gigi/local/Source/apple/swift/lib/ClangImporter/ClangImporter.cpp
  20. terminate called after throwing an instance of 'std::bad_alloc'
  21. what(): std::bad_alloc
  22. 0 libLLVM-3.8.so.1 0xb4fc0bb9 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
  23. 1 libLLVM-3.8.so.1 0xb4fc0f7d
  24. 2 libLLVM-3.8.so.1 0xb4fbedf0 llvm::sys::RunSignalHandlers() + 64
  25. 3 libLLVM-3.8.so.1 0xb4fbef58
  26. 4 0xb7742cf0 __kernel_sigreturn + 0
  27. 5 0xb7742ce5 __kernel_vsyscall + 9
  28. 6 libc.so.6 0xb48b2ea9 gsignal + 57
  29. 7 libc.so.6 0xb48b4407 abort + 343
  30. 8 libstdc++.so.6 0xb4accd35 __gnu_cxx::__verbose_terminate_handler() + 341
  31. 9 libstdc++.so.6 0xb4aca833
  32. 10 libstdc++.so.6 0xb4aca8ad
  33. 11 libstdc++.so.6 0xb4acab70 __cxa_rethrow + 0
  34. 12 libstdc++.so.6 0xb4acb1cf
  35. 13 clang 0x0831224c
  36. 14 clang 0x0831916e clang::CodeGen::CGDebugInfo::CreateCXXMemberFunction(clang::CXXMethodDecl const*, llvm::DIFile*, llvm::DIType*) + 1374
  37. 15 clang 0x0831932b clang::CodeGen::CGDebugInfo::CollectCXXMemberFunctions(clang::CXXRecordDecl const*, llvm::DIFile*, llvm::SmallVectorImpl<llvm::Metadata*>&, llvm::DIType*) + 395
  38. 16 clang 0x083148b7 clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) + 439
  39. 17 clang 0x08314f2e clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 542
  40. 18 clang 0x08315072 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile*) + 210
  41. 19 clang 0x08315241 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile*) + 129
  42. 20 clang 0x08318364 clang::CodeGen::CGDebugInfo::CollectTemplateParams(clang::TemplateParameterList const*, llvm::ArrayRef<clang::TemplateArgument>, llvm::DIFile*) + 1364
  43. 21 clang 0x08318c06 clang::CodeGen::CGDebugInfo::CollectFunctionTemplateParams(clang::FunctionDecl const*, llvm::DIFile*) + 150
  44. 22 clang 0x0831974a clang::CodeGen::CGDebugInfo::collectFunctionDeclProps(clang::GlobalDecl, llvm::DIFile*, llvm::StringRef&, llvm::StringRef&, llvm::DIScope*&, llvm::MDTupleTypedArrayWrapper<llvm::DINode>&, unsigned int&) + 250
  45. 23 clang 0x0831bc90 clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl, clang::SourceLocation, clang::SourceLocation, clang::QualType, llvm::Function*, clang::CodeGen::CGBuilderTy&) + 752
  46. 24 clang 0x08366ea4 clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl, clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&, clang::CodeGen::FunctionArgList const&, clang::SourceLocation, clang::SourceLocation) + 1428
  47. 25 clang 0x08368535 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 837
  48. 26 clang 0x0837f392 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 322
  49. 27 clang 0x0838e430 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 320
  50. 28 clang 0x0838e5cb clang::CodeGen::CodeGenModule::EmitDeferred() + 171
  51. 29 clang 0x0838e5e9 clang::CodeGen::CodeGenModule::EmitDeferred() + 201
  52. 30 clang 0x0838e756 clang::CodeGen::CodeGenModule::Release() + 38
  53. 31 clang 0x08666f6d
  54. 32 clang 0x086636a2
  55. 33 clang 0x087909fd clang::ParseAST(clang::Sema&, bool, bool) + 989
  56. 34 clang 0x085e4b6e clang::ASTFrontendAction::ExecuteAction() + 94
  57. 35 clang 0x086644b2 clang::CodeGenAction::ExecuteAction() + 34
  58. 36 clang 0x085e5c69 clang::FrontendAction::Execute() + 297
  59. 37 clang 0x085b7f2a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 282
  60. 38 clang 0x086621bf clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1935
  61. 39 clang 0x082ce5c1 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 2257
  62. 40 clang 0x082cb1d0 main + 7056
  63. 41 libc.so.6 0xb489f637 __libc_start_main + 247
  64. 42 clang 0x082cc9d6
  65. Stack dump:
  66. 0. Program arguments: /usr/lib/llvm-3.8/bin/clang -cc1 -triple i686-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name ClangImporter.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-file /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/swift-linux-i686/lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o -resource-dir /usr/lib/llvm-3.8/bin/../lib/clang/3.8.0 -dependency-file lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o.d -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o -D CMARK_STATIC_DEFINE -D GTEST_HAS_RTTI=0 -D _DEBUG -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I lib/ClangImporter -I /home/gigi/local/Source/apple/swift/lib/ClangImporter -I include -I /home/gigi/local/Source/apple/swift/include -I /home/gigi/local/Source/apple/llvm/include -I /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/llvm-linux-i686/include -I /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/llvm-linux-i686/tools/clang/include -I /home/gigi/local/Source/apple/llvm/tools/clang/include -I /home/gigi/local/Source/apple/cmark/src -I /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/cmark-linux-i686/src -D OBJC_OLD_DISPATCH_PROTOTYPES=0 -U NDEBUG -internal-isystem /usr/bin/../lib/gcc/i686-linux-gnu/5.4.0/../../../../include/c++/5.4.0 -internal-isystem /usr/bin/../lib/gcc/i686-linux-gnu/5.4.0/../../../../include/i386-linux-gnu/c++/5.4.0 -internal-isystem /usr/bin/../lib/gcc/i686-linux-gnu/5.4.0/../../../../include/i386-linux-gnu/c++/5.4.0 -internal-isystem /usr/bin/../lib/gcc/i686-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.8/bin/../lib/clang/3.8.0/include -internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O0 -Wno-unknown-warning-option -Werror=unguarded-availability-new -Werror=date-time -Werror=unguarded-availability-new -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/gigi/local/Source/apple/build/Ninja-ReleaseAssert+swift-DebugAssert/swift-linux-i686 -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o -x c++ /home/gigi/local/Source/apple/swift/lib/ClangImporter/ClangImporter.cpp
  67. 1. <eof> parser at end of file
  68. 2. Per-file LLVM IR generation
  69. 3. /home/gigi/local/Source/apple/swift/include/swift/AST/Attr.h:1305:8: Generating code for declaration 'swift::DeclAttributes::hasAttribute'
  70. clang: error: unable to execute command: Aborted (core dumped)
  71. clang: error: clang frontend command failed due to signal (use -v to see invocation)
  72. clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)
  73. Target: i686-unknown-linux-gnu
  74. Thread model: posix
  75. InstalledDir: /usr/bin
  76. 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.
  77. clang: note: diagnostic msg:
  78. ********************
  79.  
  80. PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
  81. Preprocessed source(s) and associated run script(s) are located at:
  82. clang: note: diagnostic msg: /tmp/ClangImporter-931b9d.cpp
  83. clang: note: diagnostic msg: /tmp/ClangImporter-931b9d.sh
  84. clang: note: diagnostic msg:
  85.  
  86. ********************
  87. ninja: build stopped: subcommand failed.
  88. /home/gigi/local/Source/apple/swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
  89. gigi@gigi-VirtualBox:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement