<div dir="ltr"><table><tbody><tr><td class=""><div class="">
<span class=""></span><br>
</div>
</td>
<td class="">
<div>
<div class="">
<p>I am trying to build llvm/clang as per <a href="http://clang.llvm.org/get_started.html" rel="nofollow">http://clang.llvm.org/get_started.html</a> . My gcc version is 4.7.2 (upgraded from an older version 3.4.6 thinking that was the problem).
I get this error when i try to build llvm on my RHEL machine. I have followed the steps, checked out the latest llvm,clang,compiler-rt through svn, and ran configure and make in the build directory. After a while i get the following error.<br>
</p>
<pre><code>make[4]: Entering directory `/ws/apjoseph-bgl/src/llvm/build/tools/clang/runtime/compiler-rt' which: no sw_vers in (<PATH VARIABLE VALUES>)
make[5]: Entering directory `/ws/apjoseph-bgl/src/llvm/llvm/projects/compiler-rt'
make/<a href="http://lib_platforms.mk:80">lib_platforms.mk:80</a>: *** 'make/platform/<a href="http://clang_darwin.mk">clang_darwin.mk</a>': must define one of 'UniversalArchs' and 'Arch'. Stop.
make[5]: Leaving directory `/ws/apjoseph-bgl/src/llvm/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
make[4]: Leaving directory `/ws/apjoseph-bgl/src/llvm/build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory `/ws/apjoseph-bgl/src/llvm/build/tools/clang/runtime'
make[2]: *** [all] Error 1
</code></pre>
<p>Has any1 else seen this issue?</p><p></p></div>
<div class="">
<br><a href="http://stackoverflow.com/questions/tagged/build-error" class="" title="show questions tagged 'build-error'" rel="tag"></a>
</div></div></td></tr></tbody></table></div>