Opened 5 years ago

Last modified 5 months ago

#21708 new enhancement

macOS: Detect Xcode version

Reported by: mkoeppe Owned by:
Priority: major Milestone: sage-9.5
Component: build: configure Keywords:
Cc: vbraun, embray, jdemeyer, tscrim, aschilling, slelievre Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Change History (11)

comment:1 in reply to: ↑ description Changed 5 years ago by jdemeyer

Replying to mkoeppe:

We should detect the XCode version in configure and refuse to build until the user has updated XCode to latest.

I don't like these kind of checks. They are often annoying are rarely helpful. (I remember that MPIR at some point had very strict compiler checks. Often, those checks would fail and MPIR would refuse to build. But if the check was bypassed, MPIR built just fine)

Besides, are we sure that "Outdated XCode versions frequently cause build trouble"? I know that badly/partially installed XCode versions frequently cause build trouble. If you want to add a check, I would focus on that first.

comment:2 Changed 5 years ago by mkoeppe

I actually don't like such tests either, but I think it's better than having users find out after hours of building sage when building one of the later packages breaks.

I don't know much about the project's infrastructure for testing (buildbots?). So I don't know if we ever test automatically on different Mac OS versions, different XCode versions etc.

Travis CI has some infrastructure for that: https://docs.travis-ci.com/user/osx-ci-environment/ Perhaps we can use it?

comment:4 follow-up: Changed 5 years ago by vbraun

  • I agree that its super annoying
  • Since the Xcode version is loosely tied to the OS version we would also effectively shut out older OSX versions.
  • Apple tends to cut off developers when they don't use the latest Xcode as well.
  • The free TravisCI is afaik too slow to build Sage, let alone test it.

comment:5 in reply to: ↑ 4 Changed 5 years ago by mkoeppe

Replying to vbraun:

  • The free TravisCI is afaik too slow to build Sage, let alone test it.

Yes, I tried it (see https://travis-ci.org/mkoeppe/sage/jobs/167999674) and even on a build without gcc, we're hitting a "per-job time limit" , which turns out to be ... 50 minutes (https://docs.travis-ci.com/user/customizing-the-build/#Build-Timeouts).

comment:6 Changed 19 months ago by mkoeppe

  • Milestone changed from sage-7.5 to sage-9.2

comment:7 Changed 17 months ago by slelievre

  • Cc slelievre added
  • Description modified (diff)
  • Summary changed from Detect XCode version to macOS: Detect Xcode version

The capitalisation is Xcode rather than XCode.

comment:8 Changed 17 months ago by mkoeppe

FWIW, homebrew has an Xcode version check but it does not work very well

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force
$ softwareupdate --all --install --force
Software Update Tool

Finding available software
No updates are available.

comment:9 Changed 14 months ago by mkoeppe

  • Milestone changed from sage-9.2 to sage-9.3

comment:10 Changed 9 months ago by mkoeppe

  • Milestone changed from sage-9.3 to sage-9.4

Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.

comment:11 Changed 5 months ago by mkoeppe

  • Milestone changed from sage-9.4 to sage-9.5
Note: See TracTickets for help on using tickets.