Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.apps Subject: Re: I need help with XCode 7.3 Date: 28 Mar 2016 18:18:09 GMT Organization: People for the Ethical Treatment of Pirates Lines: 39 Message-ID: References: X-Trace: individual.net 8+fbzpvBK52VazFGLS/rWw0PU/buanmhkSI1dnZH5WF2O9DmvX Cancel-Lock: sha1:N6TJjjgFBI4+lnN+THVMHIvG4OY= X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.apps:34968 On 2016-03-28, Tom Stiller wrote: > On 2016-03-27, Jolly Roger wrote: >> >> [jr on macpro at Desktop]# cc --version >> Apple LLVM version 7.3.0 (clang-703.0.29) >> Target: x86_64-apple-darwin15.4.0 >> Thread model: posix >> InstalledDir: >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault. >> /xctoolchain/usr/bin >> [jr on macpro at Desktop]# cc hello.c -o hello >> [jr on macpro at Desktop]# file hello >> hello: Mach-O 64-bit executable x86_64 >> [jr on macpro at Desktop]# ./hello >> Hello world. >> > OK. So When I entered cc --version > I got the same complaints couldn't understand kern.osversion `15.4.0' > along with an obsolete version number (which I neglected to copy). > and which cc still returned /Developer/usr/bin/cc > > Now this system has been upgraded in place many times and I can't > remember when the /Developer directory was first installed so I just > wiped it out and re-installed XCode and the Command-line tools and now > everything is neat and my test compiles are clean and execute as > expected. > > Many thanks to all who offered help and advise. Ah. Yes, /Developer was deprecated a while ago. I suppose the shell was finding the cc in that location before others. You may want to check your PATH environment variable and remove /Developer from it as well if it's there. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR