../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o ):( data.rel.ro_ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_6WeakVHENS_14ValueMapConfigIS3_EEEE[_ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_

解决方式如下:

    wget http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz
    tar xvzf llvm-3.2.src.tar.gz
    cd llvm-3.2.src/tools
    svn co llvm-project - Revision 214475: /cfe/tags/RELEASE_33/final clang
    cd ../projects
    svn co llvm-project - Revision 214475: /compiler-rt/tags/RELEASE_33/final compiler-rt
    cd ..
    ./configure --with-pic
    make -j4 REQUIRES_RTTI=1
    sudo make install

I forget this option  (REQUIRES_RTTI=1)  causes the problem.

posted @ 2017-10-18 17:51  邱明成  阅读(304)  评论(0编辑  收藏  举报