<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 12:14 AM, Behan Webster <span dir="ltr"><<a href="mailto:behanw@converseincode.com" target="_blank">behanw@converseincode.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 06/16/14 22:43, zhanglf wrote:<br>
</div>
<blockquote type="cite"><br>
<div><u></u>
<div> $ make all</div>
<div> ...</div>
<div> <span style="line-height:1.5">CMake Error at
cmake/modules/AddLLVM.cmake:83 (add_executable):</span>
<div> <font color="#ff0000">add_executable cannot create
target "llvm-symbolizer" because another</font></div>
<div><font color="#ff0000"> target with the same name
already exists.</font> The existing target is an</div>
<div> executable created in source directory</div>
<div>
"/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/src/llvm/projects/compiler-rt/utils/llvm-symbolizer".</div>
<div> See documentation for policy CMP0002 for more
details.</div>
<div><span style="line-height:1.5"> ...</span></div>
<div><span style="line-height:1.5"> -- Configuring
incomplete, errors occurred!</span></div>
<div> See also
"/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeOutput.log".</div>
<div> See also
"/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeError.log".</div>
<div> <font color="#ff0000">make: ***
[/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/state/llvm-configure]
Error 1</font></div>
</div>
<u></u></div>
</blockquote></div>
Never seen this error. No idea.<div class=""><br>
<br>
<blockquote type="cite">
<div><u></u>
<div>
<div>And if I remove the <span style="line-height:1.5"><font color="#3366ff">llvm-symbolize</font>r directory and
build again:</span></div>
</div>
<u></u></div>
</blockquote></div>
You should never need to do that. Probably a bad idea.<div class=""><br>
<br>
<blockquote type="cite">
<div><u></u>
<div><span style="line-height:1.5"> </span><span style="line-height:1.5">$ make all</span></div>
<div>
<div> CMake Error at
projects/compiler-rt/utils/CMakeLists.txt:1
(add_subdirectory):</div>
<div> add_subdirectory<font color="#3366ff"> </font><font color="#ff0000">given source "llvm-symbolizer" which is
not an existing</font></div>
<div> directory.</div>
</div>
<u></u></div>
</blockquote></div>
Yup. Bad idea. :)<div class=""><br>
<br>
<blockquote type="cite">
<div><u></u>
<div>So what is the problem there? What should I do to fix it?</div>
<u></u></div>
</blockquote></div>
Good question. If you figure it out let us know.<br></div></blockquote><div><br></div><div>I am not sure but I would guess that this is related to your CMake version. Try to get the lasted one.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<br>
Just to get things working you might want to just concentrate on the
toolchain. For the moment it means no need for a config file either
if you do this and that makes it less effort for now.<br>
<br>
$ cd toolchain/clang<br>
$ make<br>
<br>
You'll see the following warning, but it's fine:<br>
<br>
---------------------------------------------------------------------<br>
I: Convenience Makefile. Normally this is run from one of the target
directories<br>
---------------------------------------------------------------------<div class=""><br>
<br>
<blockquote type="cite">
<div><u></u>
<div><span style="line-height:1.5">And if I ran </span><b style="line-height:1.5">$ make CONFIG=<a href="http://config.mk" target="_blank">config.mk</a> sync-all</b><span style="line-height:1.5"> again, following information
was displayed:</span>
<div> … </div>
<div> <span style="line-height:1.5">Unpacking
objects: 100% (6/6), done.</span></div>
<div><span style="white-space:pre-wrap"> </span>From
<a>git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux</a></div>
<div><span style="white-space:pre-wrap"> </span>
7171511..68986c9 master -> master</div>
<div><span style="white-space:pre-wrap"> </span><font color="#ff0000">make[2]: arm-linux-androideabi-gcc:
Command not found</font></div>
</div>
<u></u></div>
</blockquote></div>
This isn't an issue. The cross android toolchain just hasn't been
downloaded yet. It tends to happen after building clang.<br>
<br>
You can force all things to download with a:<br>
<br>
$ make CONFIG=<a href="http://config.mk" target="_blank">config.mk</a> fetch-all<br>
<br>
But this "Command not found" isn't an issue for now. It would be if
you were in the middle of compiling the kernel when it happened.<div class=""><br>
<br>
Behan<br>
<pre cols="72">--
Behan Webster
<a href="mailto:behanw@converseincode.com" target="_blank">behanw@converseincode.com</a></pre></div></div></blockquote></div><div><br></div>-- <br><div dir="ltr">Simplicity is the ultimate sophistication<br></div>
</div></div>