<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 --- - OpenCL driver bug on AArch64 Ubuntu Xenial"
   href="https://llvm.org/bugs/show_bug.cgi?id=30698">30698</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>OpenCL driver bug on AArch64 Ubuntu Xenial
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>OpenCL
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>renato.golin@linaro.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>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=17442" name="attach_17442" title="Reproducer">attachment 17442</a> <a href="attachment.cgi?id=17442&action=edit" title="Reproducer">[details]</a></span>
Reproducer

We're moving up to a newer Ubuntu release and all Clang+LLVM+RT tests pass
except on: cl-phc.c.

The attached zip has the script/source to reproduce, but the error is:

clang-4.0:
/home/renato.golin/devel/llvm/worktree/arm64/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp:78:
void adjustCodeGenOpts(const llvm::Triple&, llvm::Reloc::Model,
llvm::CodeModel::Model&): Assertion `(TT.isOSBinFormatELF() ||
TT.isOSBinFormatMachO()) && "Only expect Darwin and ELF targets"' failed.

I'm not sure how to debug this.</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>