Skip to content

Update dependencies for GCC 15 #12442

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

Closed
wants to merge 3 commits into from
Closed

Update dependencies for GCC 15 #12442

wants to merge 3 commits into from

Conversation

JamieMagee
Copy link
Contributor

What are you trying to accomplish?

GCC 15 released in April 20251 and is starting to make its way into Linux distributions. Some of the Ruby gems that we depend on have native dependencies that require local compilation, and those dependencies need to be update to work with GCC 15. They are:

  • commonmarker
  • google-protobuf

Anything you want to highlight for special attention from reviewers?

Here is an example of a compilation failure that occurs when trying to compile the current version of the commonmarker dependency with GCC 15.

NOTE: gpgme still does not work with GCC 15

How will you know you've accomplished your goal?

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

Footnotes

  1. https://gcc.gnu.org/gcc-15/

@JamieMagee JamieMagee requested a review from a team as a code owner June 12, 2025 16:33
@JamieMagee JamieMagee force-pushed the jamiemagee/gcc-15 branch 3 times, most recently from 1e715ce to f1efa4a Compare June 12, 2025 23:11
@@ -1290,30 +1290,30 @@ def commits_details(base:, head:)
expect(pr_message).to eq(
"Bumps [business](https://github.com/gocardless/business) from `2468a02` to `cff701b`.\n" \
"# Commits\n\n" \
" - [`26f4887`](https://github.com/gocardless/business/commit/" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The indentation changes below are intentional. See kivikakk/comrak#135

mode = unsafe ? :UNSAFE : :DEFAULT
return doc.to_commonmark([mode] + render_options) unless format_html
render_options = COMMONMARKER_OPTIONS.dup
render_options[:hardbreaks] = false if text.match?(MARKDOWN_REGEX)

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings starting with '[' and with many repetitions of '[a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[' and with many repetitions of '[a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[a](' and with many repetitions of '(](('.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[' and with many repetitions of '[a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[' and with many repetitions of '[a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[a](' and with many repetitions of '(](('.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[' and with many repetitions of '[a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[' and with many repetitions of '[a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '[a](' and with many repetitions of '(](('.
@JamieMagee
Copy link
Contributor Author

I opened an issue upstream with commonmarker with the odd link parsing behavior: gjtorikian/commonmarker#376

@JamieMagee JamieMagee closed this Jun 26, 2025
@JamieMagee JamieMagee deleted the jamiemagee/gcc-15 branch June 26, 2025 02:32
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.

1 participant