[cfe-dev] errors running clang/test testcases
Bjørn Roald
bjorn at 4roald.org
Sun Jan 6 14:00:52 PST 2008
Chris Lattner wrote:
Thanks for your reply Chris,
>> ******************** TEST 'CodeGen/mandel.c' FAILED!
>> ********************
>> Command:
>> clang -emit-llvm CodeGen/mandel.c
>> Output:
>> CodeGen/mandel.c:49:13: error: variable has incomplete type
>> 'typeof(*(0 ? (typeof(0 ? (double *)0 : (void *)((((typeof((__real z)
>> + (__imag z)))0.25) && ((typeof((__real z) + (__imag z)))0.25 -
>> 1)))))0 : (typeof(0 ? (typeof((__real z) + (__imag z)) *)0 : (void
>> *)(!((((typeof((__real z) + (__imag z)))0.25) && ((typeof((__real z)
>> + (__imag z)))0.25 - 1))))))0))'
>> if (hypot(__real__ z, __imag__ z) >= ESCAPE)
>
> Please make a .i file for mandel.c (clang -E mandel.c > mandel.i) and
> send it to the list.
attached
>
>
>> ******************** TEST 'Parser/cxx-extern.cpp' FAILED!
>> ********************
>> Command:
>> clang -fsyntax-only Parser/cxx-extern.cpp
>> Output:
>> Parser/cxx-extern.cpp:19:8: error: expected identifier or '('
>
> This isn't in the clang tree.
It is if you add it :-). All tests pass after Mike's extern patch.
File attached.
>> ******************** TEST 'Sema/undecl-objc-h.m' FAILED!
>> ********************
>> Command:
>> clang -rewrite-test Sema/undecl-objc-h.m | clang
>> Output:
>> In file included from <stdin>:23:
>> /usr/lib/gcc/i386-redhat-linux/4.0.2/include/objc/objc.h:145:3:
>> error: redefinition of 'Protocol'
>> } Protocol;
>> ^
>> <stdin>:7:28: error: previous definition is here
>> typedef struct objc_object Protocol;
>> ^
>
> This looks like a platform specific difference between your objc.h and
> hte mac one, can you please attach your objc.h so that we can see what
> it looks like?
>
done.
>> ******************** TEST 'Sema/objc-comptypes-2.m' FAILED!
>> ********************
>> Command:
>> clang -fsyntax-only -verify Sema/objc-comptypes-2.m
>> Output:
>> Errors seen but not expected:
>> Line 63: incomplete definition of type 'objc_selector'
>
> Likewise, looks like your objc.h doesn't have objc_selector in it?
--
Bjørn
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: objc.h
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080106/b7efe55d/attachment.h>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mandel.i
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080106/b7efe55d/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cxx-extern.cpp
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080106/b7efe55d/attachment-0001.ksh>
More information about the cfe-dev
mailing list