sw_vers on Linux

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

sw_vers on Linux

lbalbalba
Hi,


I have no idea who to report this to, but ... somewhere in the
configure build process of latest svn on Linux, there is a call to
'sw_vers'. Some googling leads me to believe that this is a command
that only exists on Apple, so should not be called on Linux. Just my
2$. here's the relevant output :


make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[4]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools/extra'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
/bin/sh: sw_vers: command not found
make[5]: Entering directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[5]: Leaving directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs'
make[4]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs/tools'



Regards,

John Smith
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: sw_vers on Linux

Eric Christopher
FWIW I see this too, pretty sure it was either Bob or Daniel?

-eric


On Fri, Jan 25, 2013 at 7:34 AM, John Smith <[hidden email]> wrote:
Hi,


I have no idea who to report this to, but ... somewhere in the
configure build process of latest svn on Linux, there is a call to
'sw_vers'. Some googling leads me to believe that this is a command
that only exists on Apple, so should not be called on Linux. Just my
2$. here's the relevant output :


make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[4]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools/extra'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
/bin/sh: sw_vers: command not found
make[5]: Entering directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[5]: Leaving directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs'
make[4]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs/tools'



Regards,

John Smith
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: sw_vers on Linux

Bob Wilson
On Jan 25, 2013, at 8:19 AM, Eric Christopher <[hidden email]> wrote:

FWIW I see this too, pretty sure it was either Bob or Daniel?

-eric

There's a use of it in compiler_rt's make/platform/clang_darwin.mk that Daniel added in svn 166114. It looks like that makefile fragment gets included on all platforms, so we should insert a check before trying to run sw_vers.  Daniel, can you take care of that?



On Fri, Jan 25, 2013 at 7:34 AM, John Smith <[hidden email]> wrote:
Hi,


I have no idea who to report this to, but ... somewhere in the
configure build process of latest svn on Linux, there is a call to
'sw_vers'. Some googling leads me to believe that this is a command
that only exists on Apple, so should not be called on Linux. Just my
2$. here's the relevant output :


make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[4]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools/extra'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
/bin/sh: sw_vers: command not found
make[5]: Entering directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[5]: Leaving directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs'
make[4]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs/tools'



Regards,

John Smith
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: sw_vers on Linux

Daniel Dunbar
Should be fixed in r173465, thanks for the report.

 - Daniel


On Fri, Jan 25, 2013 at 8:40 AM, Bob Wilson <[hidden email]> wrote:
On Jan 25, 2013, at 8:19 AM, Eric Christopher <[hidden email]> wrote:

FWIW I see this too, pretty sure it was either Bob or Daniel?

-eric

There's a use of it in compiler_rt's make/platform/clang_darwin.mk that Daniel added in svn 166114. It looks like that makefile fragment gets included on all platforms, so we should insert a check before trying to run sw_vers.  Daniel, can you take care of that?



On Fri, Jan 25, 2013 at 7:34 AM, John Smith <[hidden email]> wrote:
Hi,


I have no idea who to report this to, but ... somewhere in the
configure build process of latest svn on Linux, there is a call to
'sw_vers'. Some googling leads me to believe that this is a command
that only exists on Apple, so should not be called on Linux. Just my
2$. here's the relevant output :


make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/cpp11-migrate'
make[5]: Entering directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[5]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/tools/extra/test'
make[4]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools/extra'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/tools'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
/bin/sh: sw_vers: command not found
make[5]: Entering directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[5]: Leaving directory `/usr/local/src/llvm/llvm/projects/compiler-rt'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/compiler-rt'
make[4]: Entering directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[4]: Leaving directory
`/usr/local/src/llvm/build/tools/clang/runtime/libcxx'
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/runtime'
make[3]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs'
make[4]: Entering directory `/usr/local/src/llvm/build/tools/clang/docs/tools'



Regards,

John Smith
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev