Skip to Content.
Sympa Menu

svadev - Re: [svadev] SAFECode doesn't build on TOT

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

Re: [svadev] SAFECode doesn't build on TOT


Chronological Thread 
  • From: John Criswell <criswell AT illinois.edu>
  • To: Pavel Borzenkov <pavel.borzenkov AT gmail.com>
  • Cc: svadev AT cs.uiuc.edu
  • Subject: Re: [svadev] SAFECode doesn't build on TOT
  • Date: Tue, 11 Oct 2011 14:20:40 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
  • List-id: <svadev.cs.uiuc.edu>
  • Organization: University of Illinois

Dear All,

It seems that I encountered several problems when compiling SAFECode using an LLVM source tree that does not include Clang. I suspect these issues arose when Clang started using its own tblgen program (clang-tblgen); I don't think these problems exist within the source tarball on the SAFECode web site.

I believe I have fixed all of the problems (my test build is still going, but it's gotten past all the errors that I've seen when I removed clang from llvm/tools).

If you svn up, you should be able to compile SAFECode successfully. If you run into problems, try doing a clean checkout and build from scratch. If that doesn't work, please email the list again with the error you're seeing.

Thanks for catching this!

-- John T.


On 10/11/11 9:58 AM, John Criswell wrote:
On 10/11/11 4:21 AM, Pavel Borzenkov wrote:
Hi.

The SAFECode build process fails with the following error:

{{{
make[5]: Entering directory
`/home/pavel/projects/safecode/llvm-svn-build/projects/safecode/tools/clang/include/clang/AST'
make[5]: *** No rule to make target
`/home/pavel/projects/safecode/llvm-svn-build/Debug+Asserts/bin/clang-tblgen',
needed by
`/home/pavel/projects/safecode/llvm-svn-build/projects/safecode/tools/clang/include/clang/AST/Debug+Asserts/Attrs.inc.tmp'.
Stop.
make[5]: Leaving directory
`/home/pavel/projects/safecode/llvm-svn-build/projects/safecode/tools/clang/include/clang/AST'
make[4]: *** [all] Error 1
}}}

SAFECode sources are checked-out into $LLVM_SRC/projects/safecode.
Fascinating. I don't see this error on either Mac OS X or Linux. I
happen to have clang checked out into llvm/tools; maybe my SAFECode
clang build is picking something up from the original clang.

I'll do a clean build with just LLVM, poolalloc, and SAFECode on Mac OS
X and see what happens.

Does changing the line to CLANG_LEVEL = ../.. work also?

-- John T.


The following patch fixes the problem for me:

{{{
Index: tools/clang/utils/TableGen/Makefile
===================================================================
--- tools/clang/utils/TableGen/Makefile (revision 141645)
+++ tools/clang/utils/TableGen/Makefile (working copy)
@@ -7,7 +7,7 @@
#

##===----------------------------------------------------------------------===##

-LEVEL = ../../../..
+LEVEL = ../../../../../..
TOOLNAME = clang-tblgen
LINK_COMPONENTS = TableGen support
REQUIRES_EH := 1
}}}

_______________________________________________
svadev mailing list
svadev AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/svadev





Archive powered by MHonArc 2.6.16.

Top of Page