<html>
    <head>
      <base href="https://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 --- - clang 3.8.0.rc1 fails to build with gcc 4.8.1"
   href="https://llvm.org/bugs/show_bug.cgi?id=26362">26362</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang 3.8.0.rc1 fails to build with gcc 4.8.1
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sugak@fb.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15744" name="attach_15744" title="the error log">attachment 15744</a> <a href="attachment.cgi?id=15744&action=edit" title="the error log">[details]</a></span>
the error log

Checkout out llvm, clang, compiler-rt of 3.8.0.rc1 tag. Build with gcc 4.8.1:
```
% cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TESTS=ON
-DLLVM_ENABLE_EH=ON-DLLVM_ENABLE_RTTI=ON -DLLVM_TARGETS_TO_BUILD="X86;BPF"
% ninja
```

A short snipped of the error:
```
In file included from
/home/sugak/llvm/src/llvm/tools/clang/lib/CodeGen/CGBuilder.h:14:0,
...
/home/sugak/llvm/src/src/llvm/tools/clang/lib/CodeGen/Address.h:111:31: error:
cannot allocate an object of abstract type 'llvm::object::ObjectFile'
   template <class U> inline U cast(clang::CodeGen::Address addr) {
                               ^
In file included from
/home/sugak/llvm/src/llvm/include/llvm/DebugInfo/DIContext.h:20:0,
...
/home/sugak/llvm/src/llvm/include/llvm/Object/ObjectFile.h:175:7: note:  
because the following virtual functions are pure within
'llvm::object::ObjectFile':
 class ObjectFile : public SymbolicFile {
       ^
In file included from
/home/sugak/llvm/src/llvm/include/llvm/Object/ObjectFile.h:18:0,
...
/home/sugak/llvm/src/llvm/include/llvm/Object/SymbolicFile.h:132:16: note:     
 virtual void
llvm::object::SymbolicFile::moveSymbolNext(llvm::object::DataRefImpl&) const
   virtual void moveSymbolNext(DataRefImpl &Symb) const = 0;
                ^
```
See attached files for the whole error message.</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>