<div dir="ltr">Hi,<br><div class="gmail_extra"><br></div><div class="gmail_extra">Which file system are you using? If it is NTFS or FAT it won&#39;t work. It might work or not on HFS or HFS+ (Apple one) depending on case sensitivity of this FS.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Vinícius</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 11:46 AM, zhanglf <span dir="ltr">&lt;<a href="mailto:zhanglf@morningtec.cn" target="_blank">zhanglf@morningtec.cn</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div><br></div><div>I also tried it on Ubuntu, but got same problems, so it shouldn&#39;t be result from OS, I think</div>
<div><br></div><div><div class=""><div>CMake Error at cmake/modules/AddLLVM.cmake:83 (add_executable):</div><div>  add_executable cannot create target &quot;llvm-symbolizer&quot; because another</div><div>  target with the same name already exists.  The existing target is an</div>
<div>  executable created in source directory</div></div><div>  &quot;/media/psf/Host/Users/sophi/Documents/LLVMLinux/llvmlinux/toolchain/clang/src/llvm/projects/compiler-rt/utils/llvm-symbolizer&quot;.</div><div><div class="h5">
<div>  See documentation for policy CMP0002 for more details.</div><div>Call Stack (most recent call first):</div><div>  cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)</div><div>  tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)</div>
<div><br></div><div><br></div><div>CMake Error at cmake/modules/LLVM-Config.cmake:58 (target_link_libraries):</div><div>  Attempt to add link library &quot;LLVMDebugInfo&quot; to target &quot;llvm-symbolizer&quot;</div><div>
  which is not built in this directory.</div><div>Call Stack (most recent call first):</div><div>  cmake/modules/LLVM-Config.cmake:50 (explicit_llvm_config)</div><div>  cmake/modules/AddLLVM.cmake:86 (llvm_config)</div><div>
  cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)</div><div>  tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)</div><div><br></div><div><br></div><div>CMake Error at cmake/modules/LLVM-Config.cmake:58 (target_link_libraries):</div>
<div>  Attempt to add link library &quot;LLVMObject&quot; to target &quot;llvm-symbolizer&quot; which</div><div>  is not built in this directory.</div><div>Call Stack (most recent call first):</div><div>  cmake/modules/LLVM-Config.cmake:50 (explicit_llvm_config)</div>
<div>  cmake/modules/AddLLVM.cmake:86 (llvm_config)</div><div>  cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)</div><div>  tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)</div><div><br></div><div><br></div><div>
CMake Error at cmake/modules/LLVM-Config.cmake:58 (target_link_libraries):</div><div>  Attempt to add link library &quot;LLVMSupport&quot; to target &quot;llvm-symbolizer&quot; which</div><div>  is not built in this directory.</div>
<div>Call Stack (most recent call first):</div><div>  cmake/modules/LLVM-Config.cmake:50 (explicit_llvm_config)</div><div>  cmake/modules/AddLLVM.cmake:86 (llvm_config)</div><div>  cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)</div>
<div>  tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)</div><div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div></div></div><div>make: *** [/media/psf/Host/Users/sophi/Documents/LLVMLinux/llvmlinux/toolchain/clang/state/llvm-configure] Error 1</div>
<div><br></div><div>$ cmake --version</div><div>cmake version 2.8.9</div></div><div><br></div><div>Thanks </div><div><u></u><div style="color:#909090;font-family:Arial Narrow;font-size:12px"><br><br><br><br>------------------</div>
<div><div class="h5"><div style="font-size:14px;font-family:Verdana;color:#000"><div><span lang="EN-US" style="font-family:Arial;line-height:normal"><span> </span><br><span>E: zhanglf<a href="mailto:wuqw@morningtec.cn" style="outline:none;color:rgb(42,88,111)" target="_blank">@morning<u></u>tec.cn</a></span> <br>
<span>W</span></span><span style="font-family:Arial;line-height:normal">: <span lang="EN-US"><a href="http://www.morningtec.cn" target="_blank">www.morningtec.cn</a></span></span><span lang="EN-US" style="font-family:Arial;line-height:normal"> <br>
<span>A:</span><span> O</span><span>ffice 915, Hongyi Building, 2158 Wanyuan Road Minhang Direction, Shanghai, China</span></span></div>
</div><u></u></div></div></div><div class="HOEnZb"><div class="h5"><div><u></u><u></u></div><div> </div><div><u></u><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000"><div style="FONT-SIZE:12px;FONT-FAMILY:Arial Narrow;padding:2px 0 2px 0">
------------------ Original ------------------</div><div style="FONT-SIZE:12px;background:#efefef;padding:8px"><div><b>From: </b> &quot;Tinti&quot;&lt;<a href="mailto:viniciustinti@gmail.com" target="_blank">viniciustinti@gmail.com</a>&gt;;</div>
<div><b>Date: </b> Wed, Jun 18, 2014 08:21 PM</div><div><b>To: </b> &quot;Behan Webster&quot;&lt;<a href="mailto:behanw@converseincode.com" target="_blank">behanw@converseincode.com</a>&gt;; <u></u></div><div><b>Cc: </b> &quot;zhanglf&quot;&lt;<a href="mailto:zhanglf@morningtec.cn" target="_blank">zhanglf@morningtec.cn</a>&gt;; &quot;岑鹏浩&quot;&lt;<a href="mailto:cenph@morningtec.cn" target="_blank">cenph@morningtec.cn</a>&gt;; &quot;陈文琦&quot;&lt;<a href="mailto:chenwq@morningtec.cn" target="_blank">chenwq@morningtec.cn</a>&gt;; &quot;llvmlinux&quot;&lt;<a href="mailto:llvmlinux@lists.linuxfoundation.org" target="_blank">llvmlinux@lists.linuxfoundation.org</a>&gt;; <u></u></div>
<div><b>Subject: </b> Re: [llvmlinux] Problem in Sync and fetch needed external projects</div></div><div> </div><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">&lt;<a href="mailto:behanw@converseincode.com" target="_blank">behanw@converseincode.com</a>&gt;</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>
    <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 &quot;llvm-symbolizer&quot; 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>   
&quot;/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/src/llvm/projects/compiler-rt/utils/llvm-symbolizer&quot;.</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
&quot;/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeOutput.log&quot;.</div>
            <div>    See also
&quot;/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeError.log&quot;.</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><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><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 &quot;llvm-symbolizer&quot; which is
                not an existing</font></div>
            <div>     directory.</div>
          </div>
        <u></u></div>
    </blockquote></div>
    Yup. Bad idea. :)<div><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&#39;ll see the following warning, but it&#39;s fine:<br>
    <br>
---------------------------------------------------------------------<br>
    I: Convenience Makefile. Normally this is run from one of the target
    directories<br>
---------------------------------------------------------------------<div><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     -&gt; 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&#39;t an issue. The cross android toolchain just hasn&#39;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 &quot;Command not found&quot; isn&#39;t an issue for now. It would be if
    you were in the middle of compiling the kernel when it happened.<div><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>

</div><u></u></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Simplicity is the ultimate sophistication<br></div>
</div></div>