[cfe-dev] Build failure with clang

Sylvestre Ledru sylvestre at debian.org
Fri Dec 2 10:50:09 PST 2011


Le vendredi 02 décembre 2011 à 09:26 -0800, Douglas Gregor a écrit :
> On Dec 2, 2011, at 5:04 AM, Sylvestre Ledru wrote:
> 
> > Hello,
> > 
> > I have a build issue with clang 3.0:
> > 
> > llvm[0]: Compiling CGBlocks.cpp for Release build
> > if  clang -I/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/include
> > -I/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen -I/data/pkg-llvm/clang/plop2/clang-3.0/llvm-3.0/include -I/data/pkg-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/data/pkg-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen/../../include -I/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/../../include -DCLANG_VENDOR='"Debian "' -g -O2 -fomit-frame-pointer -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing    -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings  -c -MMD -MP -MF "/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/Release/CGBlocks.d.tmp" -MT "/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/Release/CGBlocks.o" -MT "/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/Release/CGBlocks.d" /data/pk!
> > g-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen/CGBlocks.cpp -o /data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/Release/CGBlocks.o ; \
> > 	        then /bin/mv -f
> > "/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/Release/CGBlocks.d.tmp" "/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/Release/CGBlocks.d"; else /bin/rm "/data/pkg-llvm/clang/plop2/clang-3.0/build-clang/tools/clang/lib/CodeGen/Release/CGBlocks.d.tmp"; exit 1; fi
> > In file included
> > from /data/pkg-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen/CGBlocks.cpp:15:
> > In file included
> > from /data/pkg-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen/CodeGenFunction.h:28:
> > In file included
> > from /data/pkg-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen/CodeGenModule.h:20:
> > /data/pkg-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen/../../include/clang/AST/DeclCXX.h:1028:8: error: class member cannot be redeclared
> >  bool isTriviallyCopyable() const;
> >       ^
> > /data/pkg-llvm/clang/plop2/clang-3.0/tools/clang/lib/CodeGen/../../include/clang/AST/DeclCXX.h:996:8: note: previous declaration is here
> >  bool isTriviallyCopyable() const;
> >       ^
> > 1 error generated.
> 
> 
> isTriviallyCopyable() is not declared on line 1028 at all. Are your source files corrupted somehow?
Sorry about the noise. You are right. Looks like some conflicts happened
in a merge. Sorry again.

Sylvestre





More information about the cfe-dev mailing list