[cfe-dev] clang-wpa link failure.

Andy Somerville andy.somerville at gmail.com
Mon May 30 23:00:49 PDT 2011


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



More information about the cfe-dev mailing list