[LLVMbugs] [Bug 4062] New: RFE: Support "-Wp, -MD" option (req. for Linux kernel build)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Apr 25 10:44:17 PDT 2009


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

           Summary: RFE: Support "-Wp,-MD" option (req. for Linux kernel
                    build)
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jgarzik at pobox.com
                CC: llvmbugs at cs.uiuc.edu


The Linux kernel uses "-Wp,-MD..." for dependencies.  Example command line,
when attempting to use clang to build kernel:

  clang -Wp,-MD,kernel/.bounds.s.d  -nostdinc -isystem include -Iinclude 
-I/spare/repo/linux-2.6/arch/x86/include -include include/linux/autoconf.h
-D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m64
-march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
-pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx
-mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector
-fno-omit-frame-pointer -fno-optimize-sibling-calls -pg
-Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm  
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(bounds)" 
-D"KBUILD_MODNAME=KBUILD_STR(bounds)"  -fverbose-asm -S -o kernel/bounds.s
kernel/bounds.c
clang: warning: the clang compiler does not yet support '-pg'
clang: warning: argument unused during compilation: '-march=core2'
clang: warning: argument unused during compilation: '-mcmodel=kernel'
clang: warning: argument unused during compilation: '-funit-at-a-time'
clang: warning: argument unused during compilation:
'-maccumulate-outgoing-args'
clang: warning: argument unused during compilation:
'-fno-asynchronous-unwind-tables'
clang: warning: argument unused during compilation: '-fno-omit-frame-pointer'
clang: warning: argument unused during compilation:
'-fno-optimize-sibling-calls'
clang: warning: argument unused during compilation: '-fwrapv'
clang: warning: argument unused during compilation: '-fno-dwarf2-cfi-asm'
clang-cc: Unknown command line argument '-MD'.  Try:
'/usr/local/bin/../libexec/clang-cc --help'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list