[cfe-users] 'no sw_vers' Error during llvm source compilation in linux on rhel

Appu Mathew deanstag at gmail.com
Mon Feb 11 21:22:24 PST 2013


I am trying to build llvm/clang as per
http://clang.llvm.org/get_started.html . 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.

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/lib_platforms.mk:80: *** 'make/platform/clang_darwin.mk': 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

Has any1 else seen this issue?


<http://stackoverflow.com/questions/tagged/build-error>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20130212/3fd5e66f/attachment.html>


More information about the cfe-users mailing list