Closed Bug 2018337 Opened 5 months ago Closed 4 months ago

Firefox 148.0 does not compile with gcc 15.2.1

Categories

(Core :: MFBT, defect)

Firefox 148
defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: bojan, Assigned: arai)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Mobile Safari/537.36

Steps to reproduce:

Attempted to compile Firefox 148.0 with gcc 15.2.1 on Fedora 43, in copr. See:

https://copr.fedorainfracloud.org/coprs/bojan/FF/build/10151262/
https://src.fedoraproject.org/rpms/firefox/pull-request/101

A patch to include dstdint header was required in select files.

Actual results:

The builds would error with undefined types.

Expected results:

Previous stable version of Firefox, 147.0.4 didn't have the same issue.

The patch to fix compilation is here:

https://src.fedoraproject.org/fork/bojan/rpms/firefox/blob/cd001f00b0abaa49a09e2e0d74720f5def1cf915/f/dstdint-compile-error.patch

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox for Android

Yeah, definitely not about Android. Fedora is a general Linux distribution.

Thank you for your bug report.

toolkit/crashreporter/breakpad-client/linux/handler/minidump_descriptor.h is fixed by bug 2012200
TestIntegerRange.cpp and TestSmallPointerArray.cpp are fixed by bug 2008694.
TestArray.cpp, TestNotNull.cpp, and TestSPSCQueue.cpp are not fixed.

For the last three files, can you submit your patch by following https://firefox-source-docs.mozilla.org/contributing/how_to_submit_a_patch.html ?
That way the patch is properly attributed to you (the author information in the git commit).

Component: General → MFBT
Product: Firefox for Android → Core
See Also: → 2012200, 2008694

Hi Tooru,

Thanks for having a look. I created a PR on GitHub: https://github.com/mozilla-firefox/firefox/pull/71

Let me know if you need anything else,
Bojan

BTW, I do not care about attribution. This is a trivial compilation fix, so just wanted to let you know.

Thank you for your patch.

Then, I'm really sorry but GitHub PR support is still under experimentation, and the repository doesn't yet accept PRs from everyone.

The contribution document explains how to submit the patch to Phabricator to get reviewed.
If you can submit the patch there, it will be great.
If it's too troublesome for you, don't worry, we'll handle it.

Feel free to handle it Tooru. I haven't done a contribution via phabricator before, so this is a bridge too far for this simple compilation fix. 😁

Assignee: nobody → arai.unmht
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: