<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 06/16/14 22:43, zhanglf wrote:<br>
</div>
<blockquote cite="mid:tencent_4CC9B1A1237839952D2F5109@qq.com"
type="cite"><br>
<div><sign signid="0">
<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>
</sign></div>
</blockquote>
Never seen this error. No idea.<br>
<br>
<blockquote cite="mid:tencent_4CC9B1A1237839952D2F5109@qq.com"
type="cite">
<div><sign signid="0">
<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>
</sign></div>
</blockquote>
You should never need to do that. Probably a bad idea.<br>
<br>
<blockquote cite="mid:tencent_4CC9B1A1237839952D2F5109@qq.com"
type="cite">
<div><sign signid="0">
<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>
</sign></div>
</blockquote>
Yup. Bad idea. :)<br>
<br>
<blockquote cite="mid:tencent_4CC9B1A1237839952D2F5109@qq.com"
type="cite">
<div><sign signid="0">
<div>So what is the problem there? What should I do to fix it?</div>
</sign></div>
</blockquote>
Good question. If you figure it out let us know.<br>
<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>
---------------------------------------------------------------------<br>
<br>
<blockquote cite="mid:tencent_4CC9B1A1237839952D2F5109@qq.com"
type="cite">
<div><sign signid="0">
<div><span style="line-height: 1.5;">And if I ran </span><b
style="line-height: 1.5;">$ make CONFIG=config.mk 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 class="Apple-tab-span" style="white-space:pre"> </span>From
<a class="moz-txt-link-freetext" href="git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux">git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux</a></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
7171511..68986c9 master -> master</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><font
color="#ff0000">make[2]: arm-linux-androideabi-gcc:
Command not found</font></div>
</div>
</sign></div>
</blockquote>
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=config.mk 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.<br>
<br>
Behan<br>
<pre class="moz-signature" cols="72">--
Behan Webster
<a class="moz-txt-link-abbreviated" href="mailto:behanw@converseincode.com">behanw@converseincode.com</a></pre>
</body>
</html>