[cfe-dev] errors running clang/test testcases
Chris Lattner
clattner at apple.com
Sun Jan 6 13:41:12 PST 2008
On Jan 2, 2008, at 1:47 AM, Bjørn Roald wrote:
> I am trying to learn a bit more about working on clang C++
> support. I think the test setup is quite nice and I made a stab at
> a test/cxx-extern.cpp which emit some errors for C++ uses of the
> extern keyword that I will try to fix parsing and AST for.
> Preprossessing of extern and assosiated tokens seems to be Ok.
Ok.
> Are there any status available, nightly build report or similar, for
> various platforms? I found http://llvm.org/nightlytest/index.php.
> But are these relevant for clang?
Nope, not yet.
> ******************** 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.
> ******************** 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.
> ******************** 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?
> ******************** 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?
-Chris
More information about the cfe-dev
mailing list