<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi LLVM Team,<div>    It's my first mail to the maillist, and if there's something I misdo, please let me know.</div><div><br></div><div><b>What I am doing is:</b></div><div>    1. build llvm with `--enable-optimized` and `--enable-profiling`</div><div>    2. my command-line configuration is: `../llvm/configure --prefix="/opt/llvm_optimized_profiling/" --enable-optimized --enable-profiling --enable-cxx11`</div><div><br></div><div><b>My Problem is:</b></div><div>    1. It triggered a link-time error.</div><div>    2. Error message is:</div><div><br></div><div><div>llvm[4]: Linking Release+Profile+Asserts executable c-index-test</div><div>/files/Install/LLVM_Framework/build_optimized_profiling/Release+Profile+Asserts/lib/libclang.so: undefined reference to `clang::format::getLLVMStyle()'</div><div>/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> >)'</div><div>collect2: error: ld returned 1 exit status</div><div>make[4]: *** [/files/Install/LLVM_Framework/build_optimized_profiling/Release+Profile+Asserts/bin/c-index-test] Error 1</div><div>make[4]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools/clang/tools/c-index-test'</div><div>make[3]: *** [all] Error 1</div><div>make[3]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools/clang/tools'</div><div>make[2]: *** [all] Error 1</div><div>make[2]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools/clang'</div><div>make[1]: *** [clang/.makeall] Error 2</div><div>make[1]: Leaving directory `/files/Install/LLVM_Framework/build_optimized_profiling/tools'</div><div>make: *** [all] Error 1</div><br><b>Notes:</b><br>    1. I have also built an debug version with: `../llvm/configure --prefix="/opt/llvm_debug/" --enable-cxx11`, and there was no error.</div><div>    2. I have also built an release version with `../llvm/configure --prefix="/opt/llvm_optimized/" --enable-optimized --enable-cxx11`, and there was no error.<br><br><div>--<br><div><div><span style="line-height: 1.7;">Adam Basfop Cavendish</span></div><div><span style="line-height: 1.7;">Shanghai University</span></div></div><div>Leader of Shanghai University Open Source Community</div><div>Phone: 13761283909</div><div>E-mail: <a href="mailto:GetbetterABC@Yeah.net" target="_blank" style="line-height: 1.7;">GetbetterABC@Yeah.net</a></div><div>Address: 99 Shangda Rd., Shanghai University, Baoshan District, Shanghai, China [<span style="font-family: 'Microsoft Yahei';">上海宝山区上大路99号(近南陈路) 校内5号楼</span>]</div></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>