Gentoo Archives: gentoo-alt

From: Michael Weiser <michael@×××××××××××××××.net>
To: gentoo-alt@l.g.o
Cc: "Han H." <twn@×××××××.com>
Subject: Re: [gentoo-alt] Update clang failed (El Captain)
Date: Fri, 02 Sep 2016 21:00:37
Message-Id: 20160902202502.otz5gb7qcqw35qeq@weiser.dinsnail.net
In Reply to: [gentoo-alt] Update clang failed (El Captain) by "Han H."
1 Hello Han,
2
3 On Fri, Sep 02, 2016 at 07:31:02PM +0000, Han H. wrote:
4
5 > Yes /usr/include is there. I am not able to install mac packages so an update must not be run by me.
6
7 > $ xcodebuild -version -sdk macosx
8 > xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
9
10 I think thats your problem right there. Think about this sequence of
11 commands:
12
13 osx:~ amichael$ xcodebuild -version -sdk macosx Path
14 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
15 osx:~ amichael$ sudo xcode-select -s /Library/Developer/CommandLineTools
16 osx:~ amichael$ xcodebuild -version -sdk macosx Path
17 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
18 osx:~ amichael$ xcodebuild -version -sdk macosx Path 2>/dev/null
19 osx:~ amichael$ echo $?
20 1
21 osx:~ amichael$ sudo xcode-select -s /Applications/Xcode.app
22 osx:~ amichael$ xcodebuild -version -sdk macosx Path 2>/dev/null
23 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
24
25 So just have someone with sudo/root access on the box fix up the Xcode
26 installation using a command like:
27
28 sudo xcode-select -s /Applications/Xcode.app
29
30 ... and you should be all set.
31
32 > I saw in the check
33
34 > -- Finding valid architectures for osx...
35 > -- OSX supported arches: i386;x86_64;x86_64h
36 > -- Finding valid architectures for 10.4...
37 > -- OSX 10.4 supported arches: i386;x86_64;x86_64h
38 > -- Compiler-RT supported architectures: i386;x86_64;x86_64h
39
40 > does that mean it detects my system is 10.4?
41
42 No, they've got workarounds for functions that hadn't been invented yet
43 on 10.4. I guess they're detecting what platforms they need to compile
44 those for. I think you can ignore that.
45
46 > I also tried 3.8.1-r2 but same thing happens. llvm-3.9.0_rc3 requires
47 > more upgrade (cmake...) and not sure if uncomplete upgrade (if cmake
48 > updates and llvm remains 3.7.1) will cause a broken toolchain.
49
50 My compile of 3.8.1 went fine, BTW.
51
52 BTW: I'll be out on holiday starting now. So sorry if you have followup
53 questions and I don't respond for a while.
54 --
55 bye, Michael
56 weiser.dinsnail.net/