<html><body><p>Thanks Yaron. I've seen this thread earlier. I also wanted to know when will LLVM have a fix for this as mentioned in the thread, it is pending for review. Will the fix be available for LLVM 3.8 or we'll have to take the latest LLVM?<br>Also, if I downgrade gcc to 4.9, will LLVM 3.8 work perfectly ?<br><br>Thanks,<br>Nishidha<br><br><img width="16" height="16" src="cid:1__=EABBF53ADFDA13F58f9e8a93df938690918cEAB@" border="0" alt="Inactive hide details for Yaron Keren ---05/04/2016 06:31:56 PM---Please see https://llvm.org/bugs/show_bug.cgi?id=23529 2016-0"><font color="#424282">Yaron Keren ---05/04/2016 06:31:56 PM---Please see <a href="https://llvm.org/bugs/show_bug.cgi?id=23529">https://llvm.org/bugs/show_bug.cgi?id=23529</a> 2016-05-04 15:52 GMT+03:00 Nishidha Panpaliya</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Yaron Keren <yaron.keren@gmail.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">Nishidha Panpaliya/Austin/Contr/IBM@IBMUS</font><br><font size="2" color="#5F5F5F">Cc:        </font><font size="2">llvm-dev <llvm-dev@lists.llvm.org>, David Clissold/Austin/IBM@IBMUS, Sudarshan Jagadale/Austin/Contr/IBM@IBMUS, Manish Patil/Austin/Contr/IBM@IBMUS</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">05/04/2016 06:31 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [llvm-dev] Clang 3.8 and gcc 5.2 has difference in symbol names</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="4">Please see </font><a href="https://llvm.org/bugs/show_bug.cgi?id=23529"><u><font size="4" color="#0000FF">https://llvm.org/bugs/show_bug.cgi?id=23529</font></u></a><br><br><br><font size="4">2016-05-04 15:52 GMT+03:00 Nishidha Panpaliya via llvm-dev <</font><a href="mailto:llvm-dev@lists.llvm.org" target="_blank"><u><font size="4" color="#0000FF">llvm-dev@lists.llvm.org</font></u></a><font size="4">>:</font><ul><font size="4">Hi All,<br><br>I've built LLVM 3.8 on POWER with gcc 5.2.1 version for one of our application. This application is built using -std=c++14 support. <br>Using this particular combination, I'm getting one error where one of the exported symbols from our application (for a function returning std::string which is built by gcc) is different than the one when compiled by clang 3.8.<br><br>I also tried to replicate this issue by using a small test application which has a function named GetString() returning std::string. When I compile this file using gcc 5.2, I see symbol name as "_Z9GetStringB5cxx11v" and when I compile the same file using clang++, I get symbol name as "_Z9GetStringv".<br><br>In order to resolve this difference, I tried below things - </font><ul><ul type="disc"><li><font size="4">gcc 5.2 with c++11 support has added this special behavior due to which symbol name contains B5cxx11. Hence, I tried building LLVM/clang with -std=c++14 support. But no luck. </font><li><font size="4">Even if I provide -std=c++14 while compiling this source file using clang++, the result remained same. </font><li><font size="4">I tried setting -D_GLIBCXX_USE_CXX11_ABI=0 flag while compiling my application using gcc. This approach atleast gave me some success. Symbols generated for my source file after using flag were same as that of clang++ (i.e. without B5cxx11). But later my application failed at linking step for some undefined references - some of the references were of the application itself and a few from dependent libraries. I wanted to know if I would also need to build my dependent libraries using this flag.</font></ul></ul><font size="4"><br>I need some guidance here as to how I can build LLVM/clang so that it also generates symbols same as that of gcc5.2. I can't use any other version of gcc as I'll need rebuild lot of other dependencies.<br><br>Kindly help me.<br><br>Thanks,<br>Nishidha</font><br><font size="4"><br>_______________________________________________<br>LLVM Developers mailing list</font><u><font size="4" color="#0000FF"><br></font></u><a href="mailto:llvm-dev@lists.llvm.org"><u><font size="4" color="#0000FF">llvm-dev@lists.llvm.org</font></u></a><u><font size="4" color="#0000FF"><br></font></u><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank"><u><font size="4" color="#0000FF">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</font></u></a><font size="4"><br></font></ul><br><BR>
</body></html>