[LLVMbugs] [Bug 22027] New: Bootstrapping clang with CMAKE_BUILD_TYPE=RelWithDebInfo fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 24 11:40:45 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=22027

            Bug ID: 22027
           Summary: Bootstrapping clang with
                    CMAKE_BUILD_TYPE=RelWithDebInfo fails
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ehsan at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I get this when building stage2 (cmake -GNinja -DLLVM_TARGETS_TO_BUILD=X86
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=`pwd`/../clang
-DCMAKE_C_COMPILER=`pwd`/../../stage1/clang/bin/clang
-DCMAKE_CXX_COMPILER=`pwd`/../../stage1/clang/bin/clang++ ../../../../src/llvm)
at r224797.

[1148/1991] Building C object
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o
FAILED:
/Users/ehsan/moz/tmp/build/unix/build-clang/build/new/stage2/build/../../stage1/clang/bin/clang
 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers
-pedantic -Wno-long-long -Wcovered-switch-default -fcolor-diagnostics -Wall -O2
-g -DNDEBUG -Iprojects/compiler-rt/lib/builtins
-I/Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/projects/compiler-rt/lib/builtins
-Iinclude -I/Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/include    
-m32 -std=c99 -MMD -MT
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o
-MF
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o.d
-o
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o
  -c
/Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/projects/compiler-rt/lib/builtins/divxc3.c
0  clang-3.6                0x000000010e0b7fb9
llvm::sys::PrintStackTrace(__sFILE*) + 57
1  clang-3.6                0x000000010e0b870b SignalHandler(int) + 443
2  libsystem_platform.dylib 0x00007fff8f56cf1a _sigtramp + 26
3  libsystem_platform.dylib 0x00007f993102a600 _sigtramp + 2712393472
4  clang-3.6                0x000000010e50d66c
clang::CodeGen::CGDebugInfo::EmitLocation(llvm::IRBuilder<false,
llvm::ConstantFolder, clang::CodeGen::CGBuilderInserter<false> >&,
clang::SourceLocation, bool) + 396
5  clang-3.6                0x000000010e54998a (anonymous
namespace)::ComplexExprEmitter::EmitStoreOfComplex(std::__1::pair<llvm::Value*,
llvm::Value*>, clang::CodeGen::LValue, bool, clang::SourceLocation) + 74
6  clang-3.6                0x000000010e549b12
clang::CodeGen::CodeGenFunction::EmitStoreOfComplex(std::__1::pair<llvm::Value*,
llvm::Value*>, clang::CodeGen::LValue, bool, clang::SourceLocation) + 66
7  clang-3.6                0x000000010e4fb0b5
clang::CodeGen::CodeGenFunction::EmitFunctionEpilog(clang::CodeGen::CGFunctionInfo
const&, bool, clang::SourceLocation) + 1525
8  clang-3.6                0x000000010e5c5453
clang::CodeGen::CodeGenFunction::FinishFunction(clang::SourceLocation) + 419
9  clang-3.6                0x000000010e5c8f59
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 2217
10 clang-3.6                0x000000010e5d6523
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 1379
11 clang-3.6                0x000000010e5d36ef
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 335
12 clang-3.6                0x000000010e5d7abb
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 171
13 clang-3.6                0x000000010e6289af (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 111
14 clang-3.6                0x000000010e5c415c
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 156
15 clang-3.6                0x000000010e8e8c13 clang::ParseAST(clang::Sema&,
bool, bool) + 371
16 clang-3.6                0x000000010e5c2e7d
clang::CodeGenAction::ExecuteAction() + 93
17 clang-3.6                0x000000010e2b7d7e clang::FrontendAction::Execute()
+ 62
18 clang-3.6                0x000000010e289633
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 883
19 clang-3.6                0x000000010e2f2e66
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4294
20 clang-3.6                0x000000010d94eb5d cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 797
21 clang-3.6                0x000000010d94b7b1 main + 1505
22 libdyld.dylib            0x00007fff9a5325c9 start + 1
Stack dump:
0.    Program arguments:
/Users/ehsan/moz/tmp/build/unix/build-clang/build/new/stage1/clang/bin/clang-3.6
-cc1 -triple i386-apple-macosx10.10.0 -emit-obj -disable-free
-disable-llvm-verifier -main-file-name divxc3.c -mrelocation-model pic
-pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -target-cpu
yonah -target-linker-version 241.9 -gdwarf-2 -dwarf-column-info -coverage-file
/Users/ehsan/moz/tmp/build/unix/build-clang/build/new/stage2/build/projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o
-resource-dir
/Users/ehsan/moz/tmp/build/unix/build-clang/build/new/stage1/clang/bin/../lib/clang/3.6.0
-dependency-file
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o.d
-MT
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o
-D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D
NDEBUG -I projects/compiler-rt/lib/builtins -I
/Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/projects/compiler-rt/lib/builtins
-I include -I /Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/include -O2
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers
-Wno-long-long -Wcovered-switch-default -Wall -pedantic -std=c99
-fconst-strings -fdebug-compilation-dir
/Users/ehsan/moz/tmp/build/unix/build-clang/build/new/stage2/build
-ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-fragile-10.10.0 -fobjc-subscripting-legacy-runtime
-fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-i386.dir/divxc3.c.o
-x c
/Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/projects/compiler-rt/lib/builtins/divxc3.c
1.    <eof> parser at end of file
2.   
/Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/projects/compiler-rt/lib/builtins/divxc3.c:22:1:
LLVM IR generation of declaration '__divxc3'
3.   
/Users/ehsan/moz/tmp/build/unix/build-clang/src/llvm/projects/compiler-rt/lib/builtins/divxc3.c:22:1:
Generating code for declaration '__divxc3'
clang-3.6: error: unable to execute command: Segmentation fault: 11
clang-3.6: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (trunk) (llvm/trunk 224797)
Target: i386-apple-darwin14.0.0
Thread model: posix
clang-3.6: 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.6: 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.6: note: diagnostic msg:
/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/divxc3-66f126.c
clang-3.6: note: diagnostic msg:
/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/divxc3-66f126.sh
clang-3.6: note: diagnostic msg:

********************
[1148/1991] Building CXX object
lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o
ninja: build stopped: subcommand failed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141224/d23ff8aa/attachment.html>


More information about the llvm-bugs mailing list