Closed Bug 1589792 Opened 5 years ago Closed 5 years ago

mach configure "Could not find installed Xcode Command Line Tools" on macOS 10.15 Catalina

Categories

(Firefox Build System :: General, defect)

Unspecified
macOS
defect
Not set
normal

Tracking

(firefox71 wontfix, firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox71 --- wontfix
firefox72 --- fixed

People

(Reporter: cpeterson, Assigned: rstewart)

References

(Blocks 2 open bugs)

Details

(Keywords: in-triage)

Attachments

(1 file)

I just updated to macOS 10.15 Catalina and Xcode 11.1. I'm now hitting a mach configure error:

DEBUG: Executing: `pkgutil --pkg-info com.apple.pkg.CLTools_Executables`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
ERROR: Could not find installed Xcode Command Line Tools; run `xcode-select --install` and follow the instructions to install them then try again; if you wish to build without Xcode Command Line Tools installed, add the --disable-xcode-checks configure flag

But I have Xcode Command Line Tools installed. xcode-select --install says "error: command line tools are already installed, use "Software Update" to install updates". Also, my mozconfig is set to use mozbuild's vendored clang builds, not Xcode clang.

Haik says he hit this same configure error when first started testing Calatina betas. Adding ac_add_options --disable-xcode-checks to his mozconfig made the problem go away. I haven't tried that yet, but disabling Xcode checks seems like something we shouldn't do. :)

Blocks: catalina
Blocks: mach-busted
Component: Toolchains → General
Keywords: in-triage

but disabling Xcode checks seems like something we shouldn't do.

Actually, it feels like we can remove it entirely. It was added in bug 1366564 2 years ago, and that was before bug 1522931, which now detects the SDK with xcrun, and all the recent changes to how bindgen is hooked up.

Assignee: nobody → rstewart
Status: NEW → ASSIGNED

I haven't been able to reproduce this. I did encounter the error message in the Description, but running xcode-select --install fixed it. ac_add_options --disable-xcode-checks didn't seem to do anything however. (The build continued from this point and eventually failed, but for reasons that seem to be unrelated to this bug.)

cpeterson, are you still seeing this? If so, have you confirmed that --disable-xcode-checks fixes this issue for you? If it does then I can look at removing these Xcode checks but right now I'm uncertain that it will actually solve your problem.

Status: ASSIGNED → UNCONFIRMED
Ever confirmed: false
Flags: needinfo?(cpeterson)

cpeterson, are you still seeing this? If so, have you confirmed that --disable-xcode-checks fixes this issue for you? If it does then I can look at removing these Xcode checks but right now I'm uncertain that it will actually solve your problem.

Yes. --disable-xcode-checks "fixes" the problem for me and I can then build successfully. If I remove --disable-xcode-checks, the error returns.

Running xcode-select --install still returns the error xcode-select: error: command line tools are already installed, use "Software Update" to install updates. I have the latest Xcode Version 11.1 (11A1027) installed and there are no updates available in the System Preferences' "Software Update" panel.

Flags: needinfo?(cpeterson)

(In reply to Mike Hommey [:glandium] (high latency) from comment #1)

but disabling Xcode checks seems like something we shouldn't do.

Actually, it feels like we can remove it entirely. It was added in bug 1366564 2 years ago, and that was before bug 1522931, which now detects the SDK with xcrun, and all the recent changes to how bindgen is hooked up.

Should bug 1522931 be marked as fixed?

👍 I verified that this patch fixes the configure problem on my machine.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: