[LLVMbugs] [Bug 15385] New: Option '-dN' is not honoer or passed on to preprocessor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 27 17:28:02 PST 2013


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

            Bug ID: 15385
           Summary: Option '-dN' is not honoer or passed on to
                    preprocessor
           Product: clang
           Version: 3.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: noloader at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ 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 http://embed.cs.utah.edu/ioc/).

Should I be doing anything special to pass arguments to a preprocessor?

-- 
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/20130228/672256c5/attachment.html>


More information about the llvm-bugs mailing list