<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
I'm interested in PowerPC development and I tried to build LLVM for cross-compiling today and I got the following error:<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
[ 94%] Building CXX object tools/llvm-config/CMakeFiles/llvm-config.dir/llvm-config.cpp.o
/home/vinicius/Projetos/llvm/tools/llvm-config/llvm-config.cpp:45:35: fatal error: LibraryDependencies.inc: No such file or directory
 #include "LibraryDependencies.inc"
                                   ^
compilation terminated.
tools/llvm-config/CMakeFiles/llvm-config.dir/build.make:58: recipe for target 'tools/llvm-config/CMakeFiles/llvm-config.dir/llvm-config.cpp.o' failed
make[2]: *** [tools/llvm-config/CMakeFiles/llvm-config.dir/llvm-config.cpp.o] Error 1
CMakeFiles/Makefile2:7101: recipe for target 'tools/llvm-config/CMakeFiles/llvm-config.dir/all' failed
make[1]: *** [tools/llvm-config/CMakeFiles/llvm-config.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
</PRE>
</BLOCKQUOTE>
<BR>
I don't know how to fix and I'd appreciate any help.<BR>
<BR>
The options I used to compile were:<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    cmake ../.. -DCMAKE_CROSSCOMPILING=True -DLLVM_DEFAULT_TARGET_TRIPLE=ppc-linux-gnu -DLLVM_TARGET_ARCH=powerpc<BR>
</BLOCKQUOTE>
<BR>
The "version" I'm using is from the git mirror:<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
commit 94b3a88395ff0ea6c253efe5dd2b9d400ffe7c9d
Author: Jordan Rose <jordan_rose@apple.com>
Date:   Wed Jan 29 19:14:23 2014 +0000

    Remove C++11ism from r200407.
    
    Oops!
    
    git-svn-id: <A HREF="https://llvm.org/svn/llvm-project/llvm/trunk@200412">https://llvm.org/svn/llvm-project/llvm/trunk@200412</A> 91177308-0d34-0410-b5e6-96231b3b80d8
</PRE>
</BLOCKQUOTE>
<BR>
I already have a "normal" (non cross-compiling) and stable (3.4) llvm installed on my system (ArchLinux, where everything is at the latest release, there is no separation of *-dev packages and they avoid to apply local patches on top of upstream code).<BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<FONT COLOR="#969696">Vinícius dos Santos Oliveira</FONT><BR>
<FONT COLOR="#969696"><A HREF="https://about.me/vinipsmaker">https://about.me/vinipsmaker</A></FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>