[LLVMbugs] [Bug 13993] New: SVN Revision 165008 can't build CLang
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 2 07:26:20 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13993
Bug #: 13993
Summary: SVN Revision 165008 can't build CLang
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: norman-k-williams at uiowa.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9287
--> http://llvm.org/bugs/attachment.cgi?id=9287
diagnostic script
System: OS X 10.7.5
Xcode 4.2.1 Build version 4D502
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
I built LLVM+CLang using the system CLang version and installed it in a sandbox
directory. Then I deleted the build files, re-configured with CMake to use the
just-built version of clang, and the compilation fails with an illegal
instruction error.
I'm attaching the preprocessed source and run script as per instructions.
Assertion failed: (isa<PHINode>(*UI->U->getUser())), function visitPHINode,
file /scratch/kent/clang/llvm/lib/Transforms/Scalar/SROA.cpp, line 1925.
0 clang-3.2 0x000000010b0fa712 _ZL15PrintStackTracePv + 34
1 clang-3.2 0x000000010b0facb9 _ZL13SignalHandleri + 697
2 libsystem_c.dylib 0x00007fff848f5cfa _sigtramp + 26
3 libsystem_c.dylib 000000000000000000 _sigtramp + 18446603338292175648
4 clang-3.2 0x000000010b0fa956 abort + 22
5 clang-3.2 0x000000010b0fa917 __assert_rtn + 55
6 clang-3.2 0x000000010adbe171 (anonymous
namespace)::SROA::rewriteAllocaPartition(llvm::AllocaInst&, (anonymous
namespace)::AllocaPartitioning&, (anonymous
namespace)::AllocaPartitioning::Partition*) + 9809
7 clang-3.2 0x000000010adba5d9 (anonymous
namespace)::SROA::runOnFunction(llvm::Function&) + 4793
8 clang-3.2 0x000000010b03e2cd
llvm::FPPassManager::runOnFunction(llvm::Function&) + 317
9 clang-3.2 0x000000010ae9c23a (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 1914
10 clang-3.2 0x000000010b03e6b4
llvm::MPPassManager::runOnModule(llvm::Module&) + 292
11 clang-3.2 0x000000010b03ec22
llvm::PassManagerImpl::run(llvm::Module&) + 242
12 clang-3.2 0x000000010b03edcd llvm::PassManager::run(llvm::Module&) +
13
13 clang-3.2 0x000000010b2d53e8
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5032
14 clang-3.2 0x000000010b3afadc
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 620
15 clang-3.2 0x000000010b506714 clang::ParseAST(clang::Sema&, bool,
bool) + 516
16 clang-3.2 0x000000010b3aeb99 clang::CodeGenAction::ExecuteAction() +
1289
17 clang-3.2 0x000000010b4915ab clang::FrontendAction::Execute() + 107
18 clang-3.2 0x000000010b47233a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1002
19 clang-3.2 0x000000010b0fd71c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3388
20 clang-3.2 0x000000010a5aba11 cc1_main(char const**, char const**,
char const*, void*) + 2913
21 clang-3.2 0x000000010a5a7961 main + 689
22 clang-3.2 0x000000010a5a7634 start + 52
Stack dump:
0. Program arguments: /Volumes/scratch/kent/opt/llvm/bin/clang-3.2 -cc1
-triple x86_64-apple-macosx10.7.0 -emit-obj -disable-free -main-file-name
SimplifyCFG.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -coverage-file
/Volumes/scratch/kent/clang/build/lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o
-resource-dir /Volumes/scratch/kent/opt/llvm/bin/../lib/clang/3.2 -D _DEBUG -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D NDEBUG
-U NDEBUG -I /scratch/kent/clang/build/lib/Transforms/Utils -I
/scratch/kent/clang/llvm/lib/Transforms/Utils -I
/scratch/kent/clang/build/include -I /scratch/kent/clang/llvm/include
-fmodule-cache-path
/var/folders/7g/fcs71v752y7d82sxsl72xpcc0009y7/T/clang-module-cache -O3 -Wall
-W -Wno-unused-parameter -Wwrite-strings -Wno-long-long
-Wcovered-switch-default -pedantic -fconst-strings -fdeprecated-macro
-fdebug-compilation-dir /scratch/kent/clang/build/lib/Transforms/Utils
-ferror-limit 19 -fmessage-length 107 -fvisibility-inlines-hidden
-stack-protector 1 -mstackrealign -fblocks -fno-rtti
-fobjc-runtime=macosx-10.7.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fdiagnostics-show-option -o
CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o -x c++
/scratch/kent/clang/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module
'/scratch/kent/clang/llvm/lib/Transforms/Utils/SimplifyCFG.cpp'.
4. Running pass 'SROA' on function
'@_ZL14GetIfConditionPN4llvm10BasicBlockERS1_S2_'
clang-3: error: unable to execute command: Illegal instruction: 4
clang-3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 165006)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
clang-3: 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: 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: note: diagnostic msg:
/var/folders/7g/fcs71v752y7d82sxsl72xpcc0009y7/T/SimplifyCFG-19LPn0.cpp
clang-3: note: diagnostic msg:
/var/folders/7g/fcs71v752y7d82sxsl72xpcc0009y7/T/SimplifyCFG-19LPn0.sh
clang-3: note: diagnostic msg:
********************
make[2]: ***
[lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o]
Error 254
make[1]: *** [lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/all] Error
2
make: *** [all] Error 2
Compilation exited abnormally with code 2 at Tue Oct 2 09:09:32
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list