<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Bootstrapping clang with CMAKE_BUILD_TYPE=RelWithDebInfo fails"
   href="http://llvm.org/bugs/show_bug.cgi?id=22027">22027</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bootstrapping clang with CMAKE_BUILD_TYPE=RelWithDebInfo fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ehsan@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>