Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOs Ci is broken #656

Closed
sdogruyol opened this issue Feb 19, 2023 · 5 comments
Closed

MacOs Ci is broken #656

sdogruyol opened this issue Feb 19, 2023 · 5 comments
Labels

Comments

@sdogruyol
Copy link
Member

MacOS CI is broken on both latest and nightly on run spec with the following error. //cc @Sija

ld: library not found for -lssl (this usually means you need to install the development package for libssl)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o /Users/runner/.cache/crystal/crystal-run-spec.tmp  -rdynamic -L/Users/runner/work/_temp/crystal-latest-true-undefined/embedded/lib -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lpcre -lgc -levent -liconv`
Error: Process completed with exit code 1.
@sdogruyol sdogruyol added the bug label Feb 19, 2023
@Sija
Copy link
Contributor

Sija commented Feb 19, 2023

Perhaps crystal-lang/crystal#13069 might have sth to do with it?

@straight-shoota
Copy link
Contributor

straight-shoota commented Feb 19, 2023

@Sija That can't be. The failure happens with both nightly and the 1.7.2 release. So it must be inherent to the runner image.

macos-latest was recently upgraded from macos-11 to macos-12, that's a possible cause for the disruption. Best to pin the version explicitly and perform updates intentionally.

However, I presume it's probably the same as actions/runner-images#7128 (comment)
This was just fixed in actions/runner-images#7125. Not sure how long it takes to roll out.

@mamantoha
Copy link
Contributor

This can be fixed by installing pkg-config on macOS runner manually:

- name: Install macOS dependencies
  if: runner.os == 'macOS'
  run: |
    brew install pkg-config

But this is already fixed in the upstream actions/runner-images#7125.
So probably just need to wait while this will be released.

@sdogruyol
Copy link
Member Author

Thanks @straight-shoota @Sija @mamantoha 🙏

@sdogruyol
Copy link
Member Author

Fixed now, can be seen in the latest run https://github.com/kemalcr/kemal/actions/runs/4654085351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants