Closed Bug 1711525 Opened 4 years ago Closed 4 years ago

Firefox-89.0beta fails to build with gcc-11.1.0

Categories

(Firefox Build System :: General, defect)

78 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1710235

People

(Reporter: zarniwhoop, Unassigned)

Details

Attachments

(1 file)

Attached file firefox89-ftbfs.log

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

Tried to build 89.0b13 with gcc-11.1.0 and g++-11.1.0.

Actual results:

Failed to compile Unified_cpp_accessible_aom0.cpp.
0:43.89 /scratch/working/firefox-89.0/firefox-build-dir/dist/include/nsTHashtable.h:432:8: note: candidate: 'template<class F> std::invoke_result_t<F, nsTHashtable<EntryType>::EntryHandle&&> nsTHashtable<EntryType>::WithEntryHandle(nsTHashtable<EntryType>::KeyType, F&&) [with F = F; EntryType = detail::VoidPtrHashKey]'
0:43.89 432 | auto WithEntryHandle(KeyType aKey, F&& aFunc)
0:43.89 | ^~~~~~~~~~~~~~~
0:43.89 /scratch/working/firefox-89.0/firefox-build-dir/dist/include/nsTHashtable.h:432:8: note: template argument deduction/substitution failed:
0:43.89 /scratch/working/firefox-89.0/firefox-build-dir/dist/include/nsTHashtable.h:317:27: note: candidate expects 2 arguments, 3 provided
0:43.89 317 | return WithEntryHandle(aKey, aFallible, [](auto maybeEntryHandle) {
0:43.89 | ^
0:43.89 318 | return maybeEntryHandle ? maybeEntryHandle->OrInsert() : nullptr;
0:43.89 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0:43.89 319 | });
0:43.89 | ~~

Expected results:

I expected it to compile - some earlier 89.0betas compiled with gcc-10 and with clang-12.0.0.

Attaching the full messages for this file from the log

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox Build System
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: