<div dir="ltr">Hi,<div><br></div><div>I am installing OS X and will give a try too. I let you know about my progress.</div><div><br></div><div>Regards,</div><div>Vinicius</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jun 19, 2014 at 7:05 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>The file system we are using is HFS+ and case  sensitive (<b style="line-height:1.5;font-family:&#39;Lucida Grande&#39;;font-size:11px">Format</b><span style="line-height:1.5;font-size:12px;font-family:Helvetica"> :<span style="white-space:pre-wrap">        </span></span><span style="line-height:1.5;font-family:&#39;Lucida Grande&#39;;font-size:11px">Mac OS Extended (Case-sensitive, Journaled)</span><span style="line-height:1.5">). </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" target="_blank">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" target="_blank">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>        $ <span style="line-height:1.5">cd toolchain/clang</span></div><div>
<div class=""><div>        $ find . -name llvm-symbolizer</div></div><div><span style="white-space:pre-wrap">        </span>./toolchain/clang/src/llvm/projects/compiler-rt/utils/llvm-symbolizer</div><div><span style="white-space:pre-wrap">        </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:&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,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&#39;t know how it is used in this project, can I just remove it? Although maybe I shouldn&#39;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">        </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 style="white-space:pre-wrap">        </span>$ mv CMakeLists.txt ~/Documents/</div><div><span style="white-space:pre-wrap">        </span>$ cd /Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang</div><div><span style="white-space:pre-wrap">        </span>$ make</div>
<div><span style="white-space:pre-wrap">        </span>---------------------------------------------------------------------</div><div class=""><div><span style="white-space:pre-wrap">        </span>Convenience Makefile. Normally this is run from one of the target directories</div>
<div><span style="white-space:pre-wrap">        </span>---------------------------------------------------------------------</div></div><div class=""><div><span style="white-space:pre-wrap">        </span>---------------------------------------------------------------------</div>
<div><span style="white-space:pre-wrap">        </span>Patching LLVM...</div><div><span style="white-space:pre-wrap">        </span>---------------------------------------------------------------------</div><div><span style="white-space:pre-wrap">        </span>---------------------------------------------------------------------</div>
<div><span style="white-space:pre-wrap">        </span>Applying patches to /Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/src/llvm</div><div><span style="white-space:pre-wrap">        </span>---------------------------------------------------------------------</div>
</div><div><span style="white-space:pre-wrap">        </span>patches/0001-Bug-13622-Fix-paired-register-for-inline-asm-with-64.patch</div><div><span style="white-space:pre-wrap">        </span>patches/0001-pax-linux-llvm-x86_elf-emit-R_X86_64_32S.patch</div>
<div><span style="white-space:pre-wrap">        </span>patches/0003-pax-linux-llvm-x86_integrated-as-octa.patch</div><div><span style="white-space:pre-wrap">        </span>patches/0004-pax-linux-llvm-x86_integrated-as-single-quoted-strin.patch</div>
<div><span style="white-space:pre-wrap">        </span>patches/0005-pax-linux-llvm-x86_kernel-riprel.patch</div><div><span style="white-space:pre-wrap">        </span>Applying patch patches/0001-Bug-13622-Fix-paired-register-for-inline-asm-with-64.patch</div>
<div><span style="white-space:pre-wrap">        </span>patching file include/llvm/Target/TargetLowering.h</div><div><span style="white-space:pre-wrap">        </span><font color="#ff0000">Hunk #1 FAILED at 29.</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>Hunk #2 FAILED at 1651.</font></div>
<div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>2 out of 2 hunks FAILED -- rejects in file include/llvm/Target/TargetLowering.h</font></div><div><span style="white-space:pre-wrap">        </span>patching file lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp</div>
<div><span style="white-space:pre-wrap">        </span>Hunk #1 FAILED at 5729.</div><div><span style="white-space:pre-wrap">        </span>Hunk #2 succeeded at 6198 (offset 458 lines).</div><div><span style="white-space:pre-wrap">        </span>Hunk #3 succeeded at 6248 (offset 458 lines).</div>
<div><span style="white-space:pre-wrap">        </span>Hunk #4 succeeded at 6261 (offset 458 lines).</div><div><span style="white-space:pre-wrap">        </span>Hunk #5 succeeded at 6292 (offset 458 lines).</div><div><span style="white-space:pre-wrap">        </span><font color="#ff0000">Hunk #6 FAILED at 6393.</font></div>
<div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>Hunk #7 FAILED at 6460.</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>Hunk #8 FAILED at 6473.</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>4 out of 8 hunks FAILED -- rejects in file lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp</font></div>
<div><span style="white-space:pre-wrap">        </span>patching file lib/Target/ARM/ARMISelLowering.cpp</div><div><span style="white-space:pre-wrap">        </span>Hunk #1 FAILED at 10018.</div><div><span style="white-space:pre-wrap">        </span>Hunk #2 succeeded at 10315 with fuzz 1 (offset 282 lines).</div>
<div><span style="white-space:pre-wrap">        </span>Hunk #3 succeeded at 10373 (offset 286 lines).</div><div><span style="white-space:pre-wrap">        </span><font color="#ff0000">1 out of 3 hunks FAILED -- rejects in file lib/Target/ARM/ARMISelLowering.cpp</font></div>
<div><span style="white-space:pre-wrap">        </span>patching file lib/Target/ARM/ARMISelLowering.h</div><div><span style="white-space:pre-wrap">        </span><font color="#ff0000">Hunk #1 FAILED at 347.</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>1 out of 1 hunk FAILED -- rejects in file lib/Target/ARM/ARMISelLowering.h</font></div>
<div><span style="white-space:pre-wrap">        </span>The next patch would create the file test/CodeGen/ARM/inlineasm-64bit.ll,</div><div><span style="white-space:pre-wrap">        </span>which already exists!  Applying it anyway.</div>
<div><span style="white-space:pre-wrap">        </span>patching file test/CodeGen/ARM/inlineasm-64bit.ll</div><div><span style="white-space:pre-wrap">        </span>Patch attempted to create file test/CodeGen/ARM/inlineasm-64bit.ll, which already exists.</div>
<div><span style="white-space:pre-wrap">        </span><font color="#ff0000">Hunk #1 FAILED at 1.</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>1 out of 1 hunk FAILED -- rejects in file test/CodeGen/ARM/inlineasm-64bit.ll</font></div>
<div><font color="#ff0000"><span style="white-space:pre-wrap">        </span>patching file test/CodeGen/ARM/thumb1-inlineasm-64bit.ll</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap">        </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 style="white-space:pre-wrap">        </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 :(. <a href="http://pastebin.com/DeTwVx7b" target="_blank">http://pastebin.com/DeTwVx7b</a></div><div><br></div><div>
Many thanks!</div><div><u></u><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>Thanks and best regards,</span></span></div>
<div><span lang="EN-US" style="font-family:Arial;line-height:normal"><span>Lifang Zhang </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"> <div class="">
<br><span>A:</span><span> O</span><span>ffice 915, Hongyi Building, 2158 Wanyuan Road Minhang Direction, Shanghai, China</span></div></span></div>
</div><u></u></div><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;Behan Webster&quot;&lt;<a href="mailto:behanw@converseincode.com" target="_blank">behanw@converseincode.com</a>&gt;;</div><div><b>Date: </b> Wed, Jun 18, 2014 11:14 AM</div>
<div class=""><div><b>To: </b> &quot;zhanglf&quot;&lt;<a href="mailto:zhanglf@morningtec.cn" target="_blank">zhanglf@morningtec.cn</a>&gt;; &quot;Tinti&quot;&lt;<a href="mailto:viniciustinti@gmail.com" target="_blank">viniciustinti@gmail.com</a>&gt;; <u></u></div>
</div><div><b>Cc: </b> &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 class=""><div><b>Subject: </b> Re: [llvmlinux] Problem in Sync and fetch needed external projects</div></div></div><div> </div><div class="">
  
    
  
  
    <div>On 06/16/14 22:43, zhanglf wrote:<br>
    </div>
    <blockquote type="cite"><br>
      <div>
          <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>
        </div>
    </blockquote>
    Never seen this error. No idea.<br>
    <br>
    <blockquote 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 type="cite">
      <div>
          <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>
        </div>
    </blockquote>
    Yup. Bad idea. :)<br>
    <br>
    <blockquote 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></div><div class="">
    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></div><div class="">
    $ cd toolchain/clang<br>
    $ make<br>
    <br></div><div class="">
    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>
---------------------------------------------------------------------<br>
    <br>
    <blockquote type="cite">
      <div>
          <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>
        </div>
    </blockquote>
    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.<br>
    <br></div><div class="">
    Behan<br>
    <pre cols="72">-- 
Behan Webster
<a href="mailto:behanw@converseincode.com" target="_blank">behanw@converseincode.com</a></pre>
  


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