[cfe-dev] Build failure with clang

Sylvestre Ledru sylvestre at debian.org
Fri Dec 2 05:04:37 PST 2011


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/pkg-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.


The configure is the following one:
  $ ../llvm-3.0/configure
--with-c-include-dirs=/usr/include/x86_64-linux-gnu:/usr/include
--with-cxx-include-root=/usr/include/c++/4.6
--with-cxx-include-arch=x86_64-linux-gnu --host=x86_64-linux-gnu
--build=x86_64-linux-gnu --with-cxx-include-32bit-dir=32 --prefix=/usr
--disable-assertions --enable-shared --enable-optimized
--with-optimize-option= -g -O2 --enable-pic --enable-libffi 

Any idea what could be the reason of the issue ?

Thanks,
Sylvestre
PS: please C/C me





More information about the cfe-dev mailing list