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

Craig Topper craig.topper at gmail.com
Fri Sep 28 00:19:11 PDT 2012


I've fixed this specific error in r164813. Please let me know if there are
more behind it.

On Thu, Sep 27, 2012 at 2:16 PM, Sid Manning <sidneym at codeaurora.org> wrote:

>
> 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
> ______________________________**_________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>
>



-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120928/61f607e0/attachment.html>


More information about the llvm-dev mailing list