On 27/01/2020 8:10 am, Ryan Schmidt wrote:
On Jan 26, 2020, at 09:37, Christopher Jones wrote:
I am seeing this warning in a number of builds on the 10.15 build bot
Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot
determine the version.
Warning: cltversion: For a possible fix, please see:
https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt
Could someone take a look and follow the instructions to make sure the CLT is
properly installed ?
I don't see why the CLT would have become uninstalled on a buildbot worker...
Recent builds seem to be working fine... If you are seeing builds that are not
working, can you share those build URLs?
As the message above says, its not un-installed. A recent Xcode update
has removed the CLT installation receipts, so the Apple update system is
no longer aware it is still installed, and the MacPorts checks as
performed by the xcode_workarounds/cltversion PGs for the CLT versions
are unable to determine the version installed.
The instructions at
https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt
give the work-arounds needed to fix this and restore the receipts.
This is, I believe, a bug in the 10.15 Xcode versions. I have seen this
happen on every update I have made on my local machine.
The above warning appears in the gcc8 build, for instance
https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/22242/steps/install-port/logs/stdio
The build was successfully in the end, but only because the
xcode_workaround detects the partly broken CLT and ignores it. It would
be better to properly fix the installation to make sure the CLT version
matches the Xcode installation (which currently the PGs cannot do).
cheers Chris