[cfe-dev] clang-wpa link failure.

Xu Zhongxing xuzhongxing at foxmail.com
Tue May 31 00:20:34 PDT 2011


Hi Andy,


I fixed the linking by reordering libParse.a before libSema.a in r132329.
 
 
------------------ Original ------------------
From:  "Andy Somerville"<andy.somerville at gmail.com>;
Date:  Tue, May 31, 2011 02:00 PM
To:  "cfe-dev at cs.uiuc.edu Developers"<cfe-dev at cs.uiuc.edu>; 

Subject:  [cfe-dev] clang-wpa link failure.

 
 It appears that the build for clang-wpa is out of date and will not
link correctly with the current makefile.

I was able to get it to link with a second mention of clangSema.a
though there might be a library reordering that avoid the double
mention.


Here's the diff: (the CMakeLists might need updating as well)


llvm/tools/clang/examples/wpa$ svn diff


Index: Makefile
===================================================================
--- Makefile	(revision 132326)
+++ Makefile	(working copy)
@@ -10,14 +10,14 @@
 CLANG_LEVEL := ../..

 TOOLNAME = clang-wpa
-NO_INSTALL = 1
-
+NO_INSTALL = 0
+#1
 # No plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1

 LINK_COMPONENTS := asmparser bitreader mc core
 USEDLIBS = clangStaticAnalyzerFrontend.a
clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a clangIndex.a
clangFrontend.a clangDriver.a \
 	   clangSema.a clangAnalysis.a clangSerialization.a \
-           clangAST.a clangParse.a clangLex.a clangBasic.a
+           clangAST.a clangParse.a clangSema.a clangLex.a clangBasic.a

 include $(CLANG_LEVEL)/Makefile



     Andy
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110531/a14d1db0/attachment.html>


More information about the cfe-dev mailing list