<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - make/lib_platforms.mk:80: *** 'make/platform/clang_darwin.mk': must define one of 'UniversalArchs' and 'Arch'."
   href="http://llvm.org/bugs/show_bug.cgi?id=15316">15316</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>make/lib_platforms.mk:80: *** 'make/platform/clang_darwin.mk': must define one of 'UniversalArchs' and 'Arch'.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>riyaz@synopsys.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I was initially getting an error in clang_dwarf.mk about 'no sw_vers' and saw
that it is supposedly fixed by r173465 and r173977. Since I am trying to build
LLVM/COMPILER-RT/CLANG from Version 3.2 tarball, I manually modified
clang_dwarf.mk. The relevant portion of clang_dwarf.mk now looks like:

ifneq ($(shell which sw_vers),)
ifneq ($(shell sw_vers -productVersion | grep 10.6),)
UniversalArchs.ios := $(filter-out armv7, $(UniversalArchs.ios))
UniversalArchs.cc_kext := $(filter-out armv7, $(UniversalArchs.cc_kext))
UniversalArchs.cc_kext_ios5 := $(filter-out armv7,
$(UniversalArchs.cc_kext_ios5))
UniversalArchs.profile_ios := $(filter-out armv7,
$(UniversalArchs.profile_ios))
endif
endif


The 'no sw_vers' error is now gone but the build still fails with:

make/lib_platforms.mk:80: *** 'make/platform/clang_darwin.mk': must define one
of 'UniversalArchs' and 'Arch'.  Stop.

What is the fix for this? Why does clang_darwin.mk get included for a Linux
x86_64 build?

configure is run with the following options:

--disable-shared --enable-optimized --disable-assertions
--enable-targets=x86_64</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>