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

Ted Kremenek <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from Ted Kremenek <[email protected]> 2011-11-29 20:13:58 CST 
---
(In reply to comment #4)
> > Does 'clang test.c' work?  -cc1 results in invoking the low-level driver, so
> > you may just not be passing enough stuff for your system.  The high-level
> > driver infers many of the arguments for the low-level driver based on 
> > context.
> 
> Indeed, 'clang test.c' does work as expected.  The 'test.c' in question is 
> just
> the trivial program I referenced above, i.e.
> 
>   #include <stdlib.h>
> 
>   int main(){
>     return 0;
>   }
> 
> which (thankfully!) compiles just fine.  However, 'clang -cc1' chokes on this
> program, as well as every other program I have tried, with the above error.

I suspect you just aren't passing enough low-level driver arguments.

Try:

$ clang test.c -###

and it will print out the low level driver arguments.  You will see what is
likely required to get clang -cc1 to work on your code.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to