dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
9.01k stars 1.88k forks source link

Mac builds failing during `Install MacOS ARM build dependencies` step #7056

Closed ericstj closed 6 months ago

ericstj commented 6 months ago

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=598340 Build error leg or test failing: MacOS_cross_arm64_Net6 / MacOS_cross_arm64_Net6 Debug_Build / Install MacOS ARM build dependencies Pull request: https://github.com/dotnet/machinelearning/pull/7055

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Error: The `brew link` step did not complete successfully",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Detailed error info:

==> Pouring python@3.12--3.12.2_1.monterey.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3'

To force the link and overwrite all conflicting files:
  brew link --overwrite python@3.12

To list all files that would be deleted:
  brew link --overwrite python@3.12 --dry-run

Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/2to3
/usr/local/bin/2to3-3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/2to3-3.12
/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3
/usr/local/bin/idle3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3.12
/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3
/usr/local/bin/pydoc3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3.12
/usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
/usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3-config
/usr/local/bin/python3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12
/usr/local/bin/python3.12-config -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12-config
/usr/local/share/man/man1/python3.1 -> /usr/local/Cellar/python@3.11/3.11.7_1/share/man/man1/python3.1
/usr/local/lib/pkgconfig/python3-embed.pc -> /usr/local/Cellar/python@3.11/3.11.7_1/lib/pkgconfig/python3-embed.pc
/usr/local/lib/pkgconfig/python3.pc -> /usr/local/Cellar/python@3.11/3.11.7_1/lib/pkgconfig/python3.pc
/usr/local/Frameworks/Python.framework/Headers -> /usr/local/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Headers
/usr/local/Frameworks/Python.framework/Python -> /usr/local/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Python
/usr/local/Frameworks/Python.framework/Resources -> /usr/local/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Resources
/usr/local/Frameworks/Python.framework/Versions/Current -> /usr/local/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/Current

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=598340 Error message validated: [Error: Thebrew linkstep did not complete successfully] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 3/11/2024 10:59:41 PM UTC

Report

Build Definition Step Name Console log Pull Request
598842 dotnet/machinelearning Install MacOS ARM build dependencies Log dotnet/machinelearning#7058
2400473 dotnet-machinelearning Install build dependencies Log
598340 dotnet/machinelearning Install MacOS ARM build dependencies Log dotnet/machinelearning#7055
597621 dotnet/machinelearning Install MacOS ARM build dependencies Log dotnet/machinelearning#7052

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 4 4
ericstj commented 6 months ago

Seems like it might be related to a new version of libomp which requires python@3.12 which was not previously required. Maybe there's already a version of python on this machine, so the explicit linking of that version is what's messing things up? No clue just trying to deduce the cause based on error & what changed. @michaelgsharp have you seen this before?