llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.48k stars 11.77k forks source link

Crash/Unable to build open source LLVM/Clang with Apple Clang #24560

Closed llvmbot closed 9 years ago

llvmbot commented 9 years ago
Bugzilla Link 24186
Resolution INVALID
Resolved on Jul 20, 2015 17:10
Version 3.5
OS MacOS X
Reporter LLVM Bugzilla Contributor
CC @asl,@qcolombet

Extended Description

~/d/r/llvm_build> /usr/bin/c++ -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DLLVM_ENABLE_DUMP -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -std=c++11 -fcolor-diagnostics -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -O2 -g -DNDEBUG -Itools/clang/lib/CodeGen -I/Users/tobias/dev/rep/llvm/tools/clang/lib/CodeGen -I/Users/tobias/dev/rep/llvm/tools/clang/include -Itools/clang/include -Iinclude -I/Users/tobias/dev/rep/llvm/include -fno-exceptions -fno-rtti -MMD -MT tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGExpr.cpp.o -MF tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGExpr.cpp.o.d -o tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGExpr.cpp.o -c /Users/tobias/dev/rep/llvm/tools/clang/lib/CodeGen/CGExpr.cpp Stack dump:

  1. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name CGExpr.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 241.9 -gdwarf-2 -coverage-file /Users/tobias/dev/rep/llvm_build/tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGExpr.cpp.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0 -dependency-file tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGExpr.cpp.o.d -MT tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGExpr.cpp.o -D CLANG_ENABLE_ARCMT -D CLANG_ENABLE_OBJC_REWRITER -D CLANG_ENABLE_STATIC_ANALYZER -D GTEST_HAS_RTTI=0 -D _GNU_SOURCE -D STDC_CONSTANT_MACROS -D STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D LLVM_ENABLE_DUMP -D NDEBUG -I tools/clang/lib/CodeGen -I /Users/tobias/dev/rep/llvm/tools/clang/lib/CodeGen -I /Users/tobias/dev/rep/llvm/tools/clang/include -I tools/clang/include -I include -I /Users/tobias/dev/rep/llvm/include -stdlib=libc++ -O2 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-long-long -Wcovered-switch-default -Woverloaded-virtual -Wno-nested-anon-types -pedantic -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/tobias/dev/rep/llvm_build -ferror-limit 19 -fmessage-length 204 -fvisibility-inlines-hidden -stack-protector 1 -mstackrealign -fblocks -fno-rtti -fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fno-common -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGExpr.cpp.o -x c++ /Users/tobias/dev/rep/llvm/tools/clang/lib/CodeGen/CGExpr.cpp
  2. parser at end of file
  3. Code generation
  4. Running pass 'Function Pass Manager' on module '/Users/tobias/dev/rep/llvm/tools/clang/lib/CodeGen/CGExpr.cpp'.
  5. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN5clang7CodeGen15CodeGenFunction12EmitCallArgsINS_17FunctionProtoTypeEEEvRNS0_11CallArgListEPKT_NS_4Stmt17ConstExprIteratorESA_PKNS_12FunctionDeclEj' clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal (use -v to see invocation) Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ 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: /var/folders/qm/7pz79pjd5gg0h1w3dny4yl540000gn/T/CGExpr-3ba879.cpp clang: note: diagnostic msg: /var/folders/qm/7pz79pjd5gg0h1w3dny4yl540000gn/T/CGExpr-3ba879.sh clang: note: diagnostic msg:


llvmbot commented 9 years ago

Tried building LLVM/Clang trunk with latest binary Clang release from llvm.org, i.e. clang version 3.6.2 (tags/RELEASE_362/final), which worked for me. So consider this report invalid. Thanks.

qcolombet commented 9 years ago

Attaching the files to reproduce would help as well!

asl commented 9 years ago

Have you reported the problem to Apple bugtracker as you were instructed?

llvmbot commented 9 years ago

This was while building current trunk of LLVM/Clang on OS X 10.9.5 with the latest XCode available for that platform.