[LLVMdev] LLVM build fails using gcc-4.7.0 and -std=c++11 flags

Sid Manning sidneym at codeaurora.org
Thu Sep 27 14:16:13 PDT 2012


I just updated my llvm sources (revision 164794.) and I see the error, 
"overriding non-deleted function" when building with gcc 4.7.0 and 
passing -std=c++11.

/usr2/sidneym/llvm/tools/install/bin/c++   -D_GNU_SOURCE -D_DEBUG 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-std=c++11 -fPIC -fvisibility-inlines-hidden 
-I/local/scratch/llvm-tmp/build/lib/VMCore 
-I/local/scratch/llvm-tmp/llvm/lib/VMCore 
-I/local/scratch/llvm-tmp/build/include 
-I/local/scratch/llvm-tmp/llvm/include    -Wall -W -Wno-unused-parameter 
-Wwrite-strings -pedantic -Wno-long-long -fno-exceptions -o 
CMakeFiles/LLVMCore.dir/AsmWriter.cpp.o -c 
/local/scratch/llvm-tmp/llvm/lib/VMCore/AsmWriter.cpp
In file included from 
/local/scratch/llvm-tmp/llvm/lib/VMCore/AsmWriter.cpp:27:0:
/local/scratch/llvm-tmp/llvm/include/llvm/Operator.h:38:3: error: 
deleted function 'virtual llvm::Operator::~Operator()'
In file included from 
/local/scratch/llvm-tmp/llvm/include/llvm/Constant.h:17:0,
                  from 
/local/scratch/llvm-tmp/llvm/include/llvm/Constants.h:24,
                  from 
/local/scratch/llvm-tmp/llvm/lib/VMCore/AsmWriter.cpp:22:
/local/scratch/llvm-tmp/llvm/include/llvm/User.h:62:3: error: overriding 
non-deleted function 'virtual llvm::User::~User()'
make[2]: *** [lib/VMCore/CMakeFiles/LLVMCore.dir/AsmWriter.cpp.o] Error 1
make[2]: Leaving directory `/local/scratch/llvm-tmp/build'
make[1]: *** [lib/VMCore/CMakeFiles/LLVMCore.dir/all] Error 2
make[1]: Leaving directory `/local/scratch/llvm-tmp/build'


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-dev mailing list