[cfe-dev] clang build fails for x86_64

Joel Nelson joelnn at gmail.com
Sat Nov 10 11:55:44 PST 2007


Builds now, thanks for the quick response!

On Nov 10, 2007 2:29 PM, Ted Kremenek <kremenek at apple.com> wrote:
> Joel,
>
> I have committed a patch to LLVM that hopefully addresses this
> problem.  Thanks for pointing this out.
>
> Ted
>
>
> On Nov 10, 2007, at 8:32 AM, Joel Nelson wrote:
>
> > When building on my x86_64 linux box:
> >
> > llvm[1]: Compiling TypeSerialization.cpp for Debug build
> > /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h: In member
> > function 'void llvm::Deserializer::BatchReadOwnedPtrs(unsigned int,
> > T**, bool) [with T = clang::Expr]':
> > StmtSerialization.cpp:210:   instantiated from here
> > /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h:219: error:
> > cast from 'clang::Expr*' to 'llvm::SerializedPtrID' loses precision
> > /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h: In member
> > function 'void llvm::Deserializer::BatchReadOwnedPtrs(unsigned int,
> > T**, bool) [with T = clang::Stmt]':
> > StmtSerialization.cpp:225:   instantiated from here
> > /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h:219: error:
> > cast from 'clang::Stmt*' to 'llvm::SerializedPtrID' loses precision
> > make[1]: *** [/home/joel/svn/llvm/tools/clang/AST/Debug/
> > StmtSerialization.o]
> > Error 1
> > make[1]: *** Waiting for unfinished jobs....
> > make[1]: Leaving directory `/home/joel/svn/llvm/tools/clang/AST'
> > make: *** [all] Error 1
> >
> > I think the problem is SerializedPtrID is a typedef of "unsigned", so
> > clang::Expr* is too big?
> >
> > Thanks!
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>



More information about the cfe-dev mailing list