[cfe-dev] clang unable to build example C file

Török Edvin edwintorok at gmail.com
Fri Oct 12 11:13:27 PDT 2007


On 10/12/07, Chris Lattner <clattner at apple.com> wrote:
>
> Nice!  I applied this patch, please verify it also fixes it for you:
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-
> Mon-20071008/054469.html

Heh, you don't like offsetof, do you?

I got a compile failure with latest SVN (r42920):

In file included from StringMap.cpp:15:
/home/edwin/llvm-svn/llvm/include/llvm/ADT/StringMap.h: In static
member function 'static llvm::StringMapEntry<ValueTy>&
llvm::StringMapEntry<ValueTy>::GetStringMapEntryFromValue(ValueTy&)':
/home/edwin/llvm-svn/llvm/include/llvm/ADT/StringMap.h:175: error:
'intptr_t' was not declared in this scope
make[1]: *** [/home/edwin/llvm-svn/llvm/lib/Support/Debug/StringMap.o] Error 1

>
> > The CodeGen failure (both w/, and w/o my patch) is this one:
> >  FAIL: /home/edwin/llvm-svn/llvm/test/CodeGen/X86/2007-09-17-
> > ObjcFrameEH.ll
> > Failed with exit(1) at line 1
> > while running: llvm-as <
> > /home/edwin/llvm-svn/llvm/test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll |
> > llc -march=x86 -enable-eh | grep {isNullOrNil].eh"} | wc -l | grep 2
> > child process exited abnormally
>
> This was failing for other people as well, I think the testcase
> should be fixed on mainline now.
>

I'll try after I compile llvm.

P.S.: Is the ML the preferred way of reporting issues? Or should I use
bugzilla?
[this was supposed to be a clang issue, which has no bugzilla, so I used the ML]

--Edwin



More information about the cfe-dev mailing list