[LLVMdev] Some error with optimized and profiling build

Adam coldsnowbee at 163.com
Thu Jan 23 00:30:15 PST 2014


Hi LLVM Team,
    It's my first mail to the maillist, and if there's something I misdo, please let me know.


What I am doing is:
    1. build llvm with `--enable-optimized` and `--enable-profiling`
    2. my command-line configuration is: `../llvm/configure --prefix="/opt/llvm_optimized_profiling/" --enable-optimized --enable-profiling --enable-cxx11`


My Problem is:
    1. It triggered a link-time error.
    2. Error message is:


llvm[4]: Linking Release+Profile+Asserts executable c-index-test
/files/Install/LLVM_Framework/build_optimized_profiling/Release+Profile+Asserts/lib/libclang.so: undefined reference to `clang::format::getLLVMStyle()'
/files/Install/LLVM_Framework/build_optimized_profiling/Release+Profile+Asserts/lib/libclang.so: undefined reference to `clang::format::reformat(clang::format::FormatStyle const&, clang::Lexer&, clang::SourceManager&, std::vector<clang::CharSourceRange, std::allocator<clang::CharSourceRange> >)'
collect2: error: ld returned 1 exit status
make[4]: *** [/files/Install/LLVM_Framework/build_optimized_profiling/Release+Profile+Asserts/bin/c-index-test] Error 1
make[4]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools/clang/tools/c-index-test'
make[3]: *** [all] Error 1
make[3]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools/clang/tools'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools'
make: *** [all] Error 1

Notes:
    1. I have also built an debug version with: `../llvm/configure --prefix="/opt/llvm_debug/" --enable-cxx11`, and there was no error.
    2. I have also built an release version with `../llvm/configure --prefix="/opt/llvm_optimized/" --enable-optimized --enable-cxx11`, and there was no error.


--

Adam Basfop Cavendish
Shanghai University
Leader of Shanghai University Open Source Community
Phone: 13761283909
E-mail: GetbetterABC at Yeah.net
Address: 99 Shangda Rd., Shanghai University, Baoshan District, Shanghai, China [上海宝山区上大路99号(近南陈路) 校内5号楼]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140123/03dd713e/attachment.html>


More information about the llvm-dev mailing list