mc-imperial / dredd

Framework for evaluating C/C++ compiler testing tools
Apache License 2.0
11 stars 3 forks source link

Fix MacOS CI build #227

Closed JamesLee-Jones closed 3 months ago

JamesLee-Jones commented 3 months ago

The CI for MacOS is failing with the following error:


Run ./../.github/actions/setup-python
Version 3.9 was not found in the local cache
Version 3.9 is available for downloading
Download from "https://github.com/actions/python-versions/releases/download/3.9.19-9003651947/python-3.9.19-darwin-x64.tar.gz"
Extract downloaded archive
/usr/bin/tar xz -C /Users/runner/work/_temp/30956dbd-18a3-4d83-ab1e-c9c58f5285d3 -f /Users/runner/work/_temp/08089b6f-ddc6-49a3-b2e9-e6c68dd601a0
Execute installation script
Check if Python hostedtoolcache folder exist...
Create Python 3.9.19 folder
Copy Python binaries to hostedtoolcache folder
Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
Upgrading pip...
Error: dyld[2930]: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: <64474517-EFC0-32F5-93D6-1C4BAE8783F9> /Users/runner/hostedtoolcache/Python/3.
Error: 9.19/x64/bin/python3.9
  Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file, not in dyld cache)
./setup.sh: line 53:  2930 Abort trap: 6           ./python -m ensurepip
Error: The process '/bin/bash' failed with exit code 134
JamesLee-Jones commented 3 months ago

I believe this is because macOS-latest has switched over to being ARM64 (as mentioned here) and we are specifically installing an x64 version of python 3.9 in build.yml.