<div>Hi,</div><div><br></div><div>The file system we are using is HFS+ and case &nbsp;sensitive (<b style="line-height: 1.5; font-family: 'Lucida Grande'; font-size: 11px;">Format</b><span style="line-height: 1.5; font-size: 12px; font-family: Helvetica;"> :<span class="Apple-tab-span" style="white-space:pre">        </span></span><span style="line-height: 1.5; font-family: 'Lucida Grande'; font-size: 11px;">Mac OS Extended (Case-sensitive, Journaled)</span><span style="line-height: 1.5;">).&nbsp;</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">Can you tell you what the file structure of the project should be? Because I am wondering if it is the wrong position of the files that causes this problem. Because someone has also encountered similar problems, and it is said that the reason is containing two similar directories.</span></div><div><br></div><div><a href="http://lists.cs.uiuc.edu/pipermail/llvmbugs/2011-September/019885.html">http://lists.cs.uiuc.edu/pipermail/llvmbugs/2011-September/019885.html</a><br></div><div><a href="http://lists.cs.uiuc.edu/pipermail/llvmbugs/2011-September/019902.html">http://lists.cs.uiuc.edu/pipermail/llvmbugs/2011-September/019902.html</a><br></div><div><br></div><div>For example, should there be two llvm-symbolizer directories before running build as following?</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; $ <span style="line-height: 1.5;">cd toolchain/clang</span></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; $ find . -name llvm-symbolizer</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>./toolchain/clang/src/llvm/projects/compiler-rt/utils/llvm-symbolizer</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>./toolchain/clang/src/llvm/tools/llvm-symbolizer</div></div><div><br></div><div>And is llvm-symbolizer very important in this project? I just learnt that it <span style="line-height: 1.5; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;">reads object file names and addresses from standard input and prints corresponding source code locations to standard output. But I </span><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">don't know how it is used in this project, can I just remove it? Although maybe I shouldn't but I just tried to removed the </font><span style="line-height: 1.5;">CMakeLists.txt of llvm-symbolizer, and then build.</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="line-height: 1.5;">$ cd /Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/src/llvm/projects/compiler-rt/utils/llvm-symbolizer</span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$ mv CMakeLists.txt ~/Documents/</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$ cd /Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$ make</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>---------------------------------------------------------------------</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Convenience Makefile. Normally this is run from one of the target directories</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>---------------------------------------------------------------------</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>---------------------------------------------------------------------</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Patching LLVM...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>---------------------------------------------------------------------</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>---------------------------------------------------------------------</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Applying patches to /Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/src/llvm</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>---------------------------------------------------------------------</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patches/0001-Bug-13622-Fix-paired-register-for-inline-asm-with-64.patch</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patches/0001-pax-linux-llvm-x86_elf-emit-R_X86_64_32S.patch</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patches/0003-pax-linux-llvm-x86_integrated-as-octa.patch</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patches/0004-pax-linux-llvm-x86_integrated-as-single-quoted-strin.patch</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patches/0005-pax-linux-llvm-x86_kernel-riprel.patch</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Applying patch patches/0001-Bug-13622-Fix-paired-register-for-inline-asm-with-64.patch</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patching file include/llvm/Target/TargetLowering.h</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><font color="#ff0000">Hunk #1 FAILED at 29.</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #2 FAILED at 1651.</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>2 out of 2 hunks FAILED -- rejects in file include/llvm/Target/TargetLowering.h</font></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patching file lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #1 FAILED at 5729.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #2 succeeded at 6198 (offset 458 lines).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #3 succeeded at 6248 (offset 458 lines).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #4 succeeded at 6261 (offset 458 lines).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #5 succeeded at 6292 (offset 458 lines).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><font color="#ff0000">Hunk #6 FAILED at 6393.</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #7 FAILED at 6460.</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #8 FAILED at 6473.</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>4 out of 8 hunks FAILED -- rejects in file lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp</font></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patching file lib/Target/ARM/ARMISelLowering.cpp</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #1 FAILED at 10018.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #2 succeeded at 10315 with fuzz 1 (offset 282 lines).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Hunk #3 succeeded at 10373 (offset 286 lines).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><font color="#ff0000">1 out of 3 hunks FAILED -- rejects in file lib/Target/ARM/ARMISelLowering.cpp</font></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patching file lib/Target/ARM/ARMISelLowering.h</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><font color="#ff0000">Hunk #1 FAILED at 347.</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>1 out of 1 hunk FAILED -- rejects in file lib/Target/ARM/ARMISelLowering.h</font></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>The next patch would create the file test/CodeGen/ARM/inlineasm-64bit.ll,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>which already exists! &nbsp;Applying it anyway.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>patching file test/CodeGen/ARM/inlineasm-64bit.ll</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Patch attempted to create file test/CodeGen/ARM/inlineasm-64bit.ll, which already exists.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><font color="#ff0000">Hunk #1 FAILED at 1.</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>1 out of 1 hunk FAILED -- rejects in file test/CodeGen/ARM/inlineasm-64bit.ll</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>patching file test/CodeGen/ARM/thumb1-inlineasm-64bit.ll</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>Patch patches/0001-Bug-13622-Fix-paired-register-for-inline-asm-with-64.patch does not apply (enforce with -f)</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">        </span>make: *** [/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/state/llvm-patch] Error 1</font></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif"><br></font></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">Are those failures caused from the remove of </font><span style="line-height: 1.5;">CMakeLists.txt?</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">And I want to try to build the latest clang, but it is still downloading.</span></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif"><br></font></div><div>And it seems that someone else has experienced the same problems with me, but no solution was provided :(.&nbsp;<a href="http://pastebin.com/DeTwVx7b">http://pastebin.com/DeTwVx7b</a></div><div><br></div><div>Many thanks!</div><div><sign signid="0"><div style="color:#909090;font-family:Arial Narrow;font-size:12px"><br><br><br>------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div><span lang="EN-US" style="font-family: Arial; line-height: normal;"><span class="apple-style-span">Thanks and best regards,</span></span></div><div><span lang="EN-US" style="font-family: Arial; line-height: normal;"><span class="apple-style-span">Lifang Zhang&nbsp;</span><br><span class="apple-style-span">E: zhanglf<a href="mailto:wuqw@morningtec.cn" target="_blank" style="outline: none; color: rgb(42, 88, 111);">@morning<wbr>tec.cn</a></span>&nbsp;<br><span class="apple-style-span">W</span></span><span class="apple-style-span" style="font-family: Arial; line-height: normal;">: <span lang="EN-US">www.morningtec.cn</span></span><span lang="EN-US" style="font-family: Arial; line-height: normal;">&nbsp;<br><span class="apple-style-span">A:</span><span class="MsoHyperlink">&nbsp;O</span><span class="apple-style-span">ffice 915, Hongyi Building, 2158 Wanyuan Road Minhang Direction, Shanghai, China</span></span></div>
</div></sign></div><div><qzone></qzone></div><div>&nbsp;</div><div><tincludetail><div>&nbsp;</div><div>&nbsp;</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 id="menu_sender"><b>From: </b>&nbsp;"Behan Webster"&lt;behanw@converseincode.com&gt;;</div><div><b>Date: </b>&nbsp;Wed, Jun 18, 2014 11:14 AM</div><div><b>To: </b>&nbsp;"zhanglf"&lt;zhanglf@morningtec.cn&gt;; "Tinti"&lt;viniciustinti@gmail.com&gt;; <wbr></div><div><b>Cc: </b>&nbsp;"岑鹏浩"&lt;cenph@morningtec.cn&gt;; "陈文琦"&lt;chenwq@morningtec.cn&gt;; "llvmlinux"&lt;llvmlinux@lists.linuxfoundation.org&gt;; <wbr></div><div><b>Subject: </b>&nbsp;Re: [llvmlinux] Problem in Sync and fetch needed external projects</div></div><div>&nbsp;</div>
  
    
  
  
    <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>
          <div>&nbsp; &nbsp; &nbsp;$ make all</div>
          <div>&nbsp; &nbsp; &nbsp;...</div>
          <div>&nbsp; &nbsp; &nbsp;<span style="line-height: 1.5;">CMake Error at
              cmake/modules/AddLLVM.cmake:83 (add_executable):</span>
            <div>&nbsp; &nbsp; <font color="#ff0000">add_executable cannot create
                target "llvm-symbolizer" because another</font></div>
            <div><font color="#ff0000">&nbsp; &nbsp; target with the same name
                already exists.</font> &nbsp;The existing target is an</div>
            <div>&nbsp; &nbsp; executable created in source directory</div>
            <div>&nbsp; &nbsp;
"/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/src/llvm/projects/compiler-rt/utils/llvm-symbolizer".</div>
            <div>&nbsp; &nbsp; See documentation for policy CMP0002 for more
              details.</div>
            <div><span style="line-height: 1.5;">&nbsp; &nbsp; ...</span></div>
            <div><span style="line-height: 1.5;">&nbsp; &nbsp; &nbsp;-- Configuring
                incomplete, errors occurred!</span></div>
            <div>&nbsp; &nbsp; See also
"/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeOutput.log".</div>
            <div>&nbsp; &nbsp; See also
"/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeError.log".</div>
            <div>&nbsp; &nbsp; <font color="#ff0000">make: ***
                [/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/state/llvm-configure]
                Error 1</font></div>
          </div>
        </div>
    </blockquote>
    Never seen this error. No idea.<br>
    <br>
    <blockquote cite="mid:tencent_4CC9B1A1237839952D2F5109@qq.com" type="cite">
      <div>
          <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>
        </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>
          <div><span style="line-height: 1.5;">&nbsp; &nbsp;&nbsp; </span><span style="line-height: 1.5;">$ make all</span></div>
          <div>
            <div>&nbsp; &nbsp; &nbsp;CMake Error at
              projects/compiler-rt/utils/CMakeLists.txt:1
              (add_subdirectory):</div>
            <div>&nbsp; &nbsp; &nbsp;add_subdirectory<font color="#3366ff"> </font><font color="#ff0000">given source "llvm-symbolizer" which is
                not an existing</font></div>
            <div>&nbsp; &nbsp; &nbsp;directory.</div>
          </div>
        </div>
    </blockquote>
    Yup. Bad idea. :)<br>
    <br>
    <blockquote cite="mid:tencent_4CC9B1A1237839952D2F5109@qq.com" type="cite">
      <div>
          <div>So what is the problem there? What should I do to fix it?</div>
        </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>
          <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>&nbsp; &nbsp; &nbsp; &nbsp; … </div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; <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">git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux</a></div>
            <div><span class="Apple-tab-span" style="white-space:pre"> </span>
              &nbsp; 7171511..68986c9 &nbsp;master &nbsp; &nbsp; -&gt; 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>
        </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>
  


</div></tincludetail></div>