[LLVMdev] omission: clang-cc -MD -MF -c -fPIC

Bruce Korb bruce.korb at gmail.com
Sat Sep 5 11:36:11 PDT 2009


Hi,

I do not really have much direct control over the compile lines any more.
I guess I could code up a wrapper for your wrapper so that the libtool wrapper
would be happy, but could you all consider libtool built projects and
embed the necessary option stripping in your clang-cc thing?
Thank you.
Regards, Bruce

make[2]: Entering directory `/home/bkorb/ag/ag/snprintfv'
/bin/sh ../libtool --tag=CC   --mode=compile clang-cc -DHAVE_CONFIG_H
-I. -I.. -I..    -g -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c -o snv.lo
snv.c
libtool: compile:  clang-cc -DHAVE_CONFIG_H -I. -I.. -I.. -g -MT
snv.lo -MD -MP -MF .deps/snv.Tpo -c snv.c  -fPIC -DPIC -o .libs/snv.o
clang-cc: Unknown command line argument '-MD'.  Try: 'clang-cc --help'
clang-cc: Unknown command line argument '-MF'.  Try: 'clang-cc --help'
clang-cc: Unknown command line argument '-c'.  Try: 'clang-cc --help'
clang-cc: Unknown command line argument '-fPIC'.  Try: 'clang-cc --help'

On Sat, Sep 5, 2009 at 10:48 AM, Bruce Korb <bruce.korb at gmail.com> wrote:
> make[2]: Entering directory `/home/bkorb/ag/ag/snprintfv'
> /bin/sh ../libtool --tag=CC   --mode=compile /home/bkorb/tools/clang/llvm/Debug/bin/clang-cc -DHAVE_CONFIG_H -I. -I.. -I..    -g -Wall -Werror -Wcast-align -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c -o snv.lo snv.c
> libtool: compile:  /home/bkorb/tools/clang/llvm/Debug/bin/clang-cc -DHAVE_CONFIG_H -I. -I.. -I.. -g -Wall -Werror -Wcast-align -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -fno-strict-aliasing -MT snv.lo -MD -MP -MF .deps/snv.Tpo -c snv.c  -fPIC -DPIC -o .libs/snv.o
> clang-cc: Unknown command line argument '-fno-strict-aliasing'.  Try: '/home/bkorb/tools/clang/llvm/Debug/bin/clang-cc --help'
> clang-cc: Unknown command line argument '-MD'.  Try: '/home/bkorb/tools/clang/llvm/Debug/bin/clang-cc --help'
> clang-cc: Unknown command line argument '-MF'.  Try: '/home/bkorb/tools/clang/llvm/Debug/bin/clang-cc --help'
> clang-cc: Unknown command line argument '-c'.  Try: '/home/bkorb/tools/clang/llvm/Debug/bin/clang-cc --help'
> clang-cc: Unknown command line argument '-fPIC'.  Try: '/home/bkorb/tools/clang/llvm/Debug/bin/clang-cc --help'
> make[2]: *** [snv.lo] Error 1
> make[2]: Leaving directory `/home/bkorb/ag/ag/snprintfv'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bkorb/ag/ag'
> make: *** [all] Error 2
>




More information about the llvm-dev mailing list