<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 --- - Option '-dN' is not honoer or passed on to preprocessor"
   href="http://llvm.org/bugs/show_bug.cgi?id=15385">15385</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Option '-dN' is not honoer or passed on to preprocessor
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.1
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>noloader@gmail.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>$ uname -a
Linux ubuntu-12-x64 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux

$ clang --version
clang version 3.1 (branches/release_31)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Attempting to build uClibc with

    make CC=clang CXX=clang++

results in:

  clang: warning: argument unused during compilation: '-dN'
  ERROR: Could not generate syscalls.
  Make sure that you have proper kernel headers.
  Your .config in KERNEL_HEADERS="" was set to:
  /usr/src/linux-headers-3.2.0-38/include/

If I omit CC and CXX, make will use gcc and proceed (but fail at uClibc's
syscall hack). One problem at a time...

I'm very interested in using Clang for more projects due to its ehanced
warnings and static analysis capabilities, including Li and Regehr's IOC. (This
Clang was built with their patches at <a href="http://embed.cs.utah.edu/ioc/">http://embed.cs.utah.edu/ioc/</a>).

Should I be doing anything special to pass arguments to a preprocessor?</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>