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

fix meson tests for macOS CI #1260

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Conversation

jsun-splunk
Copy link
Contributor

@jsun-splunk jsun-splunk commented Aug 14, 2024

This is an attempt to fix the macOS CI issues mentioned in #1244.

Also noting #1251 disabled the broken tests. Whereas this MR should fix the tests.

The original problem should be a meson issue and not a foreign_cc one. see mesonbuild/meson#12574. Although, I couldn't track down what introduced the problem.

I got the idea that it is a meson problem, given -Wl,--version is not generated as a part of our cxx_linker_executable or cxx_linker_shared.

The quick solution is to update our default meson version to a version that includes the fix.

Had to also update glib, as after the meson fix it was running to this an issue similar to https://gitlab.gnome.org/GNOME/glib/-/issues/2995.

@jsun-splunk jsun-splunk marked this pull request as ready for review August 14, 2024 07:17
Copy link
Member

@jsharpe jsharpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for working out this workaround!

@jsharpe jsharpe merged commit 4d2cb3e into bazel-contrib:main Aug 14, 2024
2 checks passed
@bbatliner-ocient
Copy link

The first URL tried doesn't seem to exist: https://mirror.bazel.build/github.com/mesonbuild/meson/releases/download/1.5.1/meson-1.5.1.tar.gz

I recognize this was copying the pattern from the other Meson versions.

What is the process for getting this file to exist on mirror.bazel.build? The lack of this file's existence produces warnings of the form:

WARNING: Download from https://mirror.bazel.build/github.com/mesonbuild/meson/releases/download/1.5.1/meson-1.5.1.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found

jsharpe pushed a commit to jsharpe/rules_foreign_cc that referenced this pull request Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants