Changes between Version 127 and Version 128 of Migration


Ignore:
Timestamp:
Jan 2, 2024, 12:48:13 PM (4 months ago)
Author:
riffraff (Gabriele Renzi)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v127 v128  
    2222
    2323   Install the same version of the command line tools. (Run `xcode-select --install`). Recent versions of macOS have a bug that prevents them from automatically updating the command line tools, so if the preceding command says they're already installed, they may not be up to date and you may need to update manually by following the instructions in ProblemHotlist#reinstall-clt.
    24 
     24   
    25252. [=#base **Reinstall MacPorts base system**]
    2626
     
    9797This will raise the file limit for the duration of the `restore_ports.tcl` command.
    9898
    99 Another potential problem comes from possible differences between ports that do compile on an older macOS, but no longer on the newer. For instance, you might have installed OpenBLAS om macOS Mojave. This was built with gcc10, the then preferred version of gcc. OpenBLAS sets a +gcc10 variant for this and it has remained like that as long as you were updating it. When upgrading to macOS Monterey according to the procedure above, MacPorts will try to exactly recreate what was on Mojave, hence OpenBLAS +gcc10. But gcc10 may not compile on macOS Monterey (it does not as I write this example). Hence, the migration of OpenBLAS and everything that depends on it fails.
     99Another potential problem comes from possible differences between ports that do compile on an older macOS, but no longer on the newer. For instance, you might have installed OpenBLAS on macOS Mojave. This was built with gcc10, the then preferred version of gcc. OpenBLAS sets a +gcc10 variant for this and it has remained like that as long as you were updating it. When upgrading to macOS Monterey according to the procedure above, MacPorts will try to exactly recreate what was on Mojave, hence OpenBLAS +gcc10. But gcc10 may not compile on macOS Monterey (it does not as I write this example). Hence, the migration of OpenBLAS and everything that depends on it fails.
     100
     101Another issue may come from incompatibility between some additional components, which may manifest itself with ports failing with a message like
     102
     103{{{
     104Failure Reason: The version of the CoreSimulator framework installed on this Mac is out-of-date and not supported by this version of Xcode.
     105Recovery Suggestion: Please ensure that you have installed all available updates to your Mac's software, and that you are running the most recent version of Xcode supported by macOS.
     106}}}
     107
     108In this case you may be able to solve it by running
     109{{{
     110xcodebuild -runFirstLaunch
     111}}}